diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-06-25 20:55:59 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-06-25 20:55:59 +0200 |
commit | ab841afa5cb39058d9ab2cebb67cfe6369443f6e (patch) | |
tree | 64961342a79003ee865b3f9f8f41f99f09f37a2e /plugins/shotwell-transitions/shotwell-transitions.c | |
parent | 49120f48474fc8fdc2448c75d961bc238213cfac (diff) |
New upstream version 0.28.3upstream/0.28.3
Diffstat (limited to 'plugins/shotwell-transitions/shotwell-transitions.c')
-rw-r--r-- | plugins/shotwell-transitions/shotwell-transitions.c | 666 |
1 files changed, 413 insertions, 253 deletions
diff --git a/plugins/shotwell-transitions/shotwell-transitions.c b/plugins/shotwell-transitions/shotwell-transitions.c index 37d3f6d..b8be39c 100644 --- a/plugins/shotwell-transitions/shotwell-transitions.c +++ b/plugins/shotwell-transitions/shotwell-transitions.c @@ -1,4 +1,4 @@ -/* shotwell-transitions.c generated by valac 0.36.6, the Vala compiler +/* shotwell-transitions.c generated by valac 0.40.4, the Vala compiler * generated from shotwell-transitions.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -7,6 +7,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> @@ -28,6 +29,11 @@ typedef struct _ShotwellTransitions ShotwellTransitions; typedef struct _ShotwellTransitionsClass ShotwellTransitionsClass; typedef struct _ShotwellTransitionsPrivate ShotwellTransitionsPrivate; +enum { + SHOTWELL_TRANSITIONS_0_PROPERTY, + SHOTWELL_TRANSITIONS_NUM_PROPERTIES +}; +static GParamSpec* shotwell_transitions_properties[SHOTWELL_TRANSITIONS_NUM_PROPERTIES]; #define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) #define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) @@ -140,6 +146,11 @@ typedef struct _StripesEffectDescriptor StripesEffectDescriptor; typedef struct _StripesEffectDescriptorClass StripesEffectDescriptorClass; #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; +enum { + SHOTWELL_TRANSITION_DESCRIPTOR_0_PROPERTY, + SHOTWELL_TRANSITION_DESCRIPTOR_NUM_PROPERTIES +}; +static GParamSpec* shotwell_transition_descriptor_properties[SHOTWELL_TRANSITION_DESCRIPTOR_NUM_PROPERTIES]; #define _g_free0(var) (var = (g_free (var), NULL)) struct _ShotwellTransitions { @@ -183,389 +194,491 @@ static SpitTransitionsDescriptorIface * shotwell_transition_descriptor_spit_tran GType shotwell_transitions_get_type (void) G_GNUC_CONST; #define SHOTWELL_TRANSITIONS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitionsPrivate)) -enum { - SHOTWELL_TRANSITIONS_DUMMY_PROPERTY -}; ShotwellTransitions* shotwell_transitions_new (GFile* module_file); -ShotwellTransitions* shotwell_transitions_construct (GType object_type, GFile* module_file); +ShotwellTransitions* shotwell_transitions_construct (GType object_type, + GFile* module_file); FadeEffectDescriptor* fade_effect_descriptor_new (GFile* resource_directory); -FadeEffectDescriptor* fade_effect_descriptor_construct (GType object_type, GFile* resource_directory); +FadeEffectDescriptor* fade_effect_descriptor_construct (GType object_type, + GFile* resource_directory); GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; GType fade_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add1 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value); +static void _vala_array_add1 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value); SlideEffectDescriptor* slide_effect_descriptor_new (GFile* resource_directory); -SlideEffectDescriptor* slide_effect_descriptor_construct (GType object_type, GFile* resource_directory); +SlideEffectDescriptor* slide_effect_descriptor_construct (GType object_type, + GFile* resource_directory); GType slide_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add2 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value); +static void _vala_array_add2 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value); CrumbleEffectDescriptor* crumble_effect_descriptor_new (GFile* resource_directory); -CrumbleEffectDescriptor* crumble_effect_descriptor_construct (GType object_type, GFile* resource_directory); +CrumbleEffectDescriptor* crumble_effect_descriptor_construct (GType object_type, + GFile* resource_directory); GType crumble_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add3 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value); +static void _vala_array_add3 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value); BlindsEffectDescriptor* blinds_effect_descriptor_new (GFile* resource_directory); -BlindsEffectDescriptor* blinds_effect_descriptor_construct (GType object_type, GFile* resource_directory); +BlindsEffectDescriptor* blinds_effect_descriptor_construct (GType object_type, + GFile* resource_directory); GType blinds_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add4 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value); +static void _vala_array_add4 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value); CircleEffectDescriptor* circle_effect_descriptor_new (GFile* resource_directory); -CircleEffectDescriptor* circle_effect_descriptor_construct (GType object_type, GFile* resource_directory); +CircleEffectDescriptor* circle_effect_descriptor_construct (GType object_type, + GFile* resource_directory); GType circle_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add5 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value); +static void _vala_array_add5 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value); CirclesEffectDescriptor* circles_effect_descriptor_new (GFile* resource_directory); -CirclesEffectDescriptor* circles_effect_descriptor_construct (GType object_type, GFile* resource_directory); +CirclesEffectDescriptor* circles_effect_descriptor_construct (GType object_type, + GFile* resource_directory); GType circles_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add6 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value); +static void _vala_array_add6 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value); ClockEffectDescriptor* clock_effect_descriptor_new (GFile* resource_directory); -ClockEffectDescriptor* clock_effect_descriptor_construct (GType object_type, GFile* resource_directory); +ClockEffectDescriptor* clock_effect_descriptor_construct (GType object_type, + GFile* resource_directory); GType clock_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add7 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value); +static void _vala_array_add7 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value); SquaresEffectDescriptor* squares_effect_descriptor_new (GFile* resource_directory); -SquaresEffectDescriptor* squares_effect_descriptor_construct (GType object_type, GFile* resource_directory); +SquaresEffectDescriptor* squares_effect_descriptor_construct (GType object_type, + GFile* resource_directory); GType squares_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add8 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value); +static void _vala_array_add8 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value); ChessEffectDescriptor* chess_effect_descriptor_new (GFile* resource_directory); -ChessEffectDescriptor* chess_effect_descriptor_construct (GType object_type, GFile* resource_directory); +ChessEffectDescriptor* chess_effect_descriptor_construct (GType object_type, + GFile* resource_directory); GType chess_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add9 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value); +static void _vala_array_add9 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value); StripesEffectDescriptor* stripes_effect_descriptor_new (GFile* resource_directory); -StripesEffectDescriptor* stripes_effect_descriptor_construct (GType object_type, GFile* resource_directory); +StripesEffectDescriptor* stripes_effect_descriptor_construct (GType object_type, + GFile* resource_directory); GType stripes_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add10 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value); +static void _vala_array_add10 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value); static const gchar* shotwell_transitions_real_get_module_name (SpitModule* base); static const gchar* shotwell_transitions_real_get_version (SpitModule* base); static const gchar* shotwell_transitions_real_get_id (SpitModule* base); -static SpitPluggable** shotwell_transitions_real_get_pluggables (SpitModule* base, int* result_length1); +static SpitPluggable** shotwell_transitions_real_get_pluggables (SpitModule* base, + int* result_length1); static void shotwell_transitions_finalize (GObject * obj); SpitModule* spit_entry_point (SpitEntryPointParams* params); -enum { - SHOTWELL_TRANSITION_DESCRIPTOR_DUMMY_PROPERTY -}; #define SHOTWELL_TRANSITION_DESCRIPTOR_ICON_FILENAME "slideshow-plugin.png" -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, GFile* resource_directory); -static gint shotwell_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface); +ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, + GFile* resource_directory); +static gint shotwell_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base, + gint min_host_interface, + gint max_host_interface); const gchar* shotwell_transition_descriptor_get_id (ShotwellTransitionDescriptor* self); static const gchar* shotwell_transition_descriptor_real_get_id (ShotwellTransitionDescriptor* self); const gchar* shotwell_transition_descriptor_get_pluggable_name (ShotwellTransitionDescriptor* self); static const gchar* shotwell_transition_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* self); -static void shotwell_transition_descriptor_real_get_info (SpitPluggable* base, SpitPluggableInfo* info); -static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, int length); -static void shotwell_transition_descriptor_real_activation (SpitPluggable* base, gboolean enabled); -SpitTransitionsEffect* shotwell_transition_descriptor_create (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -static SpitTransitionsEffect* shotwell_transition_descriptor_real_create (ShotwellTransitionDescriptor* self, SpitHostInterface* host); +static void shotwell_transition_descriptor_real_get_info (SpitPluggable* base, + SpitPluggableInfo* info); +static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, + int length); +static void shotwell_transition_descriptor_real_activation (SpitPluggable* base, + gboolean enabled); +SpitTransitionsEffect* shotwell_transition_descriptor_create (ShotwellTransitionDescriptor* self, + SpitHostInterface* host); +static SpitTransitionsEffect* shotwell_transition_descriptor_real_create (ShotwellTransitionDescriptor* self, + SpitHostInterface* host); static void shotwell_transition_descriptor_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func); - - -static void _vala_array_add1 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value) { +static void _vala_array_destroy (gpointer array, + gint array_length, + GDestroyNotify destroy_func); +static void _vala_array_free (gpointer array, + gint array_length, + GDestroyNotify destroy_func); + + +static void +_vala_array_add1 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value) +{ #line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" if ((*length) == (*size)) { #line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *size = (*size) ? (2 * (*size)) : 4; #line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 266 "shotwell-transitions.c" +#line 330 "shotwell-transitions.c" } #line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[(*length)++] = value; #line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[*length] = NULL; -#line 272 "shotwell-transitions.c" +#line 336 "shotwell-transitions.c" } -static void _vala_array_add2 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value) { +static void +_vala_array_add2 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value) +{ #line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" if ((*length) == (*size)) { #line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *size = (*size) ? (2 * (*size)) : 4; #line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 283 "shotwell-transitions.c" +#line 352 "shotwell-transitions.c" } #line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[(*length)++] = value; #line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[*length] = NULL; -#line 289 "shotwell-transitions.c" +#line 358 "shotwell-transitions.c" } -static void _vala_array_add3 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value) { +static void +_vala_array_add3 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value) +{ #line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" if ((*length) == (*size)) { #line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *size = (*size) ? (2 * (*size)) : 4; #line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 300 "shotwell-transitions.c" +#line 374 "shotwell-transitions.c" } #line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[(*length)++] = value; #line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[*length] = NULL; -#line 306 "shotwell-transitions.c" +#line 380 "shotwell-transitions.c" } -static void _vala_array_add4 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value) { +static void +_vala_array_add4 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value) +{ #line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" if ((*length) == (*size)) { #line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *size = (*size) ? (2 * (*size)) : 4; #line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 317 "shotwell-transitions.c" +#line 396 "shotwell-transitions.c" } #line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[(*length)++] = value; #line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[*length] = NULL; -#line 323 "shotwell-transitions.c" +#line 402 "shotwell-transitions.c" } -static void _vala_array_add5 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value) { +static void +_vala_array_add5 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value) +{ #line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" if ((*length) == (*size)) { #line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *size = (*size) ? (2 * (*size)) : 4; #line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 334 "shotwell-transitions.c" +#line 418 "shotwell-transitions.c" } #line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[(*length)++] = value; #line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[*length] = NULL; -#line 340 "shotwell-transitions.c" +#line 424 "shotwell-transitions.c" } -static void _vala_array_add6 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value) { +static void +_vala_array_add6 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value) +{ #line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" if ((*length) == (*size)) { #line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *size = (*size) ? (2 * (*size)) : 4; #line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 351 "shotwell-transitions.c" +#line 440 "shotwell-transitions.c" } #line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[(*length)++] = value; #line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[*length] = NULL; -#line 357 "shotwell-transitions.c" +#line 446 "shotwell-transitions.c" } -static void _vala_array_add7 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value) { +static void +_vala_array_add7 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value) +{ #line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" if ((*length) == (*size)) { #line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *size = (*size) ? (2 * (*size)) : 4; #line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 368 "shotwell-transitions.c" +#line 462 "shotwell-transitions.c" } #line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[(*length)++] = value; #line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[*length] = NULL; -#line 374 "shotwell-transitions.c" +#line 468 "shotwell-transitions.c" } -static void _vala_array_add8 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value) { +static void +_vala_array_add8 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value) +{ #line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" if ((*length) == (*size)) { #line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *size = (*size) ? (2 * (*size)) : 4; #line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 385 "shotwell-transitions.c" +#line 484 "shotwell-transitions.c" } #line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[(*length)++] = value; #line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[*length] = NULL; -#line 391 "shotwell-transitions.c" +#line 490 "shotwell-transitions.c" } -static void _vala_array_add9 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value) { +static void +_vala_array_add9 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value) +{ #line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" if ((*length) == (*size)) { #line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *size = (*size) ? (2 * (*size)) : 4; #line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 402 "shotwell-transitions.c" +#line 506 "shotwell-transitions.c" } #line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[(*length)++] = value; #line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[*length] = NULL; -#line 408 "shotwell-transitions.c" +#line 512 "shotwell-transitions.c" } -static void _vala_array_add10 (SpitPluggable** * array, int* length, int* size, SpitPluggable* value) { +static void +_vala_array_add10 (SpitPluggable** * array, + int* length, + int* size, + SpitPluggable* value) +{ #line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" if ((*length) == (*size)) { #line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *size = (*size) ? (2 * (*size)) : 4; #line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 419 "shotwell-transitions.c" +#line 528 "shotwell-transitions.c" } #line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[(*length)++] = value; #line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*array)[*length] = NULL; -#line 425 "shotwell-transitions.c" +#line 534 "shotwell-transitions.c" } -ShotwellTransitions* shotwell_transitions_construct (GType object_type, GFile* module_file) { +ShotwellTransitions* +shotwell_transitions_construct (GType object_type, + GFile* module_file) +{ ShotwellTransitions * self = NULL; GFile* resource_directory = NULL; GFile* _tmp0_; - GFile* _tmp1_; - SpitPluggable** _tmp2_; - gint _tmp2__length1; - FadeEffectDescriptor* _tmp3_; - SpitPluggable** _tmp4_; - gint _tmp4__length1; - SlideEffectDescriptor* _tmp5_; - SpitPluggable** _tmp6_; - gint _tmp6__length1; - CrumbleEffectDescriptor* _tmp7_; - SpitPluggable** _tmp8_; - gint _tmp8__length1; - BlindsEffectDescriptor* _tmp9_; - SpitPluggable** _tmp10_; - gint _tmp10__length1; - CircleEffectDescriptor* _tmp11_; - SpitPluggable** _tmp12_; - gint _tmp12__length1; - CirclesEffectDescriptor* _tmp13_; - SpitPluggable** _tmp14_; - gint _tmp14__length1; - ClockEffectDescriptor* _tmp15_; - SpitPluggable** _tmp16_; - gint _tmp16__length1; - SquaresEffectDescriptor* _tmp17_; - SpitPluggable** _tmp18_; - gint _tmp18__length1; - ChessEffectDescriptor* _tmp19_; - SpitPluggable** _tmp20_; - gint _tmp20__length1; - StripesEffectDescriptor* _tmp21_; + SpitPluggable** _tmp1_; + gint _tmp1__length1; + FadeEffectDescriptor* _tmp2_; + SpitPluggable** _tmp3_; + gint _tmp3__length1; + SlideEffectDescriptor* _tmp4_; + SpitPluggable** _tmp5_; + gint _tmp5__length1; + CrumbleEffectDescriptor* _tmp6_; + SpitPluggable** _tmp7_; + gint _tmp7__length1; + BlindsEffectDescriptor* _tmp8_; + SpitPluggable** _tmp9_; + gint _tmp9__length1; + CircleEffectDescriptor* _tmp10_; + SpitPluggable** _tmp11_; + gint _tmp11__length1; + CirclesEffectDescriptor* _tmp12_; + SpitPluggable** _tmp13_; + gint _tmp13__length1; + ClockEffectDescriptor* _tmp14_; + SpitPluggable** _tmp15_; + gint _tmp15__length1; + SquaresEffectDescriptor* _tmp16_; + SpitPluggable** _tmp17_; + gint _tmp17__length1; + ChessEffectDescriptor* _tmp18_; + SpitPluggable** _tmp19_; + gint _tmp19__length1; + StripesEffectDescriptor* _tmp20_; #line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" g_return_val_if_fail (G_IS_FILE (module_file), NULL); #line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" self = (ShotwellTransitions*) g_object_new (object_type, NULL); #line 13 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = module_file; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp1_ = g_file_get_parent (_tmp0_); + _tmp0_ = g_file_get_parent (module_file); #line 13 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - resource_directory = _tmp1_; + resource_directory = _tmp0_; #line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp2_ = self->priv->pluggables; + _tmp1_ = self->priv->pluggables; #line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp2__length1 = self->priv->pluggables_length1; + _tmp1__length1 = self->priv->pluggables_length1; #line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp3_ = fade_effect_descriptor_new (resource_directory); + _tmp2_ = fade_effect_descriptor_new (resource_directory); #line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add1 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); + _vala_array_add1 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); #line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp4_ = self->priv->pluggables; + _tmp3_ = self->priv->pluggables; #line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp4__length1 = self->priv->pluggables_length1; + _tmp3__length1 = self->priv->pluggables_length1; #line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp5_ = slide_effect_descriptor_new (resource_directory); + _tmp4_ = slide_effect_descriptor_new (resource_directory); #line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add2 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); + _vala_array_add2 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); #line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp6_ = self->priv->pluggables; + _tmp5_ = self->priv->pluggables; #line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp6__length1 = self->priv->pluggables_length1; + _tmp5__length1 = self->priv->pluggables_length1; #line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp7_ = crumble_effect_descriptor_new (resource_directory); + _tmp6_ = crumble_effect_descriptor_new (resource_directory); #line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add3 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); + _vala_array_add3 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); #line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp8_ = self->priv->pluggables; + _tmp7_ = self->priv->pluggables; #line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp8__length1 = self->priv->pluggables_length1; + _tmp7__length1 = self->priv->pluggables_length1; #line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp9_ = blinds_effect_descriptor_new (resource_directory); + _tmp8_ = blinds_effect_descriptor_new (resource_directory); #line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add4 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); + _vala_array_add4 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); #line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp10_ = self->priv->pluggables; + _tmp9_ = self->priv->pluggables; #line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp10__length1 = self->priv->pluggables_length1; + _tmp9__length1 = self->priv->pluggables_length1; #line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp11_ = circle_effect_descriptor_new (resource_directory); + _tmp10_ = circle_effect_descriptor_new (resource_directory); #line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add5 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); + _vala_array_add5 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); #line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp12_ = self->priv->pluggables; + _tmp11_ = self->priv->pluggables; #line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp12__length1 = self->priv->pluggables_length1; + _tmp11__length1 = self->priv->pluggables_length1; #line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp13_ = circles_effect_descriptor_new (resource_directory); + _tmp12_ = circles_effect_descriptor_new (resource_directory); #line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add6 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); + _vala_array_add6 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); #line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp14_ = self->priv->pluggables; + _tmp13_ = self->priv->pluggables; #line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp14__length1 = self->priv->pluggables_length1; + _tmp13__length1 = self->priv->pluggables_length1; #line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp15_ = clock_effect_descriptor_new (resource_directory); + _tmp14_ = clock_effect_descriptor_new (resource_directory); #line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add7 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); + _vala_array_add7 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); #line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp16_ = self->priv->pluggables; + _tmp15_ = self->priv->pluggables; #line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp16__length1 = self->priv->pluggables_length1; + _tmp15__length1 = self->priv->pluggables_length1; #line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp17_ = squares_effect_descriptor_new (resource_directory); + _tmp16_ = squares_effect_descriptor_new (resource_directory); #line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add8 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); + _vala_array_add8 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); #line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp18_ = self->priv->pluggables; + _tmp17_ = self->priv->pluggables; #line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp18__length1 = self->priv->pluggables_length1; + _tmp17__length1 = self->priv->pluggables_length1; #line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp19_ = chess_effect_descriptor_new (resource_directory); + _tmp18_ = chess_effect_descriptor_new (resource_directory); #line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add9 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); + _vala_array_add9 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); #line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp20_ = self->priv->pluggables; + _tmp19_ = self->priv->pluggables; #line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp20__length1 = self->priv->pluggables_length1; + _tmp19__length1 = self->priv->pluggables_length1; #line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp21_ = stripes_effect_descriptor_new (resource_directory); + _tmp20_ = stripes_effect_descriptor_new (resource_directory); #line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add10 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); + _vala_array_add10 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); #line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" _g_object_unref0 (resource_directory); #line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" return self; -#line 558 "shotwell-transitions.c" +#line 667 "shotwell-transitions.c" } -ShotwellTransitions* shotwell_transitions_new (GFile* module_file) { +ShotwellTransitions* +shotwell_transitions_new (GFile* module_file) +{ #line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" return shotwell_transitions_construct (TYPE_SHOTWELL_TRANSITIONS, module_file); -#line 565 "shotwell-transitions.c" +#line 676 "shotwell-transitions.c" } -static const gchar* shotwell_transitions_real_get_module_name (SpitModule* base) { +static const gchar* +shotwell_transitions_real_get_module_name (SpitModule* base) +{ ShotwellTransitions * self; const gchar* result = NULL; #line 27 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" @@ -574,11 +687,13 @@ static const gchar* shotwell_transitions_real_get_module_name (SpitModule* base) result = _ ("Core Slideshow Transitions"); #line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" return result; -#line 578 "shotwell-transitions.c" +#line 691 "shotwell-transitions.c" } -static const gchar* shotwell_transitions_real_get_version (SpitModule* base) { +static const gchar* +shotwell_transitions_real_get_version (SpitModule* base) +{ ShotwellTransitions * self; const gchar* result = NULL; #line 31 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" @@ -587,11 +702,13 @@ static const gchar* shotwell_transitions_real_get_version (SpitModule* base) { result = _VERSION; #line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" return result; -#line 591 "shotwell-transitions.c" +#line 706 "shotwell-transitions.c" } -static const gchar* shotwell_transitions_real_get_id (SpitModule* base) { +static const gchar* +shotwell_transitions_real_get_id (SpitModule* base) +{ ShotwellTransitions * self; const gchar* result = NULL; #line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" @@ -600,11 +717,14 @@ static const gchar* shotwell_transitions_real_get_id (SpitModule* base) { result = "org.yorba.shotwell.transitions"; #line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" return result; -#line 604 "shotwell-transitions.c" +#line 721 "shotwell-transitions.c" } -static SpitPluggable** shotwell_transitions_real_get_pluggables (SpitModule* base, int* result_length1) { +static SpitPluggable** +shotwell_transitions_real_get_pluggables (SpitModule* base, + int* result_length1) +{ ShotwellTransitions * self; SpitPluggable** result = NULL; SpitPluggable** _tmp0_; @@ -625,28 +745,32 @@ static SpitPluggable** shotwell_transitions_real_get_pluggables (SpitModule* bas if (result_length1) { #line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" *result_length1 = _tmp1__length1; -#line 629 "shotwell-transitions.c" +#line 749 "shotwell-transitions.c" } #line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" result = _tmp1_; #line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" return result; -#line 635 "shotwell-transitions.c" +#line 755 "shotwell-transitions.c" } -static void shotwell_transitions_class_init (ShotwellTransitionsClass * klass) { +static void +shotwell_transitions_class_init (ShotwellTransitionsClass * klass) +{ #line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" shotwell_transitions_parent_class = g_type_class_peek_parent (klass); #line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" g_type_class_add_private (klass, sizeof (ShotwellTransitionsPrivate)); #line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" G_OBJECT_CLASS (klass)->finalize = shotwell_transitions_finalize; -#line 646 "shotwell-transitions.c" +#line 768 "shotwell-transitions.c" } -static void shotwell_transitions_spit_module_interface_init (SpitModuleIface * iface) { +static void +shotwell_transitions_spit_module_interface_init (SpitModuleIface * iface) +{ #line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" shotwell_transitions_spit_module_parent_iface = g_type_interface_peek_parent (iface); #line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" @@ -657,11 +781,13 @@ static void shotwell_transitions_spit_module_interface_init (SpitModuleIface * i iface->get_id = (const gchar* (*) (SpitModule *)) shotwell_transitions_real_get_id; #line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" iface->get_pluggables = (SpitPluggable** (*) (SpitModule *, int*)) shotwell_transitions_real_get_pluggables; -#line 661 "shotwell-transitions.c" +#line 785 "shotwell-transitions.c" } -static void shotwell_transitions_instance_init (ShotwellTransitions * self) { +static void +shotwell_transitions_instance_init (ShotwellTransitions * self) +{ SpitPluggable** _tmp0_; #line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" self->priv = SHOTWELL_TRANSITIONS_GET_PRIVATE (self); @@ -673,11 +799,13 @@ static void shotwell_transitions_instance_init (ShotwellTransitions * self) { self->priv->pluggables_length1 = 0; #line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" self->priv->_pluggables_size_ = self->priv->pluggables_length1; -#line 677 "shotwell-transitions.c" +#line 803 "shotwell-transitions.c" } -static void shotwell_transitions_finalize (GObject * obj) { +static void +shotwell_transitions_finalize (GObject * obj) +{ ShotwellTransitions * self; #line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions); @@ -685,11 +813,13 @@ static void shotwell_transitions_finalize (GObject * obj) { self->priv->pluggables = (_vala_array_free (self->priv->pluggables, self->priv->pluggables_length1, (GDestroyNotify) g_object_unref), NULL); #line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" G_OBJECT_CLASS (shotwell_transitions_parent_class)->finalize (obj); -#line 689 "shotwell-transitions.c" +#line 817 "shotwell-transitions.c" } -GType shotwell_transitions_get_type (void) { +GType +shotwell_transitions_get_type (void) +{ static volatile gsize shotwell_transitions_type_id__volatile = 0; if (g_once_init_enter (&shotwell_transitions_type_id__volatile)) { static const GTypeInfo g_define_type_info = { sizeof (ShotwellTransitionsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_transitions_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellTransitions), 0, (GInstanceInitFunc) shotwell_transitions_instance_init, NULL }; @@ -703,65 +833,55 @@ GType shotwell_transitions_get_type (void) { } -SpitModule* spit_entry_point (SpitEntryPointParams* params) { +SpitModule* +spit_entry_point (SpitEntryPointParams* params) +{ SpitModule* result = NULL; - SpitEntryPointParams* _tmp0_; + gint _tmp0_; gint _tmp1_; - SpitEntryPointParams* _tmp2_; + ShotwellTransitions* _tmp2_ = NULL; gint _tmp3_; - gint _tmp4_; - ShotwellTransitions* _tmp5_ = NULL; - SpitEntryPointParams* _tmp6_; - gint _tmp7_; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = params; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp1_ = (*_tmp0_).host_min_spit_interface; #line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp2_ = params; + _tmp0_ = (*params).host_min_spit_interface; #line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp3_ = (*_tmp2_).host_max_spit_interface; + _tmp1_ = (*params).host_max_spit_interface; #line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp4_ = spit_negotiate_interfaces (_tmp1_, _tmp3_, SPIT_CURRENT_INTERFACE); -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*params).module_spit_interface = _tmp4_; -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp6_ = params; + (*params).module_spit_interface = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_CURRENT_INTERFACE); #line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp7_ = (*_tmp6_).module_spit_interface; + _tmp3_ = (*params).module_spit_interface; #line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if (_tmp7_ != SPIT_UNSUPPORTED_INTERFACE) { -#line 735 "shotwell-transitions.c" - SpitEntryPointParams* _tmp8_; - GFile* _tmp9_; - ShotwellTransitions* _tmp10_; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp8_ = params; + if (_tmp3_ != SPIT_UNSUPPORTED_INTERFACE) { +#line 855 "shotwell-transitions.c" + GFile* _tmp4_; + ShotwellTransitions* _tmp5_; #line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp9_ = (*_tmp8_).module_file; + _tmp4_ = (*params).module_file; #line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp10_ = shotwell_transitions_new (_tmp9_); + _tmp5_ = shotwell_transitions_new (_tmp4_); #line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_object_unref0 (_tmp5_); + _g_object_unref0 (_tmp2_); #line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp5_ = _tmp10_; -#line 749 "shotwell-transitions.c" + _tmp2_ = _tmp5_; +#line 866 "shotwell-transitions.c" } else { #line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_object_unref0 (_tmp5_); + _g_object_unref0 (_tmp2_); #line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp5_ = NULL; -#line 755 "shotwell-transitions.c" + _tmp2_ = NULL; +#line 872 "shotwell-transitions.c" } #line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_TYPE_MODULE, SpitModule); + result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_MODULE, SpitModule); #line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" return result; -#line 761 "shotwell-transitions.c" +#line 878 "shotwell-transitions.c" } -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, GFile* resource_directory) { +ShotwellTransitionDescriptor* +shotwell_transition_descriptor_construct (GType object_type, + GFile* resource_directory) +{ ShotwellTransitionDescriptor * self = NULL; GdkPixbuf** _tmp0_; gint _tmp0__length1; @@ -775,7 +895,7 @@ ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType ob _tmp0__length1 = shotwell_transition_descriptor_icon_pixbuf_set_length1; #line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" if (_tmp0_ == NULL) { -#line 779 "shotwell-transitions.c" +#line 899 "shotwell-transitions.c" gint _tmp1_; GdkPixbuf** _tmp2_; #line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" @@ -788,101 +908,112 @@ ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType ob shotwell_transition_descriptor_icon_pixbuf_set_length1 = _tmp1_; #line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" _shotwell_transition_descriptor_icon_pixbuf_set_size_ = shotwell_transition_descriptor_icon_pixbuf_set_length1; -#line 792 "shotwell-transitions.c" +#line 912 "shotwell-transitions.c" } #line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" return self; -#line 796 "shotwell-transitions.c" +#line 916 "shotwell-transitions.c" } -static gint shotwell_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface) { +static gint +shotwell_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base, + gint min_host_interface, + gint max_host_interface) +{ ShotwellTransitionDescriptor * self; gint result = 0; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; #line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor); #line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = min_host_interface; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp1_ = max_host_interface; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp2_ = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_TRANSITIONS_CURRENT_INTERFACE); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = _tmp2_; + result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_TRANSITIONS_CURRENT_INTERFACE); #line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" return result; -#line 818 "shotwell-transitions.c" +#line 933 "shotwell-transitions.c" } -static const gchar* shotwell_transition_descriptor_real_get_id (ShotwellTransitionDescriptor* self) { +static const gchar* +shotwell_transition_descriptor_real_get_id (ShotwellTransitionDescriptor* self) +{ #line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" g_critical ("Type `%s' does not implement abstract method `shotwell_transition_descriptor_get_id'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" return NULL; -#line 827 "shotwell-transitions.c" +#line 944 "shotwell-transitions.c" } -const gchar* shotwell_transition_descriptor_get_id (ShotwellTransitionDescriptor* self) { +const gchar* +shotwell_transition_descriptor_get_id (ShotwellTransitionDescriptor* self) +{ #line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" g_return_val_if_fail (IS_SHOTWELL_TRANSITION_DESCRIPTOR (self), NULL); #line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" return SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS (self)->get_id (self); -#line 836 "shotwell-transitions.c" +#line 955 "shotwell-transitions.c" } -static const gchar* shotwell_transition_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* self) { +static const gchar* +shotwell_transition_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* self) +{ #line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" g_critical ("Type `%s' does not implement abstract method `shotwell_transition_descriptor_get_pluggable_name'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" return NULL; -#line 845 "shotwell-transitions.c" +#line 966 "shotwell-transitions.c" } -const gchar* shotwell_transition_descriptor_get_pluggable_name (ShotwellTransitionDescriptor* self) { +const gchar* +shotwell_transition_descriptor_get_pluggable_name (ShotwellTransitionDescriptor* self) +{ #line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" g_return_val_if_fail (IS_SHOTWELL_TRANSITION_DESCRIPTOR (self), NULL); #line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" return SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS (self)->get_pluggable_name (self); -#line 854 "shotwell-transitions.c" +#line 977 "shotwell-transitions.c" } -static gpointer _g_object_ref0 (gpointer self) { +static gpointer +_g_object_ref0 (gpointer self) +{ #line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" return self ? g_object_ref (self) : NULL; -#line 861 "shotwell-transitions.c" +#line 986 "shotwell-transitions.c" } -static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, int length) { +static GdkPixbuf** +_vala_array_dup1 (GdkPixbuf** self, + int length) +{ GdkPixbuf** result; int i; #line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" result = g_new0 (GdkPixbuf*, length + 1); #line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" for (i = 0; i < length; i++) { -#line 872 "shotwell-transitions.c" +#line 1000 "shotwell-transitions.c" GdkPixbuf* _tmp0_; #line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" _tmp0_ = _g_object_ref0 (self[i]); #line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" result[i] = _tmp0_; -#line 878 "shotwell-transitions.c" +#line 1006 "shotwell-transitions.c" } #line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" return result; -#line 882 "shotwell-transitions.c" +#line 1010 "shotwell-transitions.c" } -static void shotwell_transition_descriptor_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) { +static void +shotwell_transition_descriptor_real_get_info (SpitPluggable* base, + SpitPluggableInfo* info) +{ ShotwellTransitionDescriptor * self; gchar* _tmp0_; gchar* _tmp1_; @@ -958,37 +1089,48 @@ static void shotwell_transition_descriptor_real_get_info (SpitPluggable* base, S (*info).icons = _tmp8_; #line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" (*info).icons_length1 = _tmp8__length1; -#line 961 "shotwell-transitions.c" +#line 1092 "shotwell-transitions.c" } -static void shotwell_transition_descriptor_real_activation (SpitPluggable* base, gboolean enabled) { +static void +shotwell_transition_descriptor_real_activation (SpitPluggable* base, + gboolean enabled) +{ ShotwellTransitionDescriptor * self; #line 86 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor); -#line 969 "shotwell-transitions.c" +#line 1103 "shotwell-transitions.c" } -static SpitTransitionsEffect* shotwell_transition_descriptor_real_create (ShotwellTransitionDescriptor* self, SpitHostInterface* host) { +static SpitTransitionsEffect* +shotwell_transition_descriptor_real_create (ShotwellTransitionDescriptor* self, + SpitHostInterface* host) +{ #line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" g_critical ("Type `%s' does not implement abstract method `shotwell_transition_descriptor_create'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" return NULL; -#line 978 "shotwell-transitions.c" +#line 1115 "shotwell-transitions.c" } -SpitTransitionsEffect* shotwell_transition_descriptor_create (ShotwellTransitionDescriptor* self, SpitHostInterface* host) { +SpitTransitionsEffect* +shotwell_transition_descriptor_create (ShotwellTransitionDescriptor* self, + SpitHostInterface* host) +{ #line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" g_return_val_if_fail (IS_SHOTWELL_TRANSITION_DESCRIPTOR (self), NULL); #line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" return SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS (self)->create (self, host); -#line 987 "shotwell-transitions.c" +#line 1127 "shotwell-transitions.c" } -static void shotwell_transition_descriptor_class_init (ShotwellTransitionDescriptorClass * klass) { +static void +shotwell_transition_descriptor_class_init (ShotwellTransitionDescriptorClass * klass) +{ #line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" shotwell_transition_descriptor_parent_class = g_type_class_peek_parent (klass); #line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" @@ -999,11 +1141,13 @@ static void shotwell_transition_descriptor_class_init (ShotwellTransitionDescrip ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) shotwell_transition_descriptor_real_create; #line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" G_OBJECT_CLASS (klass)->finalize = shotwell_transition_descriptor_finalize; -#line 1002 "shotwell-transitions.c" +#line 1144 "shotwell-transitions.c" } -static void shotwell_transition_descriptor_spit_pluggable_interface_init (SpitPluggableIface * iface) { +static void +shotwell_transition_descriptor_spit_pluggable_interface_init (SpitPluggableIface * iface) +{ #line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" shotwell_transition_descriptor_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); #line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" @@ -1016,34 +1160,42 @@ static void shotwell_transition_descriptor_spit_pluggable_interface_init (SpitPl iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) shotwell_transition_descriptor_real_get_info; #line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" iface->activation = (void (*) (SpitPluggable *, gboolean)) shotwell_transition_descriptor_real_activation; -#line 1019 "shotwell-transitions.c" +#line 1163 "shotwell-transitions.c" } -static void shotwell_transition_descriptor_spit_transitions_descriptor_interface_init (SpitTransitionsDescriptorIface * iface) { +static void +shotwell_transition_descriptor_spit_transitions_descriptor_interface_init (SpitTransitionsDescriptorIface * iface) +{ #line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" shotwell_transition_descriptor_spit_transitions_descriptor_parent_iface = g_type_interface_peek_parent (iface); #line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" iface->create = (SpitTransitionsEffect* (*) (SpitTransitionsDescriptor *, SpitHostInterface*)) shotwell_transition_descriptor_create; -#line 1028 "shotwell-transitions.c" +#line 1174 "shotwell-transitions.c" } -static void shotwell_transition_descriptor_instance_init (ShotwellTransitionDescriptor * self) { +static void +shotwell_transition_descriptor_instance_init (ShotwellTransitionDescriptor * self) +{ } -static void shotwell_transition_descriptor_finalize (GObject * obj) { +static void +shotwell_transition_descriptor_finalize (GObject * obj) +{ ShotwellTransitionDescriptor * self; #line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor); #line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" G_OBJECT_CLASS (shotwell_transition_descriptor_parent_class)->finalize (obj); -#line 1042 "shotwell-transitions.c" +#line 1192 "shotwell-transitions.c" } -GType shotwell_transition_descriptor_get_type (void) { +GType +shotwell_transition_descriptor_get_type (void) +{ static volatile gsize shotwell_transition_descriptor_type_id__volatile = 0; if (g_once_init_enter (&shotwell_transition_descriptor_type_id__volatile)) { static const GTypeInfo g_define_type_info = { sizeof (ShotwellTransitionDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_transition_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellTransitionDescriptor), 0, (GInstanceInitFunc) shotwell_transition_descriptor_instance_init, NULL }; @@ -1059,7 +1211,11 @@ GType shotwell_transition_descriptor_get_type (void) { } -static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) { +static void +_vala_array_destroy (gpointer array, + gint array_length, + GDestroyNotify destroy_func) +{ if ((array != NULL) && (destroy_func != NULL)) { int i; for (i = 0; i < array_length; i = i + 1) { @@ -1071,7 +1227,11 @@ static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNoti } -static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) { +static void +_vala_array_free (gpointer array, + gint array_length, + GDestroyNotify destroy_func) +{ _vala_array_destroy (array, array_length, destroy_func); g_free (array); } |