diff options
Diffstat (limited to 'src/Orientation.c')
-rw-r--r-- | src/Orientation.c | 1315 |
1 files changed, 664 insertions, 651 deletions
diff --git a/src/Orientation.c b/src/Orientation.c index 87ca64c..181ee59 100644 --- a/src/Orientation.c +++ b/src/Orientation.c @@ -1,4 +1,4 @@ -/* Orientation.c generated by valac 0.36.6, the Vala compiler +/* Orientation.c generated by valac 0.40.4, the Vala compiler * generated from Orientation.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -7,6 +7,7 @@ * See the COPYING file in this distribution. */ + #include <glib.h> #include <glib-object.h> #include <stdlib.h> @@ -71,36 +72,64 @@ Orientation orientation_rotate_counterclockwise (Orientation self); Orientation orientation_flip_top_to_bottom (Orientation self); Orientation orientation_flip_left_to_right (Orientation self); GType rotation_get_type (void) G_GNUC_CONST; -Orientation orientation_perform (Orientation self, Rotation rotation); -Rotation* orientation_to_rotations (Orientation self, int* result_length1); +Orientation orientation_perform (Orientation self, + Rotation rotation); +Rotation* orientation_to_rotations (Orientation self, + int* result_length1); GType dimensions_get_type (void) G_GNUC_CONST; Dimensions* dimensions_dup (const Dimensions* self); void dimensions_free (Dimensions* self); -void orientation_rotate_dimensions (Orientation self, Dimensions* dim, Dimensions* result); -void dimensions_init (Dimensions *self, gint width, gint height); -void orientation_derotate_dimensions (Orientation self, Dimensions* dim, Dimensions* result); -GdkPixbuf* orientation_rotate_pixbuf (Orientation self, GdkPixbuf* pixbuf); -void orientation_rotate_point (Orientation self, Dimensions* space, GdkPoint* point, GdkPoint* result); +void orientation_rotate_dimensions (Orientation self, + Dimensions* dim, + Dimensions* result); +void dimensions_init (Dimensions *self, + gint width, + gint height); +void orientation_derotate_dimensions (Orientation self, + Dimensions* dim, + Dimensions* result); +GdkPixbuf* orientation_rotate_pixbuf (Orientation self, + GdkPixbuf* pixbuf); +void orientation_rotate_point (Orientation self, + Dimensions* space, + GdkPoint* point, + GdkPoint* result); gboolean dimensions_has_area (Dimensions *self); -void orientation_derotate_point (Orientation self, Dimensions* space, GdkPoint* point, GdkPoint* result); +void orientation_derotate_point (Orientation self, + Dimensions* space, + GdkPoint* point, + GdkPoint* result); GType box_get_type (void) G_GNUC_CONST; Box* box_dup (const Box* self); void box_free (Box* self); -void orientation_rotate_box (Orientation self, Dimensions* space, Box* box, Box* result); -void box_get_points (Box *self, GdkPoint* top_left, GdkPoint* bottom_right); -void box_from_points (GdkPoint* corner1, GdkPoint* corner2, Box* result); -void orientation_derotate_box (Orientation self, Dimensions* space, Box* box, Box* result); -GdkPixbuf* rotation_perform (Rotation self, GdkPixbuf* pixbuf); +void orientation_rotate_box (Orientation self, + Dimensions* space, + Box* box, + Box* result); +void box_get_points (Box *self, + GdkPoint* top_left, + GdkPoint* bottom_right); +void box_from_points (GdkPoint* corner1, + GdkPoint* corner2, + Box* result); +void orientation_derotate_box (Orientation self, + Dimensions* space, + Box* box, + Box* result); +GdkPixbuf* rotation_perform (Rotation self, + GdkPixbuf* pixbuf); Rotation rotation_opposite (Rotation self); -gchar* orientation_to_string (Orientation self) { +gchar* +orientation_to_string (Orientation self) +{ gchar* result = NULL; #line 20 "/home/jens/Source/shotwell/src/Orientation.vala" switch (self) { #line 20 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_TOP_LEFT: -#line 104 "Orientation.c" +#line 133 "Orientation.c" { gchar* _tmp0_; #line 22 "/home/jens/Source/shotwell/src/Orientation.vala" @@ -109,11 +138,11 @@ gchar* orientation_to_string (Orientation self) { result = _tmp0_; #line 22 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 113 "Orientation.c" +#line 142 "Orientation.c" } #line 20 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_TOP_RIGHT: -#line 117 "Orientation.c" +#line 146 "Orientation.c" { gchar* _tmp1_; #line 25 "/home/jens/Source/shotwell/src/Orientation.vala" @@ -122,11 +151,11 @@ gchar* orientation_to_string (Orientation self) { result = _tmp1_; #line 25 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 126 "Orientation.c" +#line 155 "Orientation.c" } #line 20 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_RIGHT: -#line 130 "Orientation.c" +#line 159 "Orientation.c" { gchar* _tmp2_; #line 28 "/home/jens/Source/shotwell/src/Orientation.vala" @@ -135,11 +164,11 @@ gchar* orientation_to_string (Orientation self) { result = _tmp2_; #line 28 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 139 "Orientation.c" +#line 168 "Orientation.c" } #line 20 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_LEFT: -#line 143 "Orientation.c" +#line 172 "Orientation.c" { gchar* _tmp3_; #line 31 "/home/jens/Source/shotwell/src/Orientation.vala" @@ -148,11 +177,11 @@ gchar* orientation_to_string (Orientation self) { result = _tmp3_; #line 31 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 152 "Orientation.c" +#line 181 "Orientation.c" } #line 20 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_TOP: -#line 156 "Orientation.c" +#line 185 "Orientation.c" { gchar* _tmp4_; #line 34 "/home/jens/Source/shotwell/src/Orientation.vala" @@ -161,11 +190,11 @@ gchar* orientation_to_string (Orientation self) { result = _tmp4_; #line 34 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 165 "Orientation.c" +#line 194 "Orientation.c" } #line 20 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_RIGHT_TOP: -#line 169 "Orientation.c" +#line 198 "Orientation.c" { gchar* _tmp5_; #line 37 "/home/jens/Source/shotwell/src/Orientation.vala" @@ -174,11 +203,11 @@ gchar* orientation_to_string (Orientation self) { result = _tmp5_; #line 37 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 178 "Orientation.c" +#line 207 "Orientation.c" } #line 20 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_RIGHT_BOTTOM: -#line 182 "Orientation.c" +#line 211 "Orientation.c" { gchar* _tmp6_; #line 40 "/home/jens/Source/shotwell/src/Orientation.vala" @@ -187,11 +216,11 @@ gchar* orientation_to_string (Orientation self) { result = _tmp6_; #line 40 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 191 "Orientation.c" +#line 220 "Orientation.c" } #line 20 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_BOTTOM: -#line 195 "Orientation.c" +#line 224 "Orientation.c" { gchar* _tmp7_; #line 43 "/home/jens/Source/shotwell/src/Orientation.vala" @@ -200,7 +229,7 @@ gchar* orientation_to_string (Orientation self) { result = _tmp7_; #line 43 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 204 "Orientation.c" +#line 233 "Orientation.c" } default: { @@ -211,467 +240,463 @@ gchar* orientation_to_string (Orientation self) { result = _tmp8_; #line 46 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 215 "Orientation.c" +#line 244 "Orientation.c" } } } -Orientation orientation_rotate_clockwise (Orientation self) { +Orientation +orientation_rotate_clockwise (Orientation self) +{ Orientation result = 0; #line 51 "/home/jens/Source/shotwell/src/Orientation.vala" switch (self) { #line 51 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_TOP_LEFT: -#line 227 "Orientation.c" +#line 258 "Orientation.c" { #line 53 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_RIGHT_TOP; #line 53 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 233 "Orientation.c" +#line 264 "Orientation.c" } #line 51 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_TOP_RIGHT: -#line 237 "Orientation.c" +#line 268 "Orientation.c" { #line 56 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_RIGHT_BOTTOM; #line 56 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 243 "Orientation.c" +#line 274 "Orientation.c" } #line 51 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_RIGHT: -#line 247 "Orientation.c" +#line 278 "Orientation.c" { #line 59 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_LEFT_BOTTOM; #line 59 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 253 "Orientation.c" +#line 284 "Orientation.c" } #line 51 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_LEFT: -#line 257 "Orientation.c" +#line 288 "Orientation.c" { #line 62 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_LEFT_TOP; #line 62 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 263 "Orientation.c" +#line 294 "Orientation.c" } #line 51 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_TOP: -#line 267 "Orientation.c" +#line 298 "Orientation.c" { #line 65 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_TOP_RIGHT; #line 65 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 273 "Orientation.c" +#line 304 "Orientation.c" } #line 51 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_RIGHT_TOP: -#line 277 "Orientation.c" +#line 308 "Orientation.c" { #line 68 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_BOTTOM_RIGHT; #line 68 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 283 "Orientation.c" +#line 314 "Orientation.c" } #line 51 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_RIGHT_BOTTOM: -#line 287 "Orientation.c" +#line 318 "Orientation.c" { #line 71 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_BOTTOM_LEFT; #line 71 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 293 "Orientation.c" +#line 324 "Orientation.c" } #line 51 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_BOTTOM: -#line 297 "Orientation.c" +#line 328 "Orientation.c" { #line 74 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_TOP_LEFT; #line 74 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 303 "Orientation.c" +#line 334 "Orientation.c" } default: { #line 77 "/home/jens/Source/shotwell/src/Orientation.vala" g_error ("Orientation.vala:77: rotate_clockwise: %d", (gint) self); -#line 309 "Orientation.c" +#line 340 "Orientation.c" } } } -Orientation orientation_rotate_counterclockwise (Orientation self) { +Orientation +orientation_rotate_counterclockwise (Orientation self) +{ Orientation result = 0; #line 82 "/home/jens/Source/shotwell/src/Orientation.vala" switch (self) { #line 82 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_TOP_LEFT: -#line 321 "Orientation.c" +#line 354 "Orientation.c" { #line 84 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_LEFT_BOTTOM; #line 84 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 327 "Orientation.c" +#line 360 "Orientation.c" } #line 82 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_TOP_RIGHT: -#line 331 "Orientation.c" +#line 364 "Orientation.c" { #line 87 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_LEFT_TOP; #line 87 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 337 "Orientation.c" +#line 370 "Orientation.c" } #line 82 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_RIGHT: -#line 341 "Orientation.c" +#line 374 "Orientation.c" { #line 90 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_RIGHT_TOP; #line 90 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 347 "Orientation.c" +#line 380 "Orientation.c" } #line 82 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_LEFT: -#line 351 "Orientation.c" +#line 384 "Orientation.c" { #line 93 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_RIGHT_BOTTOM; #line 93 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 357 "Orientation.c" +#line 390 "Orientation.c" } #line 82 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_TOP: -#line 361 "Orientation.c" +#line 394 "Orientation.c" { #line 96 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_BOTTOM_LEFT; #line 96 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 367 "Orientation.c" +#line 400 "Orientation.c" } #line 82 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_RIGHT_TOP: -#line 371 "Orientation.c" +#line 404 "Orientation.c" { #line 99 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_TOP_LEFT; #line 99 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 377 "Orientation.c" +#line 410 "Orientation.c" } #line 82 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_RIGHT_BOTTOM: -#line 381 "Orientation.c" +#line 414 "Orientation.c" { #line 102 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_TOP_RIGHT; #line 102 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 387 "Orientation.c" +#line 420 "Orientation.c" } #line 82 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_BOTTOM: -#line 391 "Orientation.c" +#line 424 "Orientation.c" { #line 105 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_BOTTOM_RIGHT; #line 105 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 397 "Orientation.c" +#line 430 "Orientation.c" } default: { #line 108 "/home/jens/Source/shotwell/src/Orientation.vala" g_error ("Orientation.vala:108: rotate_counterclockwise: %d", (gint) self); -#line 403 "Orientation.c" +#line 436 "Orientation.c" } } } -Orientation orientation_flip_top_to_bottom (Orientation self) { +Orientation +orientation_flip_top_to_bottom (Orientation self) +{ Orientation result = 0; #line 113 "/home/jens/Source/shotwell/src/Orientation.vala" switch (self) { #line 113 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_TOP_LEFT: -#line 415 "Orientation.c" +#line 450 "Orientation.c" { #line 115 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_BOTTOM_LEFT; #line 115 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 421 "Orientation.c" +#line 456 "Orientation.c" } #line 113 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_TOP_RIGHT: -#line 425 "Orientation.c" +#line 460 "Orientation.c" { #line 118 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_BOTTOM_RIGHT; #line 118 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 431 "Orientation.c" +#line 466 "Orientation.c" } #line 113 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_RIGHT: -#line 435 "Orientation.c" +#line 470 "Orientation.c" { #line 121 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_TOP_RIGHT; #line 121 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 441 "Orientation.c" +#line 476 "Orientation.c" } #line 113 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_LEFT: -#line 445 "Orientation.c" +#line 480 "Orientation.c" { #line 124 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_TOP_LEFT; #line 124 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 451 "Orientation.c" +#line 486 "Orientation.c" } #line 113 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_TOP: -#line 455 "Orientation.c" +#line 490 "Orientation.c" { #line 127 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_LEFT_BOTTOM; #line 127 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 461 "Orientation.c" +#line 496 "Orientation.c" } #line 113 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_RIGHT_TOP: -#line 465 "Orientation.c" +#line 500 "Orientation.c" { #line 130 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_RIGHT_BOTTOM; #line 130 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 471 "Orientation.c" +#line 506 "Orientation.c" } #line 113 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_RIGHT_BOTTOM: -#line 475 "Orientation.c" +#line 510 "Orientation.c" { #line 133 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_RIGHT_TOP; #line 133 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 481 "Orientation.c" +#line 516 "Orientation.c" } #line 113 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_BOTTOM: -#line 485 "Orientation.c" +#line 520 "Orientation.c" { #line 136 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_LEFT_TOP; #line 136 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 491 "Orientation.c" +#line 526 "Orientation.c" } default: { #line 139 "/home/jens/Source/shotwell/src/Orientation.vala" g_error ("Orientation.vala:139: flip_top_to_bottom: %d", (gint) self); -#line 497 "Orientation.c" +#line 532 "Orientation.c" } } } -Orientation orientation_flip_left_to_right (Orientation self) { +Orientation +orientation_flip_left_to_right (Orientation self) +{ Orientation result = 0; #line 144 "/home/jens/Source/shotwell/src/Orientation.vala" switch (self) { #line 144 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_TOP_LEFT: -#line 509 "Orientation.c" +#line 546 "Orientation.c" { #line 146 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_TOP_RIGHT; #line 146 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 515 "Orientation.c" +#line 552 "Orientation.c" } #line 144 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_TOP_RIGHT: -#line 519 "Orientation.c" +#line 556 "Orientation.c" { #line 149 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_TOP_LEFT; #line 149 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 525 "Orientation.c" +#line 562 "Orientation.c" } #line 144 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_RIGHT: -#line 529 "Orientation.c" +#line 566 "Orientation.c" { #line 152 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_BOTTOM_LEFT; #line 152 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 535 "Orientation.c" +#line 572 "Orientation.c" } #line 144 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_LEFT: -#line 539 "Orientation.c" +#line 576 "Orientation.c" { #line 155 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_BOTTOM_RIGHT; #line 155 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 545 "Orientation.c" +#line 582 "Orientation.c" } #line 144 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_TOP: -#line 549 "Orientation.c" +#line 586 "Orientation.c" { #line 158 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_RIGHT_TOP; #line 158 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 555 "Orientation.c" +#line 592 "Orientation.c" } #line 144 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_RIGHT_TOP: -#line 559 "Orientation.c" +#line 596 "Orientation.c" { #line 161 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_LEFT_TOP; #line 161 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 565 "Orientation.c" +#line 602 "Orientation.c" } #line 144 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_RIGHT_BOTTOM: -#line 569 "Orientation.c" +#line 606 "Orientation.c" { #line 164 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_LEFT_BOTTOM; #line 164 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 575 "Orientation.c" +#line 612 "Orientation.c" } #line 144 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_BOTTOM: -#line 579 "Orientation.c" +#line 616 "Orientation.c" { #line 167 "/home/jens/Source/shotwell/src/Orientation.vala" result = ORIENTATION_RIGHT_BOTTOM; #line 167 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 585 "Orientation.c" +#line 622 "Orientation.c" } default: { #line 170 "/home/jens/Source/shotwell/src/Orientation.vala" g_error ("Orientation.vala:170: flip_left_to_right: %d", (gint) self); -#line 591 "Orientation.c" +#line 628 "Orientation.c" } } } -Orientation orientation_perform (Orientation self, Rotation rotation) { +Orientation +orientation_perform (Orientation self, + Rotation rotation) +{ Orientation result = 0; - Rotation _tmp0_; -#line 175 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp0_ = rotation; #line 175 "/home/jens/Source/shotwell/src/Orientation.vala" - switch (_tmp0_) { + switch (rotation) { #line 175 "/home/jens/Source/shotwell/src/Orientation.vala" case ROTATION_CLOCKWISE: -#line 606 "Orientation.c" +#line 643 "Orientation.c" { - Orientation _tmp1_; -#line 177 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp1_ = orientation_rotate_clockwise (self); #line 177 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp1_; + result = orientation_rotate_clockwise (self); #line 177 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 615 "Orientation.c" +#line 649 "Orientation.c" } #line 175 "/home/jens/Source/shotwell/src/Orientation.vala" case ROTATION_COUNTERCLOCKWISE: -#line 619 "Orientation.c" +#line 653 "Orientation.c" { - Orientation _tmp2_; -#line 180 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp2_ = orientation_rotate_counterclockwise (self); #line 180 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp2_; + result = orientation_rotate_counterclockwise (self); #line 180 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 628 "Orientation.c" +#line 659 "Orientation.c" } #line 175 "/home/jens/Source/shotwell/src/Orientation.vala" case ROTATION_MIRROR: -#line 632 "Orientation.c" +#line 663 "Orientation.c" { - Orientation _tmp3_; -#line 183 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp3_ = orientation_flip_left_to_right (self); #line 183 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp3_; + result = orientation_flip_left_to_right (self); #line 183 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 641 "Orientation.c" +#line 669 "Orientation.c" } #line 175 "/home/jens/Source/shotwell/src/Orientation.vala" case ROTATION_UPSIDE_DOWN: -#line 645 "Orientation.c" +#line 673 "Orientation.c" { - Orientation _tmp4_; -#line 186 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp4_ = orientation_flip_top_to_bottom (self); #line 186 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp4_; + result = orientation_flip_top_to_bottom (self); #line 186 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 654 "Orientation.c" +#line 679 "Orientation.c" } default: { - Rotation _tmp5_; -#line 189 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp5_ = rotation; #line 189 "/home/jens/Source/shotwell/src/Orientation.vala" - g_error ("Orientation.vala:189: perform: %d", (gint) _tmp5_); -#line 663 "Orientation.c" + g_error ("Orientation.vala:189: perform: %d", (gint) rotation); +#line 685 "Orientation.c" } } } -Rotation* orientation_to_rotations (Orientation self, int* result_length1) { +Rotation* +orientation_to_rotations (Orientation self, + int* result_length1) +{ Rotation* result = NULL; #line 194 "/home/jens/Source/shotwell/src/Orientation.vala" switch (self) { #line 194 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_TOP_LEFT: -#line 675 "Orientation.c" +#line 700 "Orientation.c" { Rotation* _tmp0_; Rotation* _tmp1_; @@ -686,17 +711,17 @@ Rotation* orientation_to_rotations (Orientation self, int* result_length1) { if (result_length1) { #line 197 "/home/jens/Source/shotwell/src/Orientation.vala" *result_length1 = _tmp1__length1; -#line 690 "Orientation.c" +#line 715 "Orientation.c" } #line 197 "/home/jens/Source/shotwell/src/Orientation.vala" result = _tmp1_; #line 197 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 696 "Orientation.c" +#line 721 "Orientation.c" } #line 194 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_TOP_RIGHT: -#line 700 "Orientation.c" +#line 725 "Orientation.c" { Rotation* _tmp2_; Rotation* _tmp3_; @@ -713,17 +738,17 @@ Rotation* orientation_to_rotations (Orientation self, int* result_length1) { if (result_length1) { #line 200 "/home/jens/Source/shotwell/src/Orientation.vala" *result_length1 = _tmp3__length1; -#line 717 "Orientation.c" +#line 742 "Orientation.c" } #line 200 "/home/jens/Source/shotwell/src/Orientation.vala" result = _tmp3_; #line 200 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 723 "Orientation.c" +#line 748 "Orientation.c" } #line 194 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_RIGHT: -#line 727 "Orientation.c" +#line 752 "Orientation.c" { Rotation* _tmp4_; Rotation* _tmp5_; @@ -740,17 +765,17 @@ Rotation* orientation_to_rotations (Orientation self, int* result_length1) { if (result_length1) { #line 203 "/home/jens/Source/shotwell/src/Orientation.vala" *result_length1 = _tmp5__length1; -#line 744 "Orientation.c" +#line 769 "Orientation.c" } #line 203 "/home/jens/Source/shotwell/src/Orientation.vala" result = _tmp5_; #line 203 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 750 "Orientation.c" +#line 775 "Orientation.c" } #line 194 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_LEFT: -#line 754 "Orientation.c" +#line 779 "Orientation.c" { Rotation* _tmp6_; Rotation* _tmp7_; @@ -769,17 +794,17 @@ Rotation* orientation_to_rotations (Orientation self, int* result_length1) { if (result_length1) { #line 207 "/home/jens/Source/shotwell/src/Orientation.vala" *result_length1 = _tmp7__length1; -#line 773 "Orientation.c" +#line 798 "Orientation.c" } #line 207 "/home/jens/Source/shotwell/src/Orientation.vala" result = _tmp7_; #line 207 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 779 "Orientation.c" +#line 804 "Orientation.c" } #line 194 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_TOP: -#line 783 "Orientation.c" +#line 808 "Orientation.c" { Rotation* _tmp8_; Rotation* _tmp9_; @@ -798,17 +823,17 @@ Rotation* orientation_to_rotations (Orientation self, int* result_length1) { if (result_length1) { #line 210 "/home/jens/Source/shotwell/src/Orientation.vala" *result_length1 = _tmp9__length1; -#line 802 "Orientation.c" +#line 827 "Orientation.c" } #line 210 "/home/jens/Source/shotwell/src/Orientation.vala" result = _tmp9_; #line 210 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 808 "Orientation.c" +#line 833 "Orientation.c" } #line 194 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_RIGHT_TOP: -#line 812 "Orientation.c" +#line 837 "Orientation.c" { Rotation* _tmp10_; Rotation* _tmp11_; @@ -825,17 +850,17 @@ Rotation* orientation_to_rotations (Orientation self, int* result_length1) { if (result_length1) { #line 213 "/home/jens/Source/shotwell/src/Orientation.vala" *result_length1 = _tmp11__length1; -#line 829 "Orientation.c" +#line 854 "Orientation.c" } #line 213 "/home/jens/Source/shotwell/src/Orientation.vala" result = _tmp11_; #line 213 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 835 "Orientation.c" +#line 860 "Orientation.c" } #line 194 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_RIGHT_BOTTOM: -#line 839 "Orientation.c" +#line 864 "Orientation.c" { Rotation* _tmp12_; Rotation* _tmp13_; @@ -854,17 +879,17 @@ Rotation* orientation_to_rotations (Orientation self, int* result_length1) { if (result_length1) { #line 216 "/home/jens/Source/shotwell/src/Orientation.vala" *result_length1 = _tmp13__length1; -#line 858 "Orientation.c" +#line 883 "Orientation.c" } #line 216 "/home/jens/Source/shotwell/src/Orientation.vala" result = _tmp13_; #line 216 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 864 "Orientation.c" +#line 889 "Orientation.c" } #line 194 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_BOTTOM: -#line 868 "Orientation.c" +#line 893 "Orientation.c" { Rotation* _tmp14_; Rotation* _tmp15_; @@ -881,25 +906,29 @@ Rotation* orientation_to_rotations (Orientation self, int* result_length1) { if (result_length1) { #line 219 "/home/jens/Source/shotwell/src/Orientation.vala" *result_length1 = _tmp15__length1; -#line 885 "Orientation.c" +#line 910 "Orientation.c" } #line 219 "/home/jens/Source/shotwell/src/Orientation.vala" result = _tmp15_; #line 219 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 891 "Orientation.c" +#line 916 "Orientation.c" } default: { #line 222 "/home/jens/Source/shotwell/src/Orientation.vala" g_error ("Orientation.vala:222: to_rotations: %d", (gint) self); -#line 897 "Orientation.c" +#line 922 "Orientation.c" } } } -void orientation_rotate_dimensions (Orientation self, Dimensions* dim, Dimensions* result) { +void +orientation_rotate_dimensions (Orientation self, + Dimensions* dim, + Dimensions* result) +{ #line 226 "/home/jens/Source/shotwell/src/Orientation.vala" g_return_if_fail (dim != NULL); #line 227 "/home/jens/Source/shotwell/src/Orientation.vala" @@ -912,7 +941,7 @@ void orientation_rotate_dimensions (Orientation self, Dimensions* dim, Dimension case ORIENTATION_BOTTOM_RIGHT: #line 227 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_LEFT: -#line 916 "Orientation.c" +#line 945 "Orientation.c" { Dimensions _tmp0_; #line 233 "/home/jens/Source/shotwell/src/Orientation.vala" @@ -921,7 +950,7 @@ void orientation_rotate_dimensions (Orientation self, Dimensions* dim, Dimension *result = _tmp0_; #line 233 "/home/jens/Source/shotwell/src/Orientation.vala" return; -#line 925 "Orientation.c" +#line 954 "Orientation.c" } #line 227 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_TOP: @@ -931,7 +960,7 @@ void orientation_rotate_dimensions (Orientation self, Dimensions* dim, Dimension case ORIENTATION_RIGHT_BOTTOM: #line 227 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_BOTTOM: -#line 935 "Orientation.c" +#line 964 "Orientation.c" { Dimensions _tmp1_; gint _tmp2_; @@ -952,19 +981,23 @@ void orientation_rotate_dimensions (Orientation self, Dimensions* dim, Dimension *result = _tmp5_; #line 240 "/home/jens/Source/shotwell/src/Orientation.vala" return; -#line 956 "Orientation.c" +#line 985 "Orientation.c" } default: { #line 243 "/home/jens/Source/shotwell/src/Orientation.vala" g_error ("Orientation.vala:243: rotate_dimensions: %d", (gint) self); -#line 962 "Orientation.c" +#line 991 "Orientation.c" } } } -void orientation_derotate_dimensions (Orientation self, Dimensions* dim, Dimensions* result) { +void +orientation_derotate_dimensions (Orientation self, + Dimensions* dim, + Dimensions* result) +{ Dimensions _tmp0_; Dimensions _tmp1_ = {0}; #line 247 "/home/jens/Source/shotwell/src/Orientation.vala" @@ -977,18 +1010,23 @@ void orientation_derotate_dimensions (Orientation self, Dimensions* dim, Dimensi *result = _tmp1_; #line 248 "/home/jens/Source/shotwell/src/Orientation.vala" return; -#line 981 "Orientation.c" +#line 1014 "Orientation.c" } -static gpointer _g_object_ref0 (gpointer self) { +static gpointer +_g_object_ref0 (gpointer self) +{ #line 256 "/home/jens/Source/shotwell/src/Orientation.vala" return self ? g_object_ref (self) : NULL; -#line 988 "Orientation.c" +#line 1023 "Orientation.c" } -GdkPixbuf* orientation_rotate_pixbuf (Orientation self, GdkPixbuf* pixbuf) { +GdkPixbuf* +orientation_rotate_pixbuf (Orientation self, + GdkPixbuf* pixbuf) +{ GdkPixbuf* result = NULL; GdkPixbuf* rotated = NULL; #line 251 "/home/jens/Source/shotwell/src/Orientation.vala" @@ -997,742 +1035,727 @@ GdkPixbuf* orientation_rotate_pixbuf (Orientation self, GdkPixbuf* pixbuf) { switch (self) { #line 253 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_TOP_LEFT: -#line 1001 "Orientation.c" +#line 1039 "Orientation.c" { GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; #line 256 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp0_ = pixbuf; -#line 256 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); + _tmp0_ = _g_object_ref0 (pixbuf); #line 256 "/home/jens/Source/shotwell/src/Orientation.vala" _g_object_unref0 (rotated); #line 256 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated = _tmp1_; + rotated = _tmp0_; #line 257 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1015 "Orientation.c" +#line 1050 "Orientation.c" } #line 253 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_TOP_RIGHT: -#line 1019 "Orientation.c" +#line 1054 "Orientation.c" { - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; -#line 261 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp2_ = pixbuf; + GdkPixbuf* _tmp1_; #line 261 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp3_ = gdk_pixbuf_flip (_tmp2_, TRUE); + _tmp1_ = gdk_pixbuf_flip (pixbuf, TRUE); #line 261 "/home/jens/Source/shotwell/src/Orientation.vala" _g_object_unref0 (rotated); #line 261 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated = _tmp3_; + rotated = _tmp1_; #line 262 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1033 "Orientation.c" +#line 1065 "Orientation.c" } #line 253 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_RIGHT: -#line 1037 "Orientation.c" +#line 1069 "Orientation.c" { - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; -#line 265 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp4_ = pixbuf; + GdkPixbuf* _tmp2_; #line 265 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp5_ = gdk_pixbuf_rotate_simple (_tmp4_, GDK_PIXBUF_ROTATE_UPSIDEDOWN); + _tmp2_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_UPSIDEDOWN); #line 265 "/home/jens/Source/shotwell/src/Orientation.vala" _g_object_unref0 (rotated); #line 265 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated = _tmp5_; + rotated = _tmp2_; #line 266 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1051 "Orientation.c" +#line 1080 "Orientation.c" } #line 253 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_LEFT: -#line 1055 "Orientation.c" +#line 1084 "Orientation.c" { - GdkPixbuf* _tmp6_; - GdkPixbuf* _tmp7_; -#line 270 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp6_ = pixbuf; + GdkPixbuf* _tmp3_; #line 270 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp7_ = gdk_pixbuf_flip (_tmp6_, FALSE); + _tmp3_ = gdk_pixbuf_flip (pixbuf, FALSE); #line 270 "/home/jens/Source/shotwell/src/Orientation.vala" _g_object_unref0 (rotated); #line 270 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated = _tmp7_; + rotated = _tmp3_; #line 271 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1069 "Orientation.c" +#line 1095 "Orientation.c" } #line 253 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_TOP: -#line 1073 "Orientation.c" +#line 1099 "Orientation.c" { - GdkPixbuf* _tmp8_; - GdkPixbuf* _tmp9_; - GdkPixbuf* _tmp10_; - GdkPixbuf* _tmp11_; -#line 274 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp8_ = pixbuf; + GdkPixbuf* _tmp4_; + GdkPixbuf* _tmp5_; + GdkPixbuf* _tmp6_; #line 274 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp9_ = gdk_pixbuf_rotate_simple (_tmp8_, GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE); + _tmp4_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE); #line 274 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp10_ = _tmp9_; + _tmp5_ = _tmp4_; #line 274 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp11_ = gdk_pixbuf_flip (_tmp10_, FALSE); + _tmp6_ = gdk_pixbuf_flip (_tmp5_, FALSE); #line 274 "/home/jens/Source/shotwell/src/Orientation.vala" _g_object_unref0 (rotated); #line 274 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated = _tmp11_; + rotated = _tmp6_; #line 274 "/home/jens/Source/shotwell/src/Orientation.vala" - _g_object_unref0 (_tmp10_); + _g_object_unref0 (_tmp5_); #line 275 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1095 "Orientation.c" +#line 1118 "Orientation.c" } #line 253 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_RIGHT_TOP: -#line 1099 "Orientation.c" +#line 1122 "Orientation.c" { - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; -#line 278 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp12_ = pixbuf; + GdkPixbuf* _tmp7_; #line 278 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp13_ = gdk_pixbuf_rotate_simple (_tmp12_, GDK_PIXBUF_ROTATE_CLOCKWISE); + _tmp7_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_CLOCKWISE); #line 278 "/home/jens/Source/shotwell/src/Orientation.vala" _g_object_unref0 (rotated); #line 278 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated = _tmp13_; + rotated = _tmp7_; #line 279 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1113 "Orientation.c" +#line 1133 "Orientation.c" } #line 253 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_RIGHT_BOTTOM: -#line 1117 "Orientation.c" +#line 1137 "Orientation.c" { - GdkPixbuf* _tmp14_; - GdkPixbuf* _tmp15_; - GdkPixbuf* _tmp16_; - GdkPixbuf* _tmp17_; -#line 282 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp14_ = pixbuf; + GdkPixbuf* _tmp8_; + GdkPixbuf* _tmp9_; + GdkPixbuf* _tmp10_; #line 282 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp15_ = gdk_pixbuf_rotate_simple (_tmp14_, GDK_PIXBUF_ROTATE_CLOCKWISE); + _tmp8_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_CLOCKWISE); #line 282 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp16_ = _tmp15_; + _tmp9_ = _tmp8_; #line 282 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp17_ = gdk_pixbuf_flip (_tmp16_, FALSE); + _tmp10_ = gdk_pixbuf_flip (_tmp9_, FALSE); #line 282 "/home/jens/Source/shotwell/src/Orientation.vala" _g_object_unref0 (rotated); #line 282 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated = _tmp17_; + rotated = _tmp10_; #line 282 "/home/jens/Source/shotwell/src/Orientation.vala" - _g_object_unref0 (_tmp16_); + _g_object_unref0 (_tmp9_); #line 283 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1139 "Orientation.c" +#line 1156 "Orientation.c" } #line 253 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_BOTTOM: -#line 1143 "Orientation.c" +#line 1160 "Orientation.c" { - GdkPixbuf* _tmp18_; - GdkPixbuf* _tmp19_; -#line 286 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp18_ = pixbuf; + GdkPixbuf* _tmp11_; #line 286 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp19_ = gdk_pixbuf_rotate_simple (_tmp18_, GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE); + _tmp11_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE); #line 286 "/home/jens/Source/shotwell/src/Orientation.vala" _g_object_unref0 (rotated); #line 286 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated = _tmp19_; + rotated = _tmp11_; #line 287 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1157 "Orientation.c" +#line 1171 "Orientation.c" } default: { #line 290 "/home/jens/Source/shotwell/src/Orientation.vala" g_error ("Orientation.vala:290: rotate_pixbuf: %d", (gint) self); -#line 1163 "Orientation.c" +#line 1177 "Orientation.c" } } #line 293 "/home/jens/Source/shotwell/src/Orientation.vala" result = rotated; #line 293 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 1170 "Orientation.c" +#line 1184 "Orientation.c" } -void orientation_rotate_point (Orientation self, Dimensions* space, GdkPoint* point, GdkPoint* result) { - gboolean _tmp0_; - GdkPoint _tmp1_; - gint _tmp2_; - GdkPoint _tmp3_; - gint _tmp4_; - Dimensions _tmp5_; - gint _tmp6_; - GdkPoint _tmp7_; - gint _tmp8_; - GdkPoint _tmp9_; - gint _tmp10_; - Dimensions _tmp11_; - gint _tmp12_; +void +orientation_rotate_point (Orientation self, + Dimensions* space, + GdkPoint* point, + GdkPoint* result) +{ + GdkPoint _tmp0_; + gint _tmp1_; + GdkPoint _tmp2_; + gint _tmp3_; + Dimensions _tmp4_; + gint _tmp5_; + GdkPoint _tmp6_; + gint _tmp7_; + GdkPoint _tmp8_; + gint _tmp9_; + Dimensions _tmp10_; + gint _tmp11_; GdkPoint rotated = {0}; #line 297 "/home/jens/Source/shotwell/src/Orientation.vala" g_return_if_fail (space != NULL); #line 297 "/home/jens/Source/shotwell/src/Orientation.vala" g_return_if_fail (point != NULL); #line 298 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp0_ = dimensions_has_area (space); -#line 298 "/home/jens/Source/shotwell/src/Orientation.vala" - _vala_assert (_tmp0_, "space.has_area()"); + _vala_assert (dimensions_has_area (space), "space.has_area()"); #line 299 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp1_ = *point; + _tmp0_ = *point; #line 299 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp2_ = _tmp1_.x; + _tmp1_ = _tmp0_.x; #line 299 "/home/jens/Source/shotwell/src/Orientation.vala" - _vala_assert (_tmp2_ >= 0, "point.x >= 0"); + _vala_assert (_tmp1_ >= 0, "point.x >= 0"); #line 300 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp3_ = *point; + _tmp2_ = *point; #line 300 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp4_ = _tmp3_.x; + _tmp3_ = _tmp2_.x; #line 300 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp5_ = *space; + _tmp4_ = *space; #line 300 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp6_ = _tmp5_.width; + _tmp5_ = _tmp4_.width; #line 300 "/home/jens/Source/shotwell/src/Orientation.vala" - _vala_assert (_tmp4_ < _tmp6_, "point.x < space.width"); + _vala_assert (_tmp3_ < _tmp5_, "point.x < space.width"); #line 301 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp7_ = *point; + _tmp6_ = *point; #line 301 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp8_ = _tmp7_.y; + _tmp7_ = _tmp6_.y; #line 301 "/home/jens/Source/shotwell/src/Orientation.vala" - _vala_assert (_tmp8_ >= 0, "point.y >= 0"); + _vala_assert (_tmp7_ >= 0, "point.y >= 0"); #line 302 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp9_ = *point; + _tmp8_ = *point; #line 302 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp10_ = _tmp9_.y; + _tmp9_ = _tmp8_.y; #line 302 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp11_ = *space; + _tmp10_ = *space; #line 302 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp12_ = _tmp11_.height; + _tmp11_ = _tmp10_.height; #line 302 "/home/jens/Source/shotwell/src/Orientation.vala" - _vala_assert (_tmp10_ < _tmp12_, "point.y < space.height"); + _vala_assert (_tmp9_ < _tmp11_, "point.y < space.height"); #line 304 "/home/jens/Source/shotwell/src/Orientation.vala" memset (&rotated, 0, sizeof (GdkPoint)); #line 306 "/home/jens/Source/shotwell/src/Orientation.vala" switch (self) { #line 306 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_TOP_LEFT: -#line 1235 "Orientation.c" +#line 1251 "Orientation.c" { - GdkPoint _tmp13_; + GdkPoint _tmp12_; #line 309 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp13_ = *point; + _tmp12_ = *point; #line 309 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated = _tmp13_; + rotated = _tmp12_; #line 310 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1244 "Orientation.c" +#line 1260 "Orientation.c" } #line 306 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_TOP_RIGHT: -#line 1248 "Orientation.c" - { - Dimensions _tmp14_; - gint _tmp15_; - GdkPoint _tmp16_; - gint _tmp17_; - GdkPoint _tmp18_; - gint _tmp19_; +#line 1264 "Orientation.c" + { + Dimensions _tmp13_; + gint _tmp14_; + GdkPoint _tmp15_; + gint _tmp16_; + GdkPoint _tmp17_; + gint _tmp18_; #line 314 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp14_ = *space; + _tmp13_ = *space; #line 314 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp15_ = _tmp14_.width; + _tmp14_ = _tmp13_.width; #line 314 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp16_ = *point; + _tmp15_ = *point; #line 314 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp17_ = _tmp16_.x; + _tmp16_ = _tmp15_.x; #line 314 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.x = (_tmp15_ - _tmp17_) - 1; + rotated.x = (_tmp14_ - _tmp16_) - 1; #line 315 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp18_ = *point; + _tmp17_ = *point; #line 315 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp19_ = _tmp18_.y; + _tmp18_ = _tmp17_.y; #line 315 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.y = _tmp19_; + rotated.y = _tmp18_; #line 316 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1274 "Orientation.c" +#line 1290 "Orientation.c" } #line 306 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_RIGHT: -#line 1278 "Orientation.c" - { - Dimensions _tmp20_; - gint _tmp21_; - GdkPoint _tmp22_; - gint _tmp23_; - Dimensions _tmp24_; - gint _tmp25_; - GdkPoint _tmp26_; - gint _tmp27_; +#line 1294 "Orientation.c" + { + Dimensions _tmp19_; + gint _tmp20_; + GdkPoint _tmp21_; + gint _tmp22_; + Dimensions _tmp23_; + gint _tmp24_; + GdkPoint _tmp25_; + gint _tmp26_; #line 320 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp20_ = *space; + _tmp19_ = *space; #line 320 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp21_ = _tmp20_.width; + _tmp20_ = _tmp19_.width; #line 320 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp22_ = *point; + _tmp21_ = *point; #line 320 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp23_ = _tmp22_.x; + _tmp22_ = _tmp21_.x; #line 320 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.x = (_tmp21_ - _tmp23_) - 1; + rotated.x = (_tmp20_ - _tmp22_) - 1; #line 321 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp24_ = *space; + _tmp23_ = *space; #line 321 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp25_ = _tmp24_.height; + _tmp24_ = _tmp23_.height; #line 321 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp26_ = *point; + _tmp25_ = *point; #line 321 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp27_ = _tmp26_.y; + _tmp26_ = _tmp25_.y; #line 321 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.y = (_tmp25_ - _tmp27_) - 1; + rotated.y = (_tmp24_ - _tmp26_) - 1; #line 322 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1310 "Orientation.c" +#line 1326 "Orientation.c" } #line 306 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_LEFT: -#line 1314 "Orientation.c" - { - GdkPoint _tmp28_; - gint _tmp29_; - Dimensions _tmp30_; - gint _tmp31_; - GdkPoint _tmp32_; - gint _tmp33_; +#line 1330 "Orientation.c" + { + GdkPoint _tmp27_; + gint _tmp28_; + Dimensions _tmp29_; + gint _tmp30_; + GdkPoint _tmp31_; + gint _tmp32_; #line 326 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp28_ = *point; + _tmp27_ = *point; #line 326 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp29_ = _tmp28_.x; + _tmp28_ = _tmp27_.x; #line 326 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.x = _tmp29_; + rotated.x = _tmp28_; #line 327 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp30_ = *space; + _tmp29_ = *space; #line 327 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp31_ = _tmp30_.height; + _tmp30_ = _tmp29_.height; #line 327 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp32_ = *point; + _tmp31_ = *point; #line 327 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp33_ = _tmp32_.y; + _tmp32_ = _tmp31_.y; #line 327 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.y = (_tmp31_ - _tmp33_) - 1; + rotated.y = (_tmp30_ - _tmp32_) - 1; #line 328 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1340 "Orientation.c" +#line 1356 "Orientation.c" } #line 306 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_TOP: -#line 1344 "Orientation.c" +#line 1360 "Orientation.c" { - GdkPoint _tmp34_; - gint _tmp35_; - GdkPoint _tmp36_; - gint _tmp37_; + GdkPoint _tmp33_; + gint _tmp34_; + GdkPoint _tmp35_; + gint _tmp36_; #line 332 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp34_ = *point; + _tmp33_ = *point; #line 332 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp35_ = _tmp34_.y; + _tmp34_ = _tmp33_.y; #line 332 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.x = _tmp35_; + rotated.x = _tmp34_; #line 333 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp36_ = *point; + _tmp35_ = *point; #line 333 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp37_ = _tmp36_.x; + _tmp36_ = _tmp35_.x; #line 333 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.y = _tmp37_; + rotated.y = _tmp36_; #line 334 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1364 "Orientation.c" +#line 1380 "Orientation.c" } #line 306 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_RIGHT_TOP: -#line 1368 "Orientation.c" - { - Dimensions _tmp38_; - gint _tmp39_; - GdkPoint _tmp40_; - gint _tmp41_; - GdkPoint _tmp42_; - gint _tmp43_; +#line 1384 "Orientation.c" + { + Dimensions _tmp37_; + gint _tmp38_; + GdkPoint _tmp39_; + gint _tmp40_; + GdkPoint _tmp41_; + gint _tmp42_; #line 338 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp38_ = *space; + _tmp37_ = *space; #line 338 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp39_ = _tmp38_.height; + _tmp38_ = _tmp37_.height; #line 338 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp40_ = *point; + _tmp39_ = *point; #line 338 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp41_ = _tmp40_.y; + _tmp40_ = _tmp39_.y; #line 338 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.x = (_tmp39_ - _tmp41_) - 1; + rotated.x = (_tmp38_ - _tmp40_) - 1; #line 339 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp42_ = *point; + _tmp41_ = *point; #line 339 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp43_ = _tmp42_.x; + _tmp42_ = _tmp41_.x; #line 339 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.y = _tmp43_; + rotated.y = _tmp42_; #line 340 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1394 "Orientation.c" +#line 1410 "Orientation.c" } #line 306 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_RIGHT_BOTTOM: -#line 1398 "Orientation.c" - { - Dimensions _tmp44_; - gint _tmp45_; - GdkPoint _tmp46_; - gint _tmp47_; - Dimensions _tmp48_; - gint _tmp49_; - GdkPoint _tmp50_; - gint _tmp51_; +#line 1414 "Orientation.c" + { + Dimensions _tmp43_; + gint _tmp44_; + GdkPoint _tmp45_; + gint _tmp46_; + Dimensions _tmp47_; + gint _tmp48_; + GdkPoint _tmp49_; + gint _tmp50_; #line 344 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp44_ = *space; + _tmp43_ = *space; #line 344 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp45_ = _tmp44_.height; + _tmp44_ = _tmp43_.height; #line 344 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp46_ = *point; + _tmp45_ = *point; #line 344 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp47_ = _tmp46_.y; + _tmp46_ = _tmp45_.y; #line 344 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.x = (_tmp45_ - _tmp47_) - 1; + rotated.x = (_tmp44_ - _tmp46_) - 1; #line 345 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp48_ = *space; + _tmp47_ = *space; #line 345 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp49_ = _tmp48_.width; + _tmp48_ = _tmp47_.width; #line 345 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp50_ = *point; + _tmp49_ = *point; #line 345 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp51_ = _tmp50_.x; + _tmp50_ = _tmp49_.x; #line 345 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.y = (_tmp49_ - _tmp51_) - 1; + rotated.y = (_tmp48_ - _tmp50_) - 1; #line 346 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1430 "Orientation.c" +#line 1446 "Orientation.c" } #line 306 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_BOTTOM: -#line 1434 "Orientation.c" - { - GdkPoint _tmp52_; - gint _tmp53_; - Dimensions _tmp54_; - gint _tmp55_; - GdkPoint _tmp56_; - gint _tmp57_; +#line 1450 "Orientation.c" + { + GdkPoint _tmp51_; + gint _tmp52_; + Dimensions _tmp53_; + gint _tmp54_; + GdkPoint _tmp55_; + gint _tmp56_; #line 350 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp52_ = *point; + _tmp51_ = *point; #line 350 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp53_ = _tmp52_.y; + _tmp52_ = _tmp51_.y; #line 350 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.x = _tmp53_; + rotated.x = _tmp52_; #line 351 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp54_ = *space; + _tmp53_ = *space; #line 351 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp55_ = _tmp54_.width; + _tmp54_ = _tmp53_.width; #line 351 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp56_ = *point; + _tmp55_ = *point; #line 351 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp57_ = _tmp56_.x; + _tmp56_ = _tmp55_.x; #line 351 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.y = (_tmp55_ - _tmp57_) - 1; + rotated.y = (_tmp54_ - _tmp56_) - 1; #line 352 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1460 "Orientation.c" +#line 1476 "Orientation.c" } default: { #line 355 "/home/jens/Source/shotwell/src/Orientation.vala" g_error ("Orientation.vala:355: rotate_point: %d", (gint) self); -#line 1466 "Orientation.c" +#line 1482 "Orientation.c" } } #line 358 "/home/jens/Source/shotwell/src/Orientation.vala" *result = rotated; #line 358 "/home/jens/Source/shotwell/src/Orientation.vala" return; -#line 1473 "Orientation.c" +#line 1489 "Orientation.c" } -void orientation_derotate_point (Orientation self, Dimensions* space, GdkPoint* point, GdkPoint* result) { - gboolean _tmp0_; +void +orientation_derotate_point (Orientation self, + Dimensions* space, + GdkPoint* point, + GdkPoint* result) +{ GdkPoint derotated = {0}; #line 362 "/home/jens/Source/shotwell/src/Orientation.vala" g_return_if_fail (space != NULL); #line 362 "/home/jens/Source/shotwell/src/Orientation.vala" g_return_if_fail (point != NULL); #line 363 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp0_ = dimensions_has_area (space); -#line 363 "/home/jens/Source/shotwell/src/Orientation.vala" - _vala_assert (_tmp0_, "space.has_area()"); + _vala_assert (dimensions_has_area (space), "space.has_area()"); #line 365 "/home/jens/Source/shotwell/src/Orientation.vala" memset (&derotated, 0, sizeof (GdkPoint)); #line 367 "/home/jens/Source/shotwell/src/Orientation.vala" switch (self) { #line 367 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_TOP_LEFT: -#line 1494 "Orientation.c" +#line 1512 "Orientation.c" { - GdkPoint _tmp1_; + GdkPoint _tmp0_; #line 370 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp1_ = *point; + _tmp0_ = *point; #line 370 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated = _tmp1_; + derotated = _tmp0_; #line 371 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1503 "Orientation.c" +#line 1521 "Orientation.c" } #line 367 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_TOP_RIGHT: -#line 1507 "Orientation.c" - { - Dimensions _tmp2_; - gint _tmp3_; - GdkPoint _tmp4_; - gint _tmp5_; - GdkPoint _tmp6_; - gint _tmp7_; +#line 1525 "Orientation.c" + { + Dimensions _tmp1_; + gint _tmp2_; + GdkPoint _tmp3_; + gint _tmp4_; + GdkPoint _tmp5_; + gint _tmp6_; #line 375 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp2_ = *space; + _tmp1_ = *space; #line 375 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp3_ = _tmp2_.width; + _tmp2_ = _tmp1_.width; #line 375 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp4_ = *point; + _tmp3_ = *point; #line 375 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp5_ = _tmp4_.x; + _tmp4_ = _tmp3_.x; #line 375 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.x = (_tmp3_ - _tmp5_) - 1; + derotated.x = (_tmp2_ - _tmp4_) - 1; #line 376 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp6_ = *point; + _tmp5_ = *point; #line 376 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp7_ = _tmp6_.y; + _tmp6_ = _tmp5_.y; #line 376 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.y = _tmp7_; + derotated.y = _tmp6_; #line 377 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1533 "Orientation.c" +#line 1551 "Orientation.c" } #line 367 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_RIGHT: -#line 1537 "Orientation.c" - { - Dimensions _tmp8_; - gint _tmp9_; - GdkPoint _tmp10_; - gint _tmp11_; - Dimensions _tmp12_; - gint _tmp13_; - GdkPoint _tmp14_; - gint _tmp15_; +#line 1555 "Orientation.c" + { + Dimensions _tmp7_; + gint _tmp8_; + GdkPoint _tmp9_; + gint _tmp10_; + Dimensions _tmp11_; + gint _tmp12_; + GdkPoint _tmp13_; + gint _tmp14_; #line 381 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp8_ = *space; + _tmp7_ = *space; #line 381 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp9_ = _tmp8_.width; + _tmp8_ = _tmp7_.width; #line 381 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp10_ = *point; + _tmp9_ = *point; #line 381 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp11_ = _tmp10_.x; + _tmp10_ = _tmp9_.x; #line 381 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.x = (_tmp9_ - _tmp11_) - 1; + derotated.x = (_tmp8_ - _tmp10_) - 1; #line 382 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp12_ = *space; + _tmp11_ = *space; #line 382 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp13_ = _tmp12_.height; + _tmp12_ = _tmp11_.height; #line 382 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp14_ = *point; + _tmp13_ = *point; #line 382 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp15_ = _tmp14_.y; + _tmp14_ = _tmp13_.y; #line 382 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.y = (_tmp13_ - _tmp15_) - 1; + derotated.y = (_tmp12_ - _tmp14_) - 1; #line 383 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1569 "Orientation.c" +#line 1587 "Orientation.c" } #line 367 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_BOTTOM_LEFT: -#line 1573 "Orientation.c" - { - GdkPoint _tmp16_; - gint _tmp17_; - Dimensions _tmp18_; - gint _tmp19_; - GdkPoint _tmp20_; - gint _tmp21_; +#line 1591 "Orientation.c" + { + GdkPoint _tmp15_; + gint _tmp16_; + Dimensions _tmp17_; + gint _tmp18_; + GdkPoint _tmp19_; + gint _tmp20_; #line 387 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp16_ = *point; + _tmp15_ = *point; #line 387 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp17_ = _tmp16_.x; + _tmp16_ = _tmp15_.x; #line 387 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.x = _tmp17_; + derotated.x = _tmp16_; #line 388 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp18_ = *space; + _tmp17_ = *space; #line 388 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp19_ = _tmp18_.height; + _tmp18_ = _tmp17_.height; #line 388 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp20_ = *point; + _tmp19_ = *point; #line 388 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp21_ = _tmp20_.y; + _tmp20_ = _tmp19_.y; #line 388 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.y = (_tmp19_ - _tmp21_) - 1; + derotated.y = (_tmp18_ - _tmp20_) - 1; #line 389 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1599 "Orientation.c" +#line 1617 "Orientation.c" } #line 367 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_TOP: -#line 1603 "Orientation.c" +#line 1621 "Orientation.c" { - GdkPoint _tmp22_; - gint _tmp23_; - GdkPoint _tmp24_; - gint _tmp25_; + GdkPoint _tmp21_; + gint _tmp22_; + GdkPoint _tmp23_; + gint _tmp24_; #line 393 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp22_ = *point; + _tmp21_ = *point; #line 393 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp23_ = _tmp22_.y; + _tmp22_ = _tmp21_.y; #line 393 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.x = _tmp23_; + derotated.x = _tmp22_; #line 394 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp24_ = *point; + _tmp23_ = *point; #line 394 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp25_ = _tmp24_.x; + _tmp24_ = _tmp23_.x; #line 394 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.y = _tmp25_; + derotated.y = _tmp24_; #line 395 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1623 "Orientation.c" +#line 1641 "Orientation.c" } #line 367 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_RIGHT_TOP: -#line 1627 "Orientation.c" - { - GdkPoint _tmp26_; - gint _tmp27_; - Dimensions _tmp28_; - gint _tmp29_; - GdkPoint _tmp30_; - gint _tmp31_; +#line 1645 "Orientation.c" + { + GdkPoint _tmp25_; + gint _tmp26_; + Dimensions _tmp27_; + gint _tmp28_; + GdkPoint _tmp29_; + gint _tmp30_; #line 399 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp26_ = *point; + _tmp25_ = *point; #line 399 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp27_ = _tmp26_.y; + _tmp26_ = _tmp25_.y; #line 399 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.x = _tmp27_; + derotated.x = _tmp26_; #line 400 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp28_ = *space; + _tmp27_ = *space; #line 400 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp29_ = _tmp28_.height; + _tmp28_ = _tmp27_.height; #line 400 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp30_ = *point; + _tmp29_ = *point; #line 400 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp31_ = _tmp30_.x; + _tmp30_ = _tmp29_.x; #line 400 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.y = (_tmp29_ - _tmp31_) - 1; + derotated.y = (_tmp28_ - _tmp30_) - 1; #line 401 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1653 "Orientation.c" +#line 1671 "Orientation.c" } #line 367 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_RIGHT_BOTTOM: -#line 1657 "Orientation.c" - { - Dimensions _tmp32_; - gint _tmp33_; - GdkPoint _tmp34_; - gint _tmp35_; - Dimensions _tmp36_; - gint _tmp37_; - GdkPoint _tmp38_; - gint _tmp39_; +#line 1675 "Orientation.c" + { + Dimensions _tmp31_; + gint _tmp32_; + GdkPoint _tmp33_; + gint _tmp34_; + Dimensions _tmp35_; + gint _tmp36_; + GdkPoint _tmp37_; + gint _tmp38_; #line 405 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp32_ = *space; + _tmp31_ = *space; #line 405 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp33_ = _tmp32_.width; + _tmp32_ = _tmp31_.width; #line 405 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp34_ = *point; + _tmp33_ = *point; #line 405 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp35_ = _tmp34_.y; + _tmp34_ = _tmp33_.y; #line 405 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.x = (_tmp33_ - _tmp35_) - 1; + derotated.x = (_tmp32_ - _tmp34_) - 1; #line 406 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp36_ = *space; + _tmp35_ = *space; #line 406 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp37_ = _tmp36_.height; + _tmp36_ = _tmp35_.height; #line 406 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp38_ = *point; + _tmp37_ = *point; #line 406 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp39_ = _tmp38_.x; + _tmp38_ = _tmp37_.x; #line 406 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.y = (_tmp37_ - _tmp39_) - 1; + derotated.y = (_tmp36_ - _tmp38_) - 1; #line 407 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1689 "Orientation.c" +#line 1707 "Orientation.c" } #line 367 "/home/jens/Source/shotwell/src/Orientation.vala" case ORIENTATION_LEFT_BOTTOM: -#line 1693 "Orientation.c" - { - Dimensions _tmp40_; - gint _tmp41_; - GdkPoint _tmp42_; - gint _tmp43_; - GdkPoint _tmp44_; - gint _tmp45_; +#line 1711 "Orientation.c" + { + Dimensions _tmp39_; + gint _tmp40_; + GdkPoint _tmp41_; + gint _tmp42_; + GdkPoint _tmp43_; + gint _tmp44_; #line 411 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp40_ = *space; + _tmp39_ = *space; #line 411 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp41_ = _tmp40_.width; + _tmp40_ = _tmp39_.width; #line 411 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp42_ = *point; + _tmp41_ = *point; #line 411 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp43_ = _tmp42_.y; + _tmp42_ = _tmp41_.y; #line 411 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.x = (_tmp41_ - _tmp43_) - 1; + derotated.x = (_tmp40_ - _tmp42_) - 1; #line 412 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp44_ = *point; + _tmp43_ = *point; #line 412 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp45_ = _tmp44_.x; + _tmp44_ = _tmp43_.x; #line 412 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.y = _tmp45_; + derotated.y = _tmp44_; #line 413 "/home/jens/Source/shotwell/src/Orientation.vala" break; -#line 1719 "Orientation.c" +#line 1737 "Orientation.c" } default: { #line 416 "/home/jens/Source/shotwell/src/Orientation.vala" g_error ("Orientation.vala:416: rotate_point: %d", (gint) self); -#line 1725 "Orientation.c" +#line 1743 "Orientation.c" } } #line 419 "/home/jens/Source/shotwell/src/Orientation.vala" *result = derotated; #line 419 "/home/jens/Source/shotwell/src/Orientation.vala" return; -#line 1732 "Orientation.c" +#line 1750 "Orientation.c" } -void orientation_rotate_box (Orientation self, Dimensions* space, Box* box, Box* result) { +void +orientation_rotate_box (Orientation self, + Dimensions* space, + Box* box, + Box* result) +{ GdkPoint top_left = {0}; GdkPoint bottom_right = {0}; GdkPoint _tmp0_ = {0}; @@ -1741,31 +1764,27 @@ void orientation_rotate_box (Orientation self, Dimensions* space, Box* box, Box* gint _tmp3_; Dimensions _tmp4_; gint _tmp5_; - gint _tmp6_; - GdkPoint _tmp7_; - gint _tmp8_; - Dimensions _tmp9_; - gint _tmp10_; + GdkPoint _tmp6_; + gint _tmp7_; + Dimensions _tmp8_; + gint _tmp9_; + GdkPoint _tmp10_; gint _tmp11_; - GdkPoint _tmp12_; + Dimensions _tmp12_; gint _tmp13_; - Dimensions _tmp14_; + GdkPoint _tmp14_; gint _tmp15_; - gint _tmp16_; - GdkPoint _tmp17_; - gint _tmp18_; - Dimensions _tmp19_; - gint _tmp20_; - gint _tmp21_; - Dimensions _tmp22_; - GdkPoint _tmp23_; - GdkPoint _tmp24_ = {0}; - Dimensions _tmp25_; - GdkPoint _tmp26_; - GdkPoint _tmp27_ = {0}; - GdkPoint _tmp28_; - GdkPoint _tmp29_; - Box _tmp30_ = {0}; + Dimensions _tmp16_; + gint _tmp17_; + Dimensions _tmp18_; + GdkPoint _tmp19_; + GdkPoint _tmp20_ = {0}; + Dimensions _tmp21_; + GdkPoint _tmp22_; + GdkPoint _tmp23_ = {0}; + GdkPoint _tmp24_; + GdkPoint _tmp25_; + Box _tmp26_ = {0}; #line 423 "/home/jens/Source/shotwell/src/Orientation.vala" g_return_if_fail (space != NULL); #line 423 "/home/jens/Source/shotwell/src/Orientation.vala" @@ -1785,76 +1804,73 @@ void orientation_rotate_box (Orientation self, Dimensions* space, Box* box, Box* #line 427 "/home/jens/Source/shotwell/src/Orientation.vala" _tmp5_ = _tmp4_.width; #line 427 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp6_ = CLAMP (_tmp3_, 0, _tmp5_ - 1); -#line 427 "/home/jens/Source/shotwell/src/Orientation.vala" - top_left.x = _tmp6_; -#line 428 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp7_ = top_left; + top_left.x = CLAMP (_tmp3_, 0, _tmp5_ - 1); #line 428 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp8_ = _tmp7_.y; + _tmp6_ = top_left; #line 428 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp9_ = *space; + _tmp7_ = _tmp6_.y; #line 428 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp10_ = _tmp9_.height; + _tmp8_ = *space; #line 428 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp11_ = CLAMP (_tmp8_, 0, _tmp10_ - 1); + _tmp9_ = _tmp8_.height; #line 428 "/home/jens/Source/shotwell/src/Orientation.vala" - top_left.y = _tmp11_; + top_left.y = CLAMP (_tmp7_, 0, _tmp9_ - 1); #line 430 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp12_ = bottom_right; + _tmp10_ = bottom_right; #line 430 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp13_ = _tmp12_.x; + _tmp11_ = _tmp10_.x; #line 430 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp14_ = *space; + _tmp12_ = *space; #line 430 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp15_ = _tmp14_.width; + _tmp13_ = _tmp12_.width; #line 430 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp16_ = CLAMP (_tmp13_, 0, _tmp15_ - 1); -#line 430 "/home/jens/Source/shotwell/src/Orientation.vala" - bottom_right.x = _tmp16_; -#line 431 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp17_ = bottom_right; + bottom_right.x = CLAMP (_tmp11_, 0, _tmp13_ - 1); #line 431 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp18_ = _tmp17_.y; + _tmp14_ = bottom_right; #line 431 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp19_ = *space; + _tmp15_ = _tmp14_.y; #line 431 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp20_ = _tmp19_.height; + _tmp16_ = *space; #line 431 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp21_ = CLAMP (_tmp18_, 0, _tmp20_ - 1); + _tmp17_ = _tmp16_.height; #line 431 "/home/jens/Source/shotwell/src/Orientation.vala" - bottom_right.y = _tmp21_; + bottom_right.y = CLAMP (_tmp15_, 0, _tmp17_ - 1); #line 433 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp22_ = *space; + _tmp18_ = *space; #line 433 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp23_ = top_left; + _tmp19_ = top_left; #line 433 "/home/jens/Source/shotwell/src/Orientation.vala" - orientation_rotate_point (self, &_tmp22_, &_tmp23_, &_tmp24_); + orientation_rotate_point (self, &_tmp18_, &_tmp19_, &_tmp20_); #line 433 "/home/jens/Source/shotwell/src/Orientation.vala" - top_left = _tmp24_; + top_left = _tmp20_; #line 434 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp25_ = *space; + _tmp21_ = *space; #line 434 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp26_ = bottom_right; + _tmp22_ = bottom_right; #line 434 "/home/jens/Source/shotwell/src/Orientation.vala" - orientation_rotate_point (self, &_tmp25_, &_tmp26_, &_tmp27_); + orientation_rotate_point (self, &_tmp21_, &_tmp22_, &_tmp23_); #line 434 "/home/jens/Source/shotwell/src/Orientation.vala" - bottom_right = _tmp27_; + bottom_right = _tmp23_; #line 436 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp28_ = top_left; + _tmp24_ = top_left; #line 436 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp29_ = bottom_right; + _tmp25_ = bottom_right; #line 436 "/home/jens/Source/shotwell/src/Orientation.vala" - box_from_points (&_tmp28_, &_tmp29_, &_tmp30_); + box_from_points (&_tmp24_, &_tmp25_, &_tmp26_); #line 436 "/home/jens/Source/shotwell/src/Orientation.vala" - *result = _tmp30_; + *result = _tmp26_; #line 436 "/home/jens/Source/shotwell/src/Orientation.vala" return; -#line 1854 "Orientation.c" +#line 1865 "Orientation.c" } -void orientation_derotate_box (Orientation self, Dimensions* space, Box* box, Box* result) { +void +orientation_derotate_box (Orientation self, + Dimensions* space, + Box* box, + Box* result) +{ GdkPoint top_left = {0}; GdkPoint bottom_right = {0}; GdkPoint _tmp0_ = {0}; @@ -1904,11 +1920,13 @@ void orientation_derotate_box (Orientation self, Dimensions* space, Box* box, Bo *result = _tmp10_; #line 447 "/home/jens/Source/shotwell/src/Orientation.vala" return; -#line 1908 "Orientation.c" +#line 1924 "Orientation.c" } -GType orientation_get_type (void) { +GType +orientation_get_type (void) +{ static volatile gsize orientation_type_id__volatile = 0; if (g_once_init_enter (&orientation_type_id__volatile)) { static const GEnumValue values[] = {{ORIENTATION_MIN, "ORIENTATION_MIN", "min"}, {ORIENTATION_TOP_LEFT, "ORIENTATION_TOP_LEFT", "top-left"}, {ORIENTATION_TOP_RIGHT, "ORIENTATION_TOP_RIGHT", "top-right"}, {ORIENTATION_BOTTOM_RIGHT, "ORIENTATION_BOTTOM_RIGHT", "bottom-right"}, {ORIENTATION_BOTTOM_LEFT, "ORIENTATION_BOTTOM_LEFT", "bottom-left"}, {ORIENTATION_LEFT_TOP, "ORIENTATION_LEFT_TOP", "left-top"}, {ORIENTATION_RIGHT_TOP, "ORIENTATION_RIGHT_TOP", "right-top"}, {ORIENTATION_RIGHT_BOTTOM, "ORIENTATION_RIGHT_BOTTOM", "right-bottom"}, {ORIENTATION_LEFT_BOTTOM, "ORIENTATION_LEFT_BOTTOM", "left-bottom"}, {ORIENTATION_MAX, "ORIENTATION_MAX", "max"}, {0, NULL, NULL}}; @@ -1920,7 +1938,10 @@ GType orientation_get_type (void) { } -GdkPixbuf* rotation_perform (Rotation self, GdkPixbuf* pixbuf) { +GdkPixbuf* +rotation_perform (Rotation self, + GdkPixbuf* pixbuf) +{ GdkPixbuf* result = NULL; #line 457 "/home/jens/Source/shotwell/src/Orientation.vala" g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL); @@ -1928,125 +1949,117 @@ GdkPixbuf* rotation_perform (Rotation self, GdkPixbuf* pixbuf) { switch (self) { #line 458 "/home/jens/Source/shotwell/src/Orientation.vala" case ROTATION_CLOCKWISE: -#line 1932 "Orientation.c" +#line 1953 "Orientation.c" { GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; -#line 460 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp0_ = pixbuf; #line 460 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp1_ = gdk_pixbuf_rotate_simple (_tmp0_, GDK_PIXBUF_ROTATE_CLOCKWISE); + _tmp0_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_CLOCKWISE); #line 460 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp1_; + result = _tmp0_; #line 460 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 1944 "Orientation.c" +#line 1962 "Orientation.c" } #line 458 "/home/jens/Source/shotwell/src/Orientation.vala" case ROTATION_COUNTERCLOCKWISE: -#line 1948 "Orientation.c" +#line 1966 "Orientation.c" { - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; -#line 463 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp2_ = pixbuf; + GdkPixbuf* _tmp1_; #line 463 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp3_ = gdk_pixbuf_rotate_simple (_tmp2_, GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE); + _tmp1_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE); #line 463 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp3_; + result = _tmp1_; #line 463 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 1960 "Orientation.c" +#line 1975 "Orientation.c" } #line 458 "/home/jens/Source/shotwell/src/Orientation.vala" case ROTATION_MIRROR: -#line 1964 "Orientation.c" +#line 1979 "Orientation.c" { - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; -#line 466 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp4_ = pixbuf; + GdkPixbuf* _tmp2_; #line 466 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp5_ = gdk_pixbuf_flip (_tmp4_, TRUE); + _tmp2_ = gdk_pixbuf_flip (pixbuf, TRUE); #line 466 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp5_; + result = _tmp2_; #line 466 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 1976 "Orientation.c" +#line 1988 "Orientation.c" } #line 458 "/home/jens/Source/shotwell/src/Orientation.vala" case ROTATION_UPSIDE_DOWN: -#line 1980 "Orientation.c" +#line 1992 "Orientation.c" { - GdkPixbuf* _tmp6_; - GdkPixbuf* _tmp7_; -#line 469 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp6_ = pixbuf; + GdkPixbuf* _tmp3_; #line 469 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp7_ = gdk_pixbuf_flip (_tmp6_, FALSE); + _tmp3_ = gdk_pixbuf_flip (pixbuf, FALSE); #line 469 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp7_; + result = _tmp3_; #line 469 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 1992 "Orientation.c" +#line 2001 "Orientation.c" } default: { #line 472 "/home/jens/Source/shotwell/src/Orientation.vala" g_error ("Orientation.vala:472: Unknown rotation: %d", (gint) self); -#line 1998 "Orientation.c" +#line 2007 "Orientation.c" } } } -Rotation rotation_opposite (Rotation self) { +Rotation +rotation_opposite (Rotation self) +{ Rotation result = 0; #line 477 "/home/jens/Source/shotwell/src/Orientation.vala" switch (self) { #line 477 "/home/jens/Source/shotwell/src/Orientation.vala" case ROTATION_CLOCKWISE: -#line 2010 "Orientation.c" +#line 2021 "Orientation.c" { #line 479 "/home/jens/Source/shotwell/src/Orientation.vala" result = ROTATION_COUNTERCLOCKWISE; #line 479 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 2016 "Orientation.c" +#line 2027 "Orientation.c" } #line 477 "/home/jens/Source/shotwell/src/Orientation.vala" case ROTATION_COUNTERCLOCKWISE: -#line 2020 "Orientation.c" +#line 2031 "Orientation.c" { #line 482 "/home/jens/Source/shotwell/src/Orientation.vala" result = ROTATION_CLOCKWISE; #line 482 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 2026 "Orientation.c" +#line 2037 "Orientation.c" } #line 477 "/home/jens/Source/shotwell/src/Orientation.vala" case ROTATION_MIRROR: #line 477 "/home/jens/Source/shotwell/src/Orientation.vala" case ROTATION_UPSIDE_DOWN: -#line 2032 "Orientation.c" +#line 2043 "Orientation.c" { #line 486 "/home/jens/Source/shotwell/src/Orientation.vala" result = self; #line 486 "/home/jens/Source/shotwell/src/Orientation.vala" return result; -#line 2038 "Orientation.c" +#line 2049 "Orientation.c" } default: { #line 489 "/home/jens/Source/shotwell/src/Orientation.vala" g_error ("Orientation.vala:489: Unknown rotation: %d", (gint) self); -#line 2044 "Orientation.c" +#line 2055 "Orientation.c" } } } -GType rotation_get_type (void) { +GType +rotation_get_type (void) +{ static volatile gsize rotation_type_id__volatile = 0; if (g_once_init_enter (&rotation_type_id__volatile)) { static const GEnumValue values[] = {{ROTATION_CLOCKWISE, "ROTATION_CLOCKWISE", "clockwise"}, {ROTATION_COUNTERCLOCKWISE, "ROTATION_COUNTERCLOCKWISE", "counterclockwise"}, {ROTATION_MIRROR, "ROTATION_MIRROR", "mirror"}, {ROTATION_UPSIDE_DOWN, "ROTATION_UPSIDE_DOWN", "upside-down"}, {0, NULL, NULL}}; |