diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-06-25 20:57:00 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-06-25 20:57:00 +0200 |
commit | a9bafe967a7a664c43dec4aeb64a6f6e0f284e05 (patch) | |
tree | 653c43a63b70c47278367ad2a4e92640a6669b44 /plugins/shotwell-transitions/ChessEffect.c | |
parent | 55778740c211992cc86ea87588ab62c6750f36d1 (diff) | |
parent | ab841afa5cb39058d9ab2cebb67cfe6369443f6e (diff) |
Update upstream source from tag 'upstream/0.28.3'
Update to upstream version '0.28.3'
with Debian dir 828a38627ed9287d7cf2466fb15ebdea073742b7
Diffstat (limited to 'plugins/shotwell-transitions/ChessEffect.c')
-rw-r--r-- | plugins/shotwell-transitions/ChessEffect.c | 621 |
1 files changed, 309 insertions, 312 deletions
diff --git a/plugins/shotwell-transitions/ChessEffect.c b/plugins/shotwell-transitions/ChessEffect.c index e0e3b30..103eeb0 100644 --- a/plugins/shotwell-transitions/ChessEffect.c +++ b/plugins/shotwell-transitions/ChessEffect.c @@ -1,4 +1,4 @@ -/* ChessEffect.c generated by valac 0.36.6, the Vala compiler +/* ChessEffect.c generated by valac 0.40.4, the Vala compiler * generated from ChessEffect.vala, do not modify */ /* Copyright 2013 Jens Bav @@ -8,6 +8,7 @@ * (version 2.1 or later). See the COPYING file in this distribution. */ + #include <glib.h> #include <glib-object.h> #include <shotwell-plugin-dev-1.0.h> @@ -42,6 +43,11 @@ typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptor typedef struct _ChessEffectDescriptor ChessEffectDescriptor; typedef struct _ChessEffectDescriptorClass ChessEffectDescriptorClass; typedef struct _ChessEffectDescriptorPrivate ChessEffectDescriptorPrivate; +enum { + CHESS_EFFECT_DESCRIPTOR_0_PROPERTY, + CHESS_EFFECT_DESCRIPTOR_NUM_PROPERTIES +}; +static GParamSpec* chess_effect_descriptor_properties[CHESS_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; #define TYPE_CHESS_EFFECT (chess_effect_get_type ()) #define CHESS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHESS_EFFECT, ChessEffect)) @@ -53,6 +59,11 @@ typedef struct _ChessEffectDescriptorPrivate ChessEffectDescriptorPrivate; typedef struct _ChessEffect ChessEffect; typedef struct _ChessEffectClass ChessEffectClass; typedef struct _ChessEffectPrivate ChessEffectPrivate; +enum { + CHESS_EFFECT_0_PROPERTY, + CHESS_EFFECT_NUM_PROPERTIES +}; +static GParamSpec* chess_effect_properties[CHESS_EFFECT_NUM_PROPERTIES]; struct _ShotwellTransitionDescriptor { GObject parent_instance; @@ -96,57 +107,71 @@ static SpitTransitionsEffectIface * chess_effect_spit_transitions_effect_parent_ GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; GType chess_effect_descriptor_get_type (void) G_GNUC_CONST; -enum { - CHESS_EFFECT_DESCRIPTOR_DUMMY_PROPERTY -}; ChessEffectDescriptor* chess_effect_descriptor_new (GFile* resource_directory); -ChessEffectDescriptor* chess_effect_descriptor_construct (GType object_type, GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, GFile* resource_directory); +ChessEffectDescriptor* chess_effect_descriptor_construct (GType object_type, + GFile* resource_directory); +ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, + GFile* resource_directory); static const gchar* chess_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); static const gchar* chess_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* chess_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host); +static SpitTransitionsEffect* chess_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, + SpitHostInterface* host); ChessEffect* chess_effect_new (void); ChessEffect* chess_effect_construct (GType object_type); GType chess_effect_get_type (void) G_GNUC_CONST; #define CHESS_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CHESS_EFFECT, ChessEffectPrivate)) -enum { - CHESS_EFFECT_DUMMY_PROPERTY -}; #define CHESS_EFFECT_DESIRED_FPS 25 #define CHESS_EFFECT_MIN_FPS 10 #define CHESS_EFFECT_SQUARE_SIZE 100 -static void chess_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps); -static void chess_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion); +static void chess_effect_real_get_fps (SpitTransitionsEffect* base, + gint* desired_fps, + gint* min_fps); +static void chess_effect_real_start (SpitTransitionsEffect* base, + SpitTransitionsVisuals* visuals, + SpitTransitionsMotion* motion); static gboolean chess_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void chess_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number); -static void chess_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number); +static void chess_effect_real_paint (SpitTransitionsEffect* base, + SpitTransitionsVisuals* visuals, + SpitTransitionsMotion* motion, + cairo_t* ctx, + gint width, + gint height, + gint frame_number); +static void chess_effect_real_advance (SpitTransitionsEffect* base, + SpitTransitionsVisuals* visuals, + SpitTransitionsMotion* motion, + gint frame_number); static void chess_effect_real_cancel (SpitTransitionsEffect* base); static void chess_effect_finalize (GObject * obj); -ChessEffectDescriptor* chess_effect_descriptor_construct (GType object_type, GFile* resource_directory) { +ChessEffectDescriptor* +chess_effect_descriptor_construct (GType object_type, + GFile* resource_directory) +{ ChessEffectDescriptor * self = NULL; - GFile* _tmp0_; #line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); #line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp0_ = resource_directory; -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = (ChessEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, _tmp0_); + self = (ChessEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); #line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" return self; -#line 139 "ChessEffect.c" +#line 160 "ChessEffect.c" } -ChessEffectDescriptor* chess_effect_descriptor_new (GFile* resource_directory) { +ChessEffectDescriptor* +chess_effect_descriptor_new (GFile* resource_directory) +{ #line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" return chess_effect_descriptor_construct (TYPE_CHESS_EFFECT_DESCRIPTOR, resource_directory); -#line 146 "ChessEffect.c" +#line 169 "ChessEffect.c" } -static const gchar* chess_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) { +static const gchar* +chess_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) +{ ChessEffectDescriptor * self; const gchar* result = NULL; #line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" @@ -155,11 +180,13 @@ static const gchar* chess_effect_descriptor_real_get_id (ShotwellTransitionDescr result = "org.yorba.shotwell.transitions.chess"; #line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" return result; -#line 159 "ChessEffect.c" +#line 184 "ChessEffect.c" } -static const gchar* chess_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) { +static const gchar* +chess_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) +{ ChessEffectDescriptor * self; const gchar* result = NULL; #line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" @@ -168,11 +195,14 @@ static const gchar* chess_effect_descriptor_real_get_pluggable_name (ShotwellTra result = _ ("Chess"); #line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" return result; -#line 172 "ChessEffect.c" +#line 199 "ChessEffect.c" } -static SpitTransitionsEffect* chess_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, SpitHostInterface* host) { +static SpitTransitionsEffect* +chess_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, + SpitHostInterface* host) +{ ChessEffectDescriptor * self; SpitTransitionsEffect* result = NULL; ChessEffect* _tmp0_; @@ -186,11 +216,13 @@ static SpitTransitionsEffect* chess_effect_descriptor_real_create (ShotwellTrans result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); #line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" return result; -#line 190 "ChessEffect.c" +#line 220 "ChessEffect.c" } -static void chess_effect_descriptor_class_init (ChessEffectDescriptorClass * klass) { +static void +chess_effect_descriptor_class_init (ChessEffectDescriptorClass * klass) +{ #line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" chess_effect_descriptor_parent_class = g_type_class_peek_parent (klass); #line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" @@ -199,15 +231,19 @@ static void chess_effect_descriptor_class_init (ChessEffectDescriptorClass * kla ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) chess_effect_descriptor_real_get_pluggable_name; #line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) chess_effect_descriptor_real_create; -#line 203 "ChessEffect.c" +#line 235 "ChessEffect.c" } -static void chess_effect_descriptor_instance_init (ChessEffectDescriptor * self) { +static void +chess_effect_descriptor_instance_init (ChessEffectDescriptor * self) +{ } -GType chess_effect_descriptor_get_type (void) { +GType +chess_effect_descriptor_get_type (void) +{ static volatile gsize chess_effect_descriptor_type_id__volatile = 0; if (g_once_init_enter (&chess_effect_descriptor_type_id__volatile)) { static const GTypeInfo g_define_type_info = { sizeof (ChessEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) chess_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ChessEffectDescriptor), 0, (GInstanceInitFunc) chess_effect_descriptor_instance_init, NULL }; @@ -219,24 +255,32 @@ GType chess_effect_descriptor_get_type (void) { } -ChessEffect* chess_effect_construct (GType object_type) { +ChessEffect* +chess_effect_construct (GType object_type) +{ ChessEffect * self = NULL; #line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" self = (ChessEffect*) g_object_new (object_type, NULL); #line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" return self; -#line 229 "ChessEffect.c" +#line 267 "ChessEffect.c" } -ChessEffect* chess_effect_new (void) { +ChessEffect* +chess_effect_new (void) +{ #line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" return chess_effect_construct (TYPE_CHESS_EFFECT); -#line 236 "ChessEffect.c" +#line 276 "ChessEffect.c" } -static void chess_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps) { +static void +chess_effect_real_get_fps (SpitTransitionsEffect* base, + gint* desired_fps, + gint* min_fps) +{ ChessEffect * self; gint _vala_desired_fps = 0; gint _vala_min_fps = 0; @@ -250,27 +294,29 @@ static void chess_effect_real_get_fps (SpitTransitionsEffect* base, gint* desire if (desired_fps) { #line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" *desired_fps = _vala_desired_fps; -#line 254 "ChessEffect.c" +#line 298 "ChessEffect.c" } #line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" if (min_fps) { #line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" *min_fps = _vala_min_fps; -#line 260 "ChessEffect.c" +#line 304 "ChessEffect.c" } } -static void chess_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion) { +static void +chess_effect_real_start (SpitTransitionsEffect* base, + SpitTransitionsVisuals* visuals, + SpitTransitionsMotion* motion) +{ ChessEffect * self; - SpitTransitionsVisuals* _tmp0_; - GdkRectangle _tmp1_ = {0}; - GdkRectangle _tmp2_; - gint _tmp3_; - SpitTransitionsVisuals* _tmp4_; - GdkRectangle _tmp5_ = {0}; - GdkRectangle _tmp6_; - gint _tmp7_; + GdkRectangle _tmp0_ = {0}; + GdkRectangle _tmp1_; + gint _tmp2_; + GdkRectangle _tmp3_ = {0}; + GdkRectangle _tmp4_; + gint _tmp5_; #line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); #line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" @@ -278,30 +324,28 @@ static void chess_effect_real_start (SpitTransitionsEffect* base, SpitTransition #line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); #line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp0_ = visuals; + spit_transitions_visuals_get_to_pos (visuals, &_tmp0_); #line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (_tmp0_, &_tmp1_); + _tmp1_ = _tmp0_; #line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp2_ = _tmp1_; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp3_ = _tmp2_.height; + _tmp2_ = _tmp1_.height; #line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self->priv->square_count_y = (gdouble) ((_tmp3_ / CHESS_EFFECT_SQUARE_SIZE) + 2); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp4_ = visuals; + self->priv->square_count_y = (gdouble) ((_tmp2_ / CHESS_EFFECT_SQUARE_SIZE) + 2); #line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (_tmp4_, &_tmp5_); + spit_transitions_visuals_get_to_pos (visuals, &_tmp3_); #line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp6_ = _tmp5_; + _tmp4_ = _tmp3_; #line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp7_ = _tmp6_.width; + _tmp5_ = _tmp4_.width; #line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self->priv->square_count_x = (gdouble) ((_tmp7_ / CHESS_EFFECT_SQUARE_SIZE) + 2); -#line 301 "ChessEffect.c" + self->priv->square_count_x = (gdouble) ((_tmp5_ / CHESS_EFFECT_SQUARE_SIZE) + 2); +#line 343 "ChessEffect.c" } -static gboolean chess_effect_real_needs_clear_background (SpitTransitionsEffect* base) { +static gboolean +chess_effect_real_needs_clear_background (SpitTransitionsEffect* base) +{ ChessEffect * self; gboolean result = FALSE; #line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" @@ -310,24 +354,27 @@ static gboolean chess_effect_real_needs_clear_background (SpitTransitionsEffect* result = TRUE; #line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" return result; -#line 314 "ChessEffect.c" +#line 358 "ChessEffect.c" } -static void chess_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number) { +static void +chess_effect_real_paint (SpitTransitionsEffect* base, + SpitTransitionsVisuals* visuals, + SpitTransitionsMotion* motion, + cairo_t* ctx, + gint width, + gint height, + gint frame_number) +{ ChessEffect * self; gdouble alpha = 0.0; - SpitTransitionsMotion* _tmp0_; - gint _tmp1_; - gdouble _tmp2_; gdouble size = 0.0; - gdouble _tmp3_; - SpitTransitionsVisuals* _tmp4_; - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; - SpitTransitionsVisuals* _tmp21_; - GdkPixbuf* _tmp22_; - GdkPixbuf* _tmp23_; + gdouble _tmp0_; + GdkPixbuf* _tmp1_; + GdkPixbuf* _tmp2_; + GdkPixbuf* _tmp12_; + GdkPixbuf* _tmp13_; #line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); #line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" @@ -337,329 +384,266 @@ static void chess_effect_real_paint (SpitTransitionsEffect* base, SpitTransition #line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" g_return_if_fail (ctx != NULL); #line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp0_ = motion; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp1_ = frame_number; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp2_ = spit_transitions_motion_get_alpha (_tmp0_, _tmp1_); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - alpha = _tmp2_; + alpha = spit_transitions_motion_get_alpha (motion, frame_number); #line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp3_ = alpha; + _tmp0_ = alpha; #line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - size = (2 * _tmp3_) * CHESS_EFFECT_SQUARE_SIZE; + size = (2 * _tmp0_) * CHESS_EFFECT_SQUARE_SIZE; #line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp4_ = visuals; + _tmp1_ = spit_transitions_visuals_get_from_pixbuf (visuals); #line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp5_ = spit_transitions_visuals_get_from_pixbuf (_tmp4_); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp6_ = _tmp5_; + _tmp2_ = _tmp1_; #line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (_tmp6_ != NULL) { -#line 360 "ChessEffect.c" - cairo_t* _tmp7_; - SpitTransitionsVisuals* _tmp8_; - GdkPixbuf* _tmp9_; - GdkPixbuf* _tmp10_; - SpitTransitionsVisuals* _tmp11_; - GdkRectangle _tmp12_ = {0}; - GdkRectangle _tmp13_; - gint _tmp14_; - SpitTransitionsVisuals* _tmp15_; - GdkRectangle _tmp16_ = {0}; - GdkRectangle _tmp17_; - gint _tmp18_; - cairo_t* _tmp19_; - gdouble _tmp20_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp7_ = ctx; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp8_ = visuals; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp9_ = spit_transitions_visuals_get_from_pixbuf (_tmp8_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp10_ = _tmp9_; + if (_tmp2_ != NULL) { +#line 399 "ChessEffect.c" + GdkPixbuf* _tmp3_; + GdkPixbuf* _tmp4_; + GdkRectangle _tmp5_ = {0}; + GdkRectangle _tmp6_; + gint _tmp7_; + GdkRectangle _tmp8_ = {0}; + GdkRectangle _tmp9_; + gint _tmp10_; + gdouble _tmp11_; #line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp11_ = visuals; + _tmp3_ = spit_transitions_visuals_get_from_pixbuf (visuals); #line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_from_pos (_tmp11_, &_tmp12_); + _tmp4_ = _tmp3_; #line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp13_ = _tmp12_; + spit_transitions_visuals_get_from_pos (visuals, &_tmp5_); #line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp14_ = _tmp13_.x; + _tmp6_ = _tmp5_; #line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp15_ = visuals; + _tmp7_ = _tmp6_.x; #line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_from_pos (_tmp15_, &_tmp16_); + spit_transitions_visuals_get_from_pos (visuals, &_tmp8_); #line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp17_ = _tmp16_; + _tmp9_ = _tmp8_; #line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp18_ = _tmp17_.y; + _tmp10_ = _tmp9_.y; #line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - gdk_cairo_set_source_pixbuf (_tmp7_, _tmp10_, (gdouble) _tmp14_, (gdouble) _tmp18_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp19_ = ctx; + gdk_cairo_set_source_pixbuf (ctx, _tmp4_, (gdouble) _tmp7_, (gdouble) _tmp10_); #line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp20_ = alpha; + _tmp11_ = alpha; #line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_paint_with_alpha (_tmp19_, 1 - _tmp20_); -#line 407 "ChessEffect.c" + cairo_paint_with_alpha (ctx, 1 - _tmp11_); +#line 431 "ChessEffect.c" } #line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp21_ = visuals; + _tmp12_ = spit_transitions_visuals_get_to_pixbuf (visuals); #line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp22_ = spit_transitions_visuals_get_to_pixbuf (_tmp21_); + _tmp13_ = _tmp12_; #line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp23_ = _tmp22_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (_tmp23_ != NULL) { -#line 417 "ChessEffect.c" - cairo_t* _tmp24_; - SpitTransitionsVisuals* _tmp25_; - GdkPixbuf* _tmp26_; - GdkPixbuf* _tmp27_; - SpitTransitionsVisuals* _tmp28_; - GdkRectangle _tmp29_ = {0}; - GdkRectangle _tmp30_; - gint _tmp31_; - SpitTransitionsVisuals* _tmp32_; - GdkRectangle _tmp33_ = {0}; - GdkRectangle _tmp34_; - gint _tmp35_; - cairo_t* _tmp81_; - cairo_t* _tmp82_; - gdouble _tmp83_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp24_ = ctx; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp25_ = visuals; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp26_ = spit_transitions_visuals_get_to_pixbuf (_tmp25_); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp27_ = _tmp26_; + if (_tmp13_ != NULL) { +#line 439 "ChessEffect.c" + GdkPixbuf* _tmp14_; + GdkPixbuf* _tmp15_; + GdkRectangle _tmp16_ = {0}; + GdkRectangle _tmp17_; + gint _tmp18_; + GdkRectangle _tmp19_ = {0}; + GdkRectangle _tmp20_; + gint _tmp21_; + gdouble _tmp59_; #line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp28_ = visuals; + _tmp14_ = spit_transitions_visuals_get_to_pixbuf (visuals); #line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (_tmp28_, &_tmp29_); + _tmp15_ = _tmp14_; #line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp30_ = _tmp29_; + spit_transitions_visuals_get_to_pos (visuals, &_tmp16_); #line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp31_ = _tmp30_.x; + _tmp17_ = _tmp16_; #line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp32_ = visuals; + _tmp18_ = _tmp17_.x; #line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (_tmp32_, &_tmp33_); + spit_transitions_visuals_get_to_pos (visuals, &_tmp19_); #line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp34_ = _tmp33_; + _tmp20_ = _tmp19_; #line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp35_ = _tmp34_.y; + _tmp21_ = _tmp20_.y; #line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - gdk_cairo_set_source_pixbuf (_tmp24_, _tmp27_, (gdouble) _tmp31_, (gdouble) _tmp35_); -#line 459 "ChessEffect.c" + gdk_cairo_set_source_pixbuf (ctx, _tmp15_, (gdouble) _tmp18_, (gdouble) _tmp21_); +#line 467 "ChessEffect.c" { gdouble y = 0.0; #line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" y = (gdouble) 0; -#line 464 "ChessEffect.c" +#line 472 "ChessEffect.c" { - gboolean _tmp36_ = FALSE; + gboolean _tmp22_ = FALSE; #line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp36_ = TRUE; + _tmp22_ = TRUE; #line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" while (TRUE) { -#line 471 "ChessEffect.c" - gdouble _tmp38_; - gdouble _tmp39_; +#line 479 "ChessEffect.c" + gdouble _tmp24_; + gdouble _tmp25_; #line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (!_tmp36_) { -#line 476 "ChessEffect.c" - gdouble _tmp37_; + if (!_tmp22_) { +#line 484 "ChessEffect.c" + gdouble _tmp23_; #line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp37_ = y; + _tmp23_ = y; #line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - y = _tmp37_ + 1; -#line 482 "ChessEffect.c" + y = _tmp23_ + 1; +#line 490 "ChessEffect.c" } #line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp36_ = FALSE; + _tmp22_ = FALSE; #line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp38_ = y; + _tmp24_ = y; #line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp39_ = self->priv->square_count_y; + _tmp25_ = self->priv->square_count_y; #line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (!(_tmp38_ <= _tmp39_)) { + if (!(_tmp24_ <= _tmp25_)) { #line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" break; -#line 494 "ChessEffect.c" +#line 502 "ChessEffect.c" } { gdouble x = 0.0; #line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" x = (gdouble) 0; -#line 500 "ChessEffect.c" +#line 508 "ChessEffect.c" { - gboolean _tmp40_ = FALSE; + gboolean _tmp26_ = FALSE; #line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp40_ = TRUE; + _tmp26_ = TRUE; #line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" while (TRUE) { -#line 507 "ChessEffect.c" - gdouble _tmp42_; - gdouble _tmp43_; - gdouble _tmp44_ = 0.0; - gdouble _tmp45_; - gdouble _tmp46_; +#line 515 "ChessEffect.c" + gdouble _tmp28_; + gdouble _tmp29_; + gdouble _tmp30_ = 0.0; + gdouble _tmp31_; + gdouble _tmp32_; gdouble translation = 0.0; - SpitTransitionsMotion* _tmp47_; - SpitTransitionsDirection _tmp48_; - SpitTransitionsDirection _tmp49_; + SpitTransitionsDirection _tmp33_; + SpitTransitionsDirection _tmp34_; #line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (!_tmp40_) { -#line 519 "ChessEffect.c" - gdouble _tmp41_; + if (!_tmp26_) { +#line 526 "ChessEffect.c" + gdouble _tmp27_; #line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp41_ = x; + _tmp27_ = x; #line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - x = _tmp41_ + 1; -#line 525 "ChessEffect.c" + x = _tmp27_ + 1; +#line 532 "ChessEffect.c" } #line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp40_ = FALSE; + _tmp26_ = FALSE; #line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp42_ = x; + _tmp28_ = x; #line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp43_ = self->priv->square_count_x; + _tmp29_ = self->priv->square_count_x; #line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (!(_tmp42_ <= _tmp43_)) { + if (!(_tmp28_ <= _tmp29_)) { #line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" break; -#line 537 "ChessEffect.c" +#line 544 "ChessEffect.c" } #line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp45_ = x; + _tmp31_ = x; #line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp46_ = y; + _tmp32_ = y; #line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (fmod (_tmp45_ + _tmp46_, 2) == ((gdouble) 0)) { + if (fmod (_tmp31_ + _tmp32_, 2) == ((gdouble) 0)) { #line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp44_ = (-1.5) * CHESS_EFFECT_SQUARE_SIZE; -#line 547 "ChessEffect.c" + _tmp30_ = (-1.5) * CHESS_EFFECT_SQUARE_SIZE; +#line 554 "ChessEffect.c" } else { #line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp44_ = 1.5 * CHESS_EFFECT_SQUARE_SIZE; -#line 551 "ChessEffect.c" + _tmp30_ = 1.5 * CHESS_EFFECT_SQUARE_SIZE; +#line 558 "ChessEffect.c" } #line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - translation = _tmp44_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp47_ = motion; + translation = _tmp30_; #line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp48_ = spit_transitions_motion_get_direction (_tmp47_); + _tmp33_ = spit_transitions_motion_get_direction (motion); #line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp49_ = _tmp48_; + _tmp34_ = _tmp33_; #line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (_tmp49_ == SPIT_TRANSITIONS_DIRECTION_FORWARD) { -#line 563 "ChessEffect.c" - cairo_t* _tmp50_; - SpitTransitionsVisuals* _tmp51_; - GdkRectangle _tmp52_ = {0}; - GdkRectangle _tmp53_; - gint _tmp54_; - gdouble _tmp55_; - gdouble _tmp56_; - SpitTransitionsVisuals* _tmp57_; - GdkRectangle _tmp58_ = {0}; - GdkRectangle _tmp59_; - gint _tmp60_; - gdouble _tmp61_; - gdouble _tmp62_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp50_ = ctx; + if (_tmp34_ == SPIT_TRANSITIONS_DIRECTION_FORWARD) { +#line 568 "ChessEffect.c" + GdkRectangle _tmp35_ = {0}; + GdkRectangle _tmp36_; + gint _tmp37_; + gdouble _tmp38_; + gdouble _tmp39_; + GdkRectangle _tmp40_ = {0}; + GdkRectangle _tmp41_; + gint _tmp42_; + gdouble _tmp43_; + gdouble _tmp44_; #line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp51_ = visuals; + spit_transitions_visuals_get_to_pos (visuals, &_tmp35_); #line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (_tmp51_, &_tmp52_); + _tmp36_ = _tmp35_; #line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp53_ = _tmp52_; + _tmp37_ = _tmp36_.x; #line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp54_ = _tmp53_.x; + _tmp38_ = translation; #line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp55_ = translation; + _tmp39_ = x; #line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp56_ = x; + spit_transitions_visuals_get_to_pos (visuals, &_tmp40_); #line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp57_ = visuals; + _tmp41_ = _tmp40_; #line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (_tmp57_, &_tmp58_); + _tmp42_ = _tmp41_.y; #line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp59_ = _tmp58_; + _tmp43_ = y; #line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp60_ = _tmp59_.y; + _tmp44_ = size; #line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp61_ = y; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp62_ = size; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_rectangle (_tmp50_, (_tmp54_ + _tmp55_) + (_tmp56_ * CHESS_EFFECT_SQUARE_SIZE), _tmp60_ + (_tmp61_ * CHESS_EFFECT_SQUARE_SIZE), _tmp62_, (gdouble) CHESS_EFFECT_SQUARE_SIZE); -#line 605 "ChessEffect.c" + cairo_rectangle (ctx, (_tmp37_ + _tmp38_) + (_tmp39_ * CHESS_EFFECT_SQUARE_SIZE), _tmp42_ + (_tmp43_ * CHESS_EFFECT_SQUARE_SIZE), _tmp44_, (gdouble) CHESS_EFFECT_SQUARE_SIZE); +#line 601 "ChessEffect.c" } else { - cairo_t* _tmp63_; - SpitTransitionsVisuals* _tmp64_; - GdkRectangle _tmp65_ = {0}; - GdkRectangle _tmp66_; - gint _tmp67_; - SpitTransitionsVisuals* _tmp68_; - GdkRectangle _tmp69_ = {0}; - GdkRectangle _tmp70_; - gint _tmp71_; - gdouble _tmp72_; - gdouble _tmp73_; - gdouble _tmp74_; - SpitTransitionsVisuals* _tmp75_; - GdkRectangle _tmp76_ = {0}; - GdkRectangle _tmp77_; - gint _tmp78_; - gdouble _tmp79_; - gdouble _tmp80_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp63_ = ctx; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp64_ = visuals; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (_tmp64_, &_tmp65_); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp66_ = _tmp65_; + GdkRectangle _tmp45_ = {0}; + GdkRectangle _tmp46_; + gint _tmp47_; + GdkRectangle _tmp48_ = {0}; + GdkRectangle _tmp49_; + gint _tmp50_; + gdouble _tmp51_; + gdouble _tmp52_; + gdouble _tmp53_; + GdkRectangle _tmp54_ = {0}; + GdkRectangle _tmp55_; + gint _tmp56_; + gdouble _tmp57_; + gdouble _tmp58_; #line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp67_ = _tmp66_.x; + spit_transitions_visuals_get_to_pos (visuals, &_tmp45_); #line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp68_ = visuals; + _tmp46_ = _tmp45_; #line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (_tmp68_, &_tmp69_); + _tmp47_ = _tmp46_.x; #line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp70_ = _tmp69_; + spit_transitions_visuals_get_to_pos (visuals, &_tmp48_); #line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp71_ = _tmp70_.width; + _tmp49_ = _tmp48_; #line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp72_ = translation; + _tmp50_ = _tmp49_.width; #line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp73_ = x; + _tmp51_ = translation; #line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp74_ = size; + _tmp52_ = x; #line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp75_ = visuals; + _tmp53_ = size; #line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (_tmp75_, &_tmp76_); + spit_transitions_visuals_get_to_pos (visuals, &_tmp54_); #line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp77_ = _tmp76_; + _tmp55_ = _tmp54_; #line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp78_ = _tmp77_.y; + _tmp56_ = _tmp55_.y; #line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp79_ = y; + _tmp57_ = y; #line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp80_ = size; + _tmp58_ = size; #line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_rectangle (_tmp63_, (((_tmp67_ + _tmp71_) + _tmp72_) - (_tmp73_ * CHESS_EFFECT_SQUARE_SIZE)) - _tmp74_, _tmp78_ + (_tmp79_ * CHESS_EFFECT_SQUARE_SIZE), _tmp80_, (gdouble) CHESS_EFFECT_SQUARE_SIZE); -#line 663 "ChessEffect.c" + cairo_rectangle (ctx, (((_tmp47_ + _tmp50_) + _tmp51_) - (_tmp52_ * CHESS_EFFECT_SQUARE_SIZE)) - _tmp53_, _tmp56_ + (_tmp57_ * CHESS_EFFECT_SQUARE_SIZE), _tmp58_, (gdouble) CHESS_EFFECT_SQUARE_SIZE); +#line 647 "ChessEffect.c" } } } @@ -668,21 +652,22 @@ static void chess_effect_real_paint (SpitTransitionsEffect* base, SpitTransition } } #line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp81_ = ctx; -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_clip (_tmp81_); -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp82_ = ctx; + cairo_clip (ctx); #line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp83_ = alpha; + _tmp59_ = alpha; #line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_paint_with_alpha (_tmp82_, _tmp83_); -#line 681 "ChessEffect.c" + cairo_paint_with_alpha (ctx, _tmp59_); +#line 661 "ChessEffect.c" } } -static void chess_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number) { +static void +chess_effect_real_advance (SpitTransitionsEffect* base, + SpitTransitionsVisuals* visuals, + SpitTransitionsMotion* motion, + gint frame_number) +{ ChessEffect * self; #line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); @@ -690,30 +675,36 @@ static void chess_effect_real_advance (SpitTransitionsEffect* base, SpitTransiti g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); #line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 694 "ChessEffect.c" +#line 679 "ChessEffect.c" } -static void chess_effect_real_cancel (SpitTransitionsEffect* base) { +static void +chess_effect_real_cancel (SpitTransitionsEffect* base) +{ ChessEffect * self; #line 86 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 702 "ChessEffect.c" +#line 689 "ChessEffect.c" } -static void chess_effect_class_init (ChessEffectClass * klass) { +static void +chess_effect_class_init (ChessEffectClass * klass) +{ #line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" chess_effect_parent_class = g_type_class_peek_parent (klass); #line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" g_type_class_add_private (klass, sizeof (ChessEffectPrivate)); #line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" G_OBJECT_CLASS (klass)->finalize = chess_effect_finalize; -#line 713 "ChessEffect.c" +#line 702 "ChessEffect.c" } -static void chess_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) { +static void +chess_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) +{ #line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" chess_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); #line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" @@ -728,28 +719,34 @@ static void chess_effect_spit_transitions_effect_interface_init (SpitTransitions iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) chess_effect_real_advance; #line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" iface->cancel = (void (*) (SpitTransitionsEffect *)) chess_effect_real_cancel; -#line 732 "ChessEffect.c" +#line 723 "ChessEffect.c" } -static void chess_effect_instance_init (ChessEffect * self) { +static void +chess_effect_instance_init (ChessEffect * self) +{ #line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" self->priv = CHESS_EFFECT_GET_PRIVATE (self); -#line 739 "ChessEffect.c" +#line 732 "ChessEffect.c" } -static void chess_effect_finalize (GObject * obj) { +static void +chess_effect_finalize (GObject * obj) +{ ChessEffect * self; #line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CHESS_EFFECT, ChessEffect); #line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" G_OBJECT_CLASS (chess_effect_parent_class)->finalize (obj); -#line 749 "ChessEffect.c" +#line 744 "ChessEffect.c" } -GType chess_effect_get_type (void) { +GType +chess_effect_get_type (void) +{ static volatile gsize chess_effect_type_id__volatile = 0; if (g_once_init_enter (&chess_effect_type_id__volatile)) { static const GTypeInfo g_define_type_info = { sizeof (ChessEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) chess_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ChessEffect), 0, (GInstanceInitFunc) chess_effect_instance_init, NULL }; |