diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-06-25 21:12:13 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-06-25 21:12:13 +0200 |
commit | 059a62ee3c820a42fbce980c3256049adecc9100 (patch) | |
tree | e51eab94fd7d65459640ca227fb2257bb41d2acb /src/slideshow | |
parent | 55778740c211992cc86ea87588ab62c6750f36d1 (diff) | |
parent | e8f4d7a9cdd37c5a9fb3b6991a4e9173829808da (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/slideshow')
-rw-r--r-- | src/slideshow/Slideshow.c | 205 | ||||
-rw-r--r-- | src/slideshow/TransitionEffects.c | 1587 |
2 files changed, 1062 insertions, 730 deletions
diff --git a/src/slideshow/Slideshow.c b/src/slideshow/Slideshow.c index c4a2082..63e0bda 100644 --- a/src/slideshow/Slideshow.c +++ b/src/slideshow/Slideshow.c @@ -1,4 +1,4 @@ -/* Slideshow.c generated by valac 0.36.6, the Vala compiler +/* Slideshow.c generated by valac 0.40.4, the Vala compiler * generated from Slideshow.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 <stdlib.h> @@ -18,196 +19,286 @@ void slideshow_init (GError** error); -static void _vala_array_add36 (gchar** * array, int* length, int* size, gchar* value); -static void _vala_array_add37 (gchar** * array, int* length, int* size, gchar* value); -static void _vala_array_add38 (gchar** * array, int* length, int* size, gchar* value); -static void _vala_array_add39 (gchar** * array, int* length, int* size, gchar* value); -static void _vala_array_add40 (gchar** * array, int* length, int* size, gchar* value); -static void _vala_array_add41 (gchar** * array, int* length, int* size, gchar* value); -static void _vala_array_add42 (gchar** * array, int* length, int* size, gchar* value); -static void _vala_array_add43 (gchar** * array, int* length, int* size, gchar* value); -static void _vala_array_add44 (gchar** * array, int* length, int* size, gchar* value); -static void _vala_array_add45 (gchar** * array, int* length, int* size, gchar* value); -void plugins_register_extension_point (GType type, const gchar* name, const gchar* icon_name, gchar** core_ids, int core_ids_length1); +static void _vala_array_add36 (gchar** * array, + int* length, + int* size, + gchar* value); +static void _vala_array_add37 (gchar** * array, + int* length, + int* size, + gchar* value); +static void _vala_array_add38 (gchar** * array, + int* length, + int* size, + gchar* value); +static void _vala_array_add39 (gchar** * array, + int* length, + int* size, + gchar* value); +static void _vala_array_add40 (gchar** * array, + int* length, + int* size, + gchar* value); +static void _vala_array_add41 (gchar** * array, + int* length, + int* size, + gchar* value); +static void _vala_array_add42 (gchar** * array, + int* length, + int* size, + gchar* value); +static void _vala_array_add43 (gchar** * array, + int* length, + int* size, + gchar* value); +static void _vala_array_add44 (gchar** * array, + int* length, + int* size, + gchar* value); +static void _vala_array_add45 (gchar** * array, + int* length, + int* size, + gchar* value); +void plugins_register_extension_point (GType type, + const gchar* name, + const gchar* icon_name, + gchar** core_ids, + int core_ids_length1); #define RESOURCES_ICON_SLIDESHOW_EXTENSION_POINT "slideshow-extension-point" void transition_effects_manager_init (void); void slideshow_terminate (void); void transition_effects_manager_terminate (void); -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_add36 (gchar** * array, int* length, int* size, gchar* 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_add36 (gchar** * array, + int* length, + int* size, + gchar* value) +{ #line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" if ((*length) == (*size)) { #line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *size = (*size) ? (2 * (*size)) : 4; #line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *array = g_renew (gchar*, *array, (*size) + 1); -#line 48 "Slideshow.c" +#line 92 "Slideshow.c" } #line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[(*length)++] = value; #line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[*length] = NULL; -#line 54 "Slideshow.c" +#line 98 "Slideshow.c" } -static void _vala_array_add37 (gchar** * array, int* length, int* size, gchar* value) { +static void +_vala_array_add37 (gchar** * array, + int* length, + int* size, + gchar* value) +{ #line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" if ((*length) == (*size)) { #line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *size = (*size) ? (2 * (*size)) : 4; #line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *array = g_renew (gchar*, *array, (*size) + 1); -#line 65 "Slideshow.c" +#line 114 "Slideshow.c" } #line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[(*length)++] = value; #line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[*length] = NULL; -#line 71 "Slideshow.c" +#line 120 "Slideshow.c" } -static void _vala_array_add38 (gchar** * array, int* length, int* size, gchar* value) { +static void +_vala_array_add38 (gchar** * array, + int* length, + int* size, + gchar* value) +{ #line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" if ((*length) == (*size)) { #line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *size = (*size) ? (2 * (*size)) : 4; #line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *array = g_renew (gchar*, *array, (*size) + 1); -#line 82 "Slideshow.c" +#line 136 "Slideshow.c" } #line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[(*length)++] = value; #line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[*length] = NULL; -#line 88 "Slideshow.c" +#line 142 "Slideshow.c" } -static void _vala_array_add39 (gchar** * array, int* length, int* size, gchar* value) { +static void +_vala_array_add39 (gchar** * array, + int* length, + int* size, + gchar* value) +{ #line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" if ((*length) == (*size)) { #line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *size = (*size) ? (2 * (*size)) : 4; #line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *array = g_renew (gchar*, *array, (*size) + 1); -#line 99 "Slideshow.c" +#line 158 "Slideshow.c" } #line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[(*length)++] = value; #line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[*length] = NULL; -#line 105 "Slideshow.c" +#line 164 "Slideshow.c" } -static void _vala_array_add40 (gchar** * array, int* length, int* size, gchar* value) { +static void +_vala_array_add40 (gchar** * array, + int* length, + int* size, + gchar* value) +{ #line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" if ((*length) == (*size)) { #line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *size = (*size) ? (2 * (*size)) : 4; #line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *array = g_renew (gchar*, *array, (*size) + 1); -#line 116 "Slideshow.c" +#line 180 "Slideshow.c" } #line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[(*length)++] = value; #line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[*length] = NULL; -#line 122 "Slideshow.c" +#line 186 "Slideshow.c" } -static void _vala_array_add41 (gchar** * array, int* length, int* size, gchar* value) { +static void +_vala_array_add41 (gchar** * array, + int* length, + int* size, + gchar* value) +{ #line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" if ((*length) == (*size)) { #line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *size = (*size) ? (2 * (*size)) : 4; #line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *array = g_renew (gchar*, *array, (*size) + 1); -#line 133 "Slideshow.c" +#line 202 "Slideshow.c" } #line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[(*length)++] = value; #line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[*length] = NULL; -#line 139 "Slideshow.c" +#line 208 "Slideshow.c" } -static void _vala_array_add42 (gchar** * array, int* length, int* size, gchar* value) { +static void +_vala_array_add42 (gchar** * array, + int* length, + int* size, + gchar* value) +{ #line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" if ((*length) == (*size)) { #line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *size = (*size) ? (2 * (*size)) : 4; #line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *array = g_renew (gchar*, *array, (*size) + 1); -#line 150 "Slideshow.c" +#line 224 "Slideshow.c" } #line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[(*length)++] = value; #line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[*length] = NULL; -#line 156 "Slideshow.c" +#line 230 "Slideshow.c" } -static void _vala_array_add43 (gchar** * array, int* length, int* size, gchar* value) { +static void +_vala_array_add43 (gchar** * array, + int* length, + int* size, + gchar* value) +{ #line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" if ((*length) == (*size)) { #line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *size = (*size) ? (2 * (*size)) : 4; #line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *array = g_renew (gchar*, *array, (*size) + 1); -#line 167 "Slideshow.c" +#line 246 "Slideshow.c" } #line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[(*length)++] = value; #line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[*length] = NULL; -#line 173 "Slideshow.c" +#line 252 "Slideshow.c" } -static void _vala_array_add44 (gchar** * array, int* length, int* size, gchar* value) { +static void +_vala_array_add44 (gchar** * array, + int* length, + int* size, + gchar* value) +{ #line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" if ((*length) == (*size)) { #line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *size = (*size) ? (2 * (*size)) : 4; #line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *array = g_renew (gchar*, *array, (*size) + 1); -#line 184 "Slideshow.c" +#line 268 "Slideshow.c" } #line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[(*length)++] = value; #line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[*length] = NULL; -#line 190 "Slideshow.c" +#line 274 "Slideshow.c" } -static void _vala_array_add45 (gchar** * array, int* length, int* size, gchar* value) { +static void +_vala_array_add45 (gchar** * array, + int* length, + int* size, + gchar* value) +{ #line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" if ((*length) == (*size)) { #line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *size = (*size) ? (2 * (*size)) : 4; #line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" *array = g_renew (gchar*, *array, (*size) + 1); -#line 201 "Slideshow.c" +#line 290 "Slideshow.c" } #line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[(*length)++] = value; #line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" (*array)[*length] = NULL; -#line 207 "Slideshow.c" +#line 296 "Slideshow.c" } -void slideshow_init (GError** error) { +void +slideshow_init (GError** error) +{ gchar** core_ids = NULL; gchar** _tmp0_; gint core_ids_length1; @@ -342,18 +433,24 @@ void slideshow_init (GError** error) { transition_effects_manager_init (); #line 9 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" core_ids = (_vala_array_free (core_ids, core_ids_length1, (GDestroyNotify) g_free), NULL); -#line 346 "Slideshow.c" +#line 437 "Slideshow.c" } -void slideshow_terminate (void) { +void +slideshow_terminate (void) +{ #line 28 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" transition_effects_manager_terminate (); -#line 353 "Slideshow.c" +#line 446 "Slideshow.c" } -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) { @@ -365,7 +462,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); } diff --git a/src/slideshow/TransitionEffects.c b/src/slideshow/TransitionEffects.c index fc72cc9..b19b640 100644 --- a/src/slideshow/TransitionEffects.c +++ b/src/slideshow/TransitionEffects.c @@ -1,4 +1,4 @@ -/* TransitionEffects.c generated by valac 0.36.6, the Vala compiler +/* TransitionEffects.c generated by valac 0.40.4, the Vala compiler * generated from TransitionEffects.vala, do not modify */ /* Copyright 2010 Maxim Kartashev @@ -8,6 +8,7 @@ * See the COPYING file in this distribution. */ + #include <glib.h> #include <glib-object.h> #include <gee.h> @@ -101,6 +102,11 @@ typedef struct _PluginsStandardHostInterface PluginsStandardHostInterface; typedef struct _PluginsStandardHostInterfaceClass PluginsStandardHostInterfaceClass; typedef struct _ParamSpecTransitionClock ParamSpecTransitionClock; typedef struct _NullTransitionDescriptorPrivate NullTransitionDescriptorPrivate; +enum { + NULL_TRANSITION_DESCRIPTOR_0_PROPERTY, + NULL_TRANSITION_DESCRIPTOR_NUM_PROPERTIES +}; +static GParamSpec* null_transition_descriptor_properties[NULL_TRANSITION_DESCRIPTOR_NUM_PROPERTIES]; #define TYPE_NULL_EFFECT (null_effect_get_type ()) #define NULL_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NULL_EFFECT, NullEffect)) @@ -112,7 +118,17 @@ typedef struct _NullTransitionDescriptorPrivate NullTransitionDescriptorPrivate; typedef struct _NullEffect NullEffect; typedef struct _NullEffectClass NullEffectClass; typedef struct _NullEffectPrivate NullEffectPrivate; +enum { + NULL_EFFECT_0_PROPERTY, + NULL_EFFECT_NUM_PROPERTIES +}; +static GParamSpec* null_effect_properties[NULL_EFFECT_NUM_PROPERTIES]; typedef struct _RandomEffectDescriptorPrivate RandomEffectDescriptorPrivate; +enum { + RANDOM_EFFECT_DESCRIPTOR_0_PROPERTY, + RANDOM_EFFECT_DESCRIPTOR_NUM_PROPERTIES +}; +static GParamSpec* random_effect_descriptor_properties[RANDOM_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; #define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); #define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } #define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } @@ -215,25 +231,37 @@ static SpitTransitionsDescriptorIface * random_effect_descriptor_spit_transition gpointer transition_effects_manager_ref (gpointer instance); void transition_effects_manager_unref (gpointer instance); -GParamSpec* param_spec_transition_effects_manager (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); -void value_set_transition_effects_manager (GValue* value, gpointer v_object); -void value_take_transition_effects_manager (GValue* value, gpointer v_object); +GParamSpec* param_spec_transition_effects_manager (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags); +void value_set_transition_effects_manager (GValue* value, + gpointer v_object); +void value_take_transition_effects_manager (GValue* value, + gpointer v_object); gpointer value_get_transition_effects_manager (const GValue* value); GType transition_effects_manager_get_type (void) G_GNUC_CONST; #define TRANSITION_EFFECTS_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManagerPrivate)) -enum { - TRANSITION_EFFECTS_MANAGER_DUMMY_PROPERTY -}; gpointer plugins_notifier_ref (gpointer instance); void plugins_notifier_unref (gpointer instance); -GParamSpec* plugins_param_spec_notifier (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); -void plugins_value_set_notifier (GValue* value, gpointer v_object); -void plugins_value_take_notifier (GValue* value, gpointer v_object); +GParamSpec* plugins_param_spec_notifier (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags); +void plugins_value_set_notifier (GValue* value, + gpointer v_object); +void plugins_value_take_notifier (GValue* value, + gpointer v_object); gpointer plugins_value_get_notifier (const GValue* value); GType plugins_notifier_get_type (void) G_GNUC_CONST; PluginsNotifier* plugins_notifier_get_instance (void); static void transition_effects_manager_load_transitions (TransitionEffectsManager* self); -static void _transition_effects_manager_load_transitions_plugins_notifier_pluggable_activation (PluginsNotifier* _sender, SpitPluggable* pluggable, gboolean enabled, gpointer self); +static void _transition_effects_manager_load_transitions_plugins_notifier_pluggable_activation (PluginsNotifier* _sender, + SpitPluggable* pluggable, + gboolean enabled, + gpointer self); NullTransitionDescriptor* null_transition_descriptor_new (void); NullTransitionDescriptor* null_transition_descriptor_construct (GType object_type); GType null_transition_descriptor_get_type (void) G_GNUC_CONST; @@ -246,99 +274,153 @@ GType random_effect_descriptor_get_type (void) G_GNUC_CONST; #define TRANSITION_EFFECTS_MANAGER_RANDOM_EFFECT_ID RANDOM_EFFECT_DESCRIPTOR_EFFECT_ID static TransitionEffectsManager* transition_effects_manager_new (void); static TransitionEffectsManager* transition_effects_manager_construct (GType object_type); -GeeCollection* plugins_get_pluggables_for_type (GType type, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify, gboolean include_disabled); +GeeCollection* plugins_get_pluggables_for_type (GType type, + GCompareDataFunc compare_func, + void* compare_func_target, + GDestroyNotify compare_func_target_destroy_notify, + gboolean include_disabled); gchar* plugins_get_pluggable_module_id (SpitPluggable* needle); void transition_effects_manager_init (void); void transition_effects_manager_terminate (void); TransitionEffectsManager* transition_effects_manager_get_instance (void); GeeCollection* transition_effects_manager_get_effect_ids (TransitionEffectsManager* self); -GeeCollection* transition_effects_manager_get_effect_names (TransitionEffectsManager* self, GCompareDataFunc comparator, void* comparator_target, GDestroyNotify comparator_target_destroy_notify); -gchar* transition_effects_manager_get_id_for_effect_name (TransitionEffectsManager* self, const gchar* effect_name); -SpitTransitionsDescriptor* transition_effects_manager_get_effect_descriptor (TransitionEffectsManager* self, const gchar* effect_id); -gchar* transition_effects_manager_get_effect_name (TransitionEffectsManager* self, const gchar* effect_id); +GeeCollection* transition_effects_manager_get_effect_names (TransitionEffectsManager* self, + GCompareDataFunc comparator, + void* comparator_target, + GDestroyNotify comparator_target_destroy_notify); +gchar* transition_effects_manager_get_id_for_effect_name (TransitionEffectsManager* self, + const gchar* effect_name); +SpitTransitionsDescriptor* transition_effects_manager_get_effect_descriptor (TransitionEffectsManager* self, + const gchar* effect_id); +gchar* transition_effects_manager_get_effect_name (TransitionEffectsManager* self, + const gchar* effect_id); SpitTransitionsDescriptor* transition_effects_manager_get_null_descriptor (TransitionEffectsManager* self); gpointer transition_clock_ref (gpointer instance); void transition_clock_unref (gpointer instance); -GParamSpec* param_spec_transition_clock (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); -void value_set_transition_clock (GValue* value, gpointer v_object); -void value_take_transition_clock (GValue* value, gpointer v_object); +GParamSpec* param_spec_transition_clock (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags); +void value_set_transition_clock (GValue* value, + gpointer v_object); +void value_take_transition_clock (GValue* value, + gpointer v_object); gpointer value_get_transition_clock (const GValue* value); GType transition_clock_get_type (void) G_GNUC_CONST; -TransitionClock* transition_effects_manager_create_transition_clock (TransitionEffectsManager* self, const gchar* effect_id); +TransitionClock* transition_effects_manager_create_transition_clock (TransitionEffectsManager* self, + const gchar* effect_id); TransitionClock* transition_clock_new (SpitTransitionsDescriptor* desc); -TransitionClock* transition_clock_construct (GType object_type, SpitTransitionsDescriptor* desc); +TransitionClock* transition_clock_construct (GType object_type, + SpitTransitionsDescriptor* desc); TransitionClock* transition_effects_manager_create_null_transition_clock (TransitionEffectsManager* self); static void transition_effects_manager_finalize (TransitionEffectsManager * obj); gpointer op_timer_ref (gpointer instance); void op_timer_unref (gpointer instance); -GParamSpec* param_spec_op_timer (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); -void value_set_op_timer (GValue* value, gpointer v_object); -void value_take_op_timer (GValue* value, gpointer v_object); +GParamSpec* param_spec_op_timer (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags); +void value_set_op_timer (GValue* value, + gpointer v_object); +void value_take_op_timer (GValue* value, + gpointer v_object); gpointer value_get_op_timer (const GValue* value); GType op_timer_get_type (void) G_GNUC_CONST; #define TRANSITION_CLOCK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TRANSITION_CLOCK, TransitionClockPrivate)) -enum { - TRANSITION_CLOCK_DUMMY_PROPERTY -}; static void transition_clock_cancel_timer (TransitionClock* self); gchar* op_timer_to_string (OpTimer* self); -PluginsStandardHostInterface* plugins_standard_host_interface_new (SpitPluggable* pluggable, const gchar* config_domain); -PluginsStandardHostInterface* plugins_standard_host_interface_construct (GType object_type, SpitPluggable* pluggable, const gchar* config_domain); +PluginsStandardHostInterface* plugins_standard_host_interface_new (SpitPluggable* pluggable, + const gchar* config_domain); +PluginsStandardHostInterface* plugins_standard_host_interface_construct (GType object_type, + SpitPluggable* pluggable, + const gchar* config_domain); GType plugins_standard_host_interface_get_type (void) G_GNUC_CONST; OpTimer* op_timer_new (const gchar* name); -OpTimer* op_timer_construct (GType object_type, const gchar* name); +OpTimer* op_timer_construct (GType object_type, + const gchar* name); gboolean transition_clock_is_in_progress (TransitionClock* self); -void transition_clock_start (TransitionClock* self, SpitTransitionsVisuals* visuals, SpitTransitionsDirection direction, gint duration_msec, TransitionClockRepaintCallback repaint, void* repaint_target); +void transition_clock_start (TransitionClock* self, + SpitTransitionsVisuals* visuals, + SpitTransitionsDirection direction, + gint duration_msec, + TransitionClockRepaintCallback repaint, + void* repaint_target); static void transition_clock_reset (TransitionClock* self); gulong now_ms (void); static gboolean transition_clock_tick (TransitionClock* self); static gboolean _transition_clock_tick_gsource_func (gpointer self); static gboolean transition_clock_is_fps_ok (TransitionClock* self); void transition_clock_cancel (TransitionClock* self); -gboolean transition_clock_paint (TransitionClock* self, cairo_t* ctx, gint width, gint height); +gboolean transition_clock_paint (TransitionClock* self, + cairo_t* ctx, + gint width, + gint height); void op_timer_start (OpTimer* self); void op_timer_stop (OpTimer* self); static void transition_clock_finalize (TransitionClock * obj); -enum { - NULL_TRANSITION_DESCRIPTOR_DUMMY_PROPERTY -}; -static gint null_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base, gint min_host_version, gint max_host_version); +static gint null_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base, + gint min_host_version, + gint max_host_version); static const gchar* null_transition_descriptor_real_get_id (SpitPluggable* base); static const gchar* null_transition_descriptor_real_get_pluggable_name (SpitPluggable* base); -static void null_transition_descriptor_real_get_info (SpitPluggable* base, SpitPluggableInfo* info); -static void null_transition_descriptor_real_activation (SpitPluggable* base, gboolean enabled); -static SpitTransitionsEffect* null_transition_descriptor_real_create (SpitTransitionsDescriptor* base, SpitHostInterface* host); +static void null_transition_descriptor_real_get_info (SpitPluggable* base, + SpitPluggableInfo* info); +static void null_transition_descriptor_real_activation (SpitPluggable* base, + gboolean enabled); +static SpitTransitionsEffect* null_transition_descriptor_real_create (SpitTransitionsDescriptor* base, + SpitHostInterface* host); NullEffect* null_effect_new (void); NullEffect* null_effect_construct (GType object_type); GType null_effect_get_type (void) G_GNUC_CONST; -enum { - NULL_EFFECT_DUMMY_PROPERTY -}; -static void null_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps); -static void null_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion); +static void null_effect_real_get_fps (SpitTransitionsEffect* base, + gint* desired_fps, + gint* min_fps); +static void null_effect_real_start (SpitTransitionsEffect* base, + SpitTransitionsVisuals* visuals, + SpitTransitionsMotion* motion); static gboolean null_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void null_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number); -static void null_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number); +static void null_effect_real_paint (SpitTransitionsEffect* base, + SpitTransitionsVisuals* visuals, + SpitTransitionsMotion* motion, + cairo_t* ctx, + gint width, + gint height, + gint frame_number); +static void null_effect_real_advance (SpitTransitionsEffect* base, + SpitTransitionsVisuals* visuals, + SpitTransitionsMotion* motion, + gint frame_number); static void null_effect_real_cancel (SpitTransitionsEffect* base); -enum { - RANDOM_EFFECT_DESCRIPTOR_DUMMY_PROPERTY -}; -static gint random_effect_descriptor_real_get_pluggable_interface (SpitPluggable* base, gint min_host_version, gint max_host_version); +static gint random_effect_descriptor_real_get_pluggable_interface (SpitPluggable* base, + gint min_host_version, + gint max_host_version); static const gchar* random_effect_descriptor_real_get_id (SpitPluggable* base); static const gchar* random_effect_descriptor_real_get_pluggable_name (SpitPluggable* base); -static void random_effect_descriptor_real_get_info (SpitPluggable* base, SpitPluggableInfo* info); -static void random_effect_descriptor_real_activation (SpitPluggable* base, gboolean enabled); -static SpitTransitionsEffect* random_effect_descriptor_real_create (SpitTransitionsDescriptor* base, SpitHostInterface* host); - - -static void _transition_effects_manager_load_transitions_plugins_notifier_pluggable_activation (PluginsNotifier* _sender, SpitPluggable* pluggable, gboolean enabled, gpointer self) { +static void random_effect_descriptor_real_get_info (SpitPluggable* base, + SpitPluggableInfo* info); +static void random_effect_descriptor_real_activation (SpitPluggable* base, + gboolean enabled); +static SpitTransitionsEffect* random_effect_descriptor_real_create (SpitTransitionsDescriptor* base, + SpitHostInterface* host); + + +static void +_transition_effects_manager_load_transitions_plugins_notifier_pluggable_activation (PluginsNotifier* _sender, + SpitPluggable* pluggable, + gboolean enabled, + gpointer self) +{ #line 25 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" transition_effects_manager_load_transitions ((TransitionEffectsManager*) self); -#line 338 "TransitionEffects.c" +#line 418 "TransitionEffects.c" } -static TransitionEffectsManager* transition_effects_manager_construct (GType object_type) { +static TransitionEffectsManager* +transition_effects_manager_construct (GType object_type) +{ TransitionEffectsManager* self = NULL; PluginsNotifier* _tmp0_; PluginsNotifier* _tmp1_; @@ -356,25 +438,31 @@ static TransitionEffectsManager* transition_effects_manager_construct (GType obj _plugins_notifier_unref0 (_tmp1_); #line 19 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return self; -#line 360 "TransitionEffects.c" +#line 442 "TransitionEffects.c" } -static TransitionEffectsManager* transition_effects_manager_new (void) { +static TransitionEffectsManager* +transition_effects_manager_new (void) +{ #line 19 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return transition_effects_manager_construct (TYPE_TRANSITION_EFFECTS_MANAGER); -#line 367 "TransitionEffects.c" +#line 451 "TransitionEffects.c" } -static gpointer _g_object_ref0 (gpointer self) { +static gpointer +_g_object_ref0 (gpointer self) +{ #line 48 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return self ? g_object_ref (self) : NULL; -#line 374 "TransitionEffects.c" +#line 460 "TransitionEffects.c" } -static void transition_effects_manager_load_transitions (TransitionEffectsManager* self) { +static void +transition_effects_manager_load_transitions (TransitionEffectsManager* self) +{ GeeMap* _tmp0_; GeeMap* _tmp1_; SpitTransitionsDescriptor* _tmp2_; @@ -416,7 +504,7 @@ static void transition_effects_manager_load_transitions (TransitionEffectsManage _tmp9_ = plugins_get_pluggables_for_type (SPIT_TRANSITIONS_TYPE_DESCRIPTOR, NULL, NULL, NULL, FALSE); #line 36 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" pluggables = _tmp9_; -#line 420 "TransitionEffects.c" +#line 508 "TransitionEffects.c" { GeeIterator* _pluggable_it = NULL; GeeCollection* _tmp10_; @@ -429,134 +517,127 @@ static void transition_effects_manager_load_transitions (TransitionEffectsManage _pluggable_it = _tmp11_; #line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" while (TRUE) { -#line 433 "TransitionEffects.c" +#line 521 "TransitionEffects.c" GeeIterator* _tmp12_; - gboolean _tmp13_; SpitPluggable* pluggable = NULL; - GeeIterator* _tmp14_; - gpointer _tmp15_; + GeeIterator* _tmp13_; + gpointer _tmp14_; gint pluggable_interface = 0; - SpitPluggable* _tmp16_; - gint _tmp17_; - gint _tmp18_; + SpitPluggable* _tmp15_; + gint _tmp16_; SpitTransitionsDescriptor* desc = NULL; - SpitPluggable* _tmp23_; + SpitPluggable* _tmp21_; + SpitTransitionsDescriptor* _tmp22_; + GeeMap* _tmp23_; SpitTransitionsDescriptor* _tmp24_; - GeeMap* _tmp25_; - SpitTransitionsDescriptor* _tmp26_; - const gchar* _tmp27_; - gboolean _tmp28_; + const gchar* _tmp25_; #line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp12_ = _pluggable_it; #line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp13_ = gee_iterator_next (_tmp12_); -#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (!_tmp13_) { + if (!gee_iterator_next (_tmp12_)) { #line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" break; -#line 458 "TransitionEffects.c" +#line 541 "TransitionEffects.c" } #line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp14_ = _pluggable_it; + _tmp13_ = _pluggable_it; #line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp15_ = gee_iterator_get (_tmp14_); + _tmp14_ = gee_iterator_get (_tmp13_); #line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - pluggable = (SpitPluggable*) _tmp15_; -#line 39 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp16_ = pluggable; + pluggable = (SpitPluggable*) _tmp14_; #line 39 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp17_ = spit_pluggable_get_pluggable_interface (_tmp16_, SPIT_TRANSITIONS_CURRENT_INTERFACE, SPIT_TRANSITIONS_CURRENT_INTERFACE); + _tmp15_ = pluggable; #line 39 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - pluggable_interface = _tmp17_; + pluggable_interface = spit_pluggable_get_pluggable_interface (_tmp15_, SPIT_TRANSITIONS_CURRENT_INTERFACE, SPIT_TRANSITIONS_CURRENT_INTERFACE); #line 41 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp18_ = pluggable_interface; + _tmp16_ = pluggable_interface; #line 41 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp18_ != SPIT_TRANSITIONS_CURRENT_INTERFACE) { -#line 476 "TransitionEffects.c" - SpitPluggable* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - gint _tmp22_; + if (_tmp16_ != SPIT_TRANSITIONS_CURRENT_INTERFACE) { +#line 557 "TransitionEffects.c" + SpitPluggable* _tmp17_; + gchar* _tmp18_; + gchar* _tmp19_; + gint _tmp20_; #line 42 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp19_ = pluggable; + _tmp17_ = pluggable; #line 42 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp20_ = plugins_get_pluggable_module_id (_tmp19_); + _tmp18_ = plugins_get_pluggable_module_id (_tmp17_); #line 42 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp21_ = _tmp20_; + _tmp19_ = _tmp18_; #line 42 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp22_ = pluggable_interface; + _tmp20_ = pluggable_interface; #line 42 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_warning ("TransitionEffects.vala:42: Unable to load transitions plug-in %s: repo" \ -"rted interface %d", _tmp21_, _tmp22_); +"rted interface %d", _tmp19_, _tmp20_); #line 42 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_free0 (_tmp21_); + _g_free0 (_tmp19_); #line 45 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (pluggable); #line 45 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" continue; -#line 497 "TransitionEffects.c" +#line 578 "TransitionEffects.c" } #line 48 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp23_ = pluggable; + _tmp21_ = pluggable; #line 48 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptor)); + _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptor)); #line 48 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - desc = _tmp24_; + desc = _tmp22_; #line 49 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp25_ = self->priv->effects; + _tmp23_ = self->priv->effects; #line 49 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp26_ = desc; + _tmp24_ = desc; #line 49 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp27_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); + _tmp25_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); #line 49 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp28_ = gee_map_has_key (_tmp25_, _tmp27_); -#line 49 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp28_) { -#line 515 "TransitionEffects.c" - SpitTransitionsDescriptor* _tmp29_; - const gchar* _tmp30_; + if (gee_map_has_key (_tmp23_, _tmp25_)) { +#line 594 "TransitionEffects.c" + SpitTransitionsDescriptor* _tmp26_; + const gchar* _tmp27_; #line 50 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp29_ = desc; + _tmp26_ = desc; #line 50 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp30_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); + _tmp27_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); #line 50 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_warning ("TransitionEffects.vala:50: Multiple transitions loaded with same effec" \ -"t ID %s", _tmp30_); -#line 524 "TransitionEffects.c" +"t ID %s", _tmp27_); +#line 603 "TransitionEffects.c" } else { - GeeMap* _tmp31_; - SpitTransitionsDescriptor* _tmp32_; - const gchar* _tmp33_; - SpitTransitionsDescriptor* _tmp34_; + GeeMap* _tmp28_; + SpitTransitionsDescriptor* _tmp29_; + const gchar* _tmp30_; + SpitTransitionsDescriptor* _tmp31_; #line 52 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp31_ = self->priv->effects; + _tmp28_ = self->priv->effects; #line 52 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp32_ = desc; + _tmp29_ = desc; #line 52 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp33_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); + _tmp30_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); #line 52 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp34_ = desc; + _tmp31_ = desc; #line 52 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - gee_map_set (_tmp31_, _tmp33_, _tmp34_); -#line 540 "TransitionEffects.c" + gee_map_set (_tmp28_, _tmp30_, _tmp31_); +#line 619 "TransitionEffects.c" } #line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (desc); #line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (pluggable); -#line 546 "TransitionEffects.c" +#line 625 "TransitionEffects.c" } #line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (_pluggable_it); -#line 550 "TransitionEffects.c" +#line 629 "TransitionEffects.c" } #line 28 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (pluggables); -#line 554 "TransitionEffects.c" +#line 633 "TransitionEffects.c" } -void transition_effects_manager_init (void) { +void +transition_effects_manager_init (void) +{ TransitionEffectsManager* _tmp0_; #line 57 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp0_ = transition_effects_manager_new (); @@ -564,27 +645,33 @@ void transition_effects_manager_init (void) { _transition_effects_manager_unref0 (transition_effects_manager_instance); #line 57 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" transition_effects_manager_instance = _tmp0_; -#line 566 "TransitionEffects.c" +#line 647 "TransitionEffects.c" } -void transition_effects_manager_terminate (void) { +void +transition_effects_manager_terminate (void) +{ #line 61 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _transition_effects_manager_unref0 (transition_effects_manager_instance); #line 61 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" transition_effects_manager_instance = NULL; -#line 575 "TransitionEffects.c" +#line 658 "TransitionEffects.c" } -static gpointer _transition_effects_manager_ref0 (gpointer self) { +static gpointer +_transition_effects_manager_ref0 (gpointer self) +{ #line 67 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return self ? transition_effects_manager_ref (self) : NULL; -#line 582 "TransitionEffects.c" +#line 667 "TransitionEffects.c" } -TransitionEffectsManager* transition_effects_manager_get_instance (void) { +TransitionEffectsManager* +transition_effects_manager_get_instance (void) +{ TransitionEffectsManager* result = NULL; TransitionEffectsManager* _tmp0_; TransitionEffectsManager* _tmp1_; @@ -601,11 +688,13 @@ TransitionEffectsManager* transition_effects_manager_get_instance (void) { result = _tmp2_; #line 67 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 603 "TransitionEffects.c" +#line 690 "TransitionEffects.c" } -GeeCollection* transition_effects_manager_get_effect_ids (TransitionEffectsManager* self) { +GeeCollection* +transition_effects_manager_get_effect_ids (TransitionEffectsManager* self) +{ GeeCollection* result = NULL; GeeMap* _tmp0_; GeeSet* _tmp1_; @@ -622,11 +711,16 @@ GeeCollection* transition_effects_manager_get_effect_ids (TransitionEffectsManag result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); #line 71 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 624 "TransitionEffects.c" +#line 713 "TransitionEffects.c" } -GeeCollection* transition_effects_manager_get_effect_names (TransitionEffectsManager* self, GCompareDataFunc comparator, void* comparator_target, GDestroyNotify comparator_target_destroy_notify) { +GeeCollection* +transition_effects_manager_get_effect_names (TransitionEffectsManager* self, + GCompareDataFunc comparator, + void* comparator_target, + GDestroyNotify comparator_target_destroy_notify) +{ GeeCollection* result = NULL; GeeCollection* effect_names = NULL; GCompareDataFunc _tmp0_; @@ -651,7 +745,7 @@ GeeCollection* transition_effects_manager_get_effect_names (TransitionEffectsMan _tmp1_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, _tmp0_, _tmp0__target, _tmp0__target_destroy_notify); #line 75 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" effect_names = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection); -#line 653 "TransitionEffects.c" +#line 747 "TransitionEffects.c" { GeeIterator* _desc_it = NULL; GeeMap* _tmp2_; @@ -678,46 +772,43 @@ GeeCollection* transition_effects_manager_get_effect_names (TransitionEffectsMan _desc_it = _tmp7_; #line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" while (TRUE) { -#line 680 "TransitionEffects.c" +#line 774 "TransitionEffects.c" GeeIterator* _tmp8_; - gboolean _tmp9_; SpitTransitionsDescriptor* desc = NULL; - GeeIterator* _tmp10_; - gpointer _tmp11_; - GeeCollection* _tmp12_; - SpitTransitionsDescriptor* _tmp13_; - const gchar* _tmp14_; + GeeIterator* _tmp9_; + gpointer _tmp10_; + GeeCollection* _tmp11_; + SpitTransitionsDescriptor* _tmp12_; + const gchar* _tmp13_; #line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp8_ = _desc_it; #line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp9_ = gee_iterator_next (_tmp8_); -#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (!_tmp9_) { + if (!gee_iterator_next (_tmp8_)) { #line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" break; -#line 697 "TransitionEffects.c" +#line 788 "TransitionEffects.c" } #line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp10_ = _desc_it; + _tmp9_ = _desc_it; #line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp11_ = gee_iterator_get (_tmp10_); + _tmp10_ = gee_iterator_get (_tmp9_); #line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - desc = (SpitTransitionsDescriptor*) _tmp11_; + desc = (SpitTransitionsDescriptor*) _tmp10_; #line 77 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp12_ = effect_names; + _tmp11_ = effect_names; #line 77 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp13_ = desc; + _tmp12_ = desc; #line 77 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp14_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); + _tmp13_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); #line 77 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - gee_collection_add (_tmp12_, _tmp14_); + gee_collection_add (_tmp11_, _tmp13_); #line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (desc); -#line 715 "TransitionEffects.c" +#line 806 "TransitionEffects.c" } #line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (_desc_it); -#line 719 "TransitionEffects.c" +#line 810 "TransitionEffects.c" } #line 79 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" result = effect_names; @@ -731,17 +822,20 @@ GeeCollection* transition_effects_manager_get_effect_names (TransitionEffectsMan comparator_target_destroy_notify = NULL; #line 79 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 733 "TransitionEffects.c" +#line 824 "TransitionEffects.c" } -gchar* transition_effects_manager_get_id_for_effect_name (TransitionEffectsManager* self, const gchar* effect_name) { +gchar* +transition_effects_manager_get_id_for_effect_name (TransitionEffectsManager* self, + const gchar* effect_name) +{ gchar* result = NULL; #line 82 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL); #line 82 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_val_if_fail (effect_name != NULL, NULL); -#line 743 "TransitionEffects.c" +#line 837 "TransitionEffects.c" { GeeIterator* _desc_it = NULL; GeeMap* _tmp0_; @@ -768,80 +862,76 @@ gchar* transition_effects_manager_get_id_for_effect_name (TransitionEffectsManag _desc_it = _tmp5_; #line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" while (TRUE) { -#line 770 "TransitionEffects.c" +#line 864 "TransitionEffects.c" GeeIterator* _tmp6_; - gboolean _tmp7_; SpitTransitionsDescriptor* desc = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; - SpitTransitionsDescriptor* _tmp10_; - const gchar* _tmp11_; - const gchar* _tmp12_; + GeeIterator* _tmp7_; + gpointer _tmp8_; + SpitTransitionsDescriptor* _tmp9_; + const gchar* _tmp10_; #line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp6_ = _desc_it; #line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp7_ = gee_iterator_next (_tmp6_); -#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (!_tmp7_) { + if (!gee_iterator_next (_tmp6_)) { #line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" break; -#line 787 "TransitionEffects.c" +#line 877 "TransitionEffects.c" } #line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp8_ = _desc_it; + _tmp7_ = _desc_it; #line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp9_ = gee_iterator_get (_tmp8_); + _tmp8_ = gee_iterator_get (_tmp7_); #line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - desc = (SpitTransitionsDescriptor*) _tmp9_; + desc = (SpitTransitionsDescriptor*) _tmp8_; #line 84 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp10_ = desc; + _tmp9_ = desc; #line 84 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp11_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); + _tmp10_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); #line 84 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp12_ = effect_name; -#line 84 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (g_strcmp0 (_tmp11_, _tmp12_) == 0) { -#line 803 "TransitionEffects.c" - SpitTransitionsDescriptor* _tmp13_; - const gchar* _tmp14_; - gchar* _tmp15_; + if (g_strcmp0 (_tmp10_, effect_name) == 0) { +#line 891 "TransitionEffects.c" + SpitTransitionsDescriptor* _tmp11_; + const gchar* _tmp12_; + gchar* _tmp13_; #line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp13_ = desc; + _tmp11_ = desc; #line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp14_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); + _tmp12_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); #line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp15_ = g_strdup (_tmp14_); + _tmp13_ = g_strdup (_tmp12_); #line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = _tmp15_; + result = _tmp13_; #line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (desc); #line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (_desc_it); #line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 821 "TransitionEffects.c" +#line 909 "TransitionEffects.c" } #line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (desc); -#line 825 "TransitionEffects.c" +#line 913 "TransitionEffects.c" } #line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (_desc_it); -#line 829 "TransitionEffects.c" +#line 917 "TransitionEffects.c" } #line 88 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" result = NULL; #line 88 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 835 "TransitionEffects.c" +#line 923 "TransitionEffects.c" } -SpitTransitionsDescriptor* transition_effects_manager_get_effect_descriptor (TransitionEffectsManager* self, const gchar* effect_id) { +SpitTransitionsDescriptor* +transition_effects_manager_get_effect_descriptor (TransitionEffectsManager* self, + const gchar* effect_id) +{ SpitTransitionsDescriptor* result = NULL; GeeMap* _tmp0_; - const gchar* _tmp1_; - gpointer _tmp2_; + gpointer _tmp1_; #line 91 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL); #line 91 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -849,67 +939,67 @@ SpitTransitionsDescriptor* transition_effects_manager_get_effect_descriptor (Tra #line 92 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp0_ = self->priv->effects; #line 92 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = effect_id; -#line 92 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = gee_map_get (_tmp0_, _tmp1_); + _tmp1_ = gee_map_get (_tmp0_, effect_id); #line 92 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = (SpitTransitionsDescriptor*) _tmp2_; + result = (SpitTransitionsDescriptor*) _tmp1_; #line 92 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 858 "TransitionEffects.c" +#line 946 "TransitionEffects.c" } -gchar* transition_effects_manager_get_effect_name (TransitionEffectsManager* self, const gchar* effect_id) { +gchar* +transition_effects_manager_get_effect_name (TransitionEffectsManager* self, + const gchar* effect_id) +{ gchar* result = NULL; SpitTransitionsDescriptor* desc = NULL; - const gchar* _tmp0_; - SpitTransitionsDescriptor* _tmp1_; - const gchar* _tmp2_ = NULL; - SpitTransitionsDescriptor* _tmp3_; - gchar* _tmp6_; + SpitTransitionsDescriptor* _tmp0_; + const gchar* _tmp1_ = NULL; + SpitTransitionsDescriptor* _tmp2_; + gchar* _tmp5_; #line 95 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL); #line 95 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_val_if_fail (effect_id != NULL, NULL); #line 96 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = effect_id; + _tmp0_ = transition_effects_manager_get_effect_descriptor (self, effect_id); #line 96 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = transition_effects_manager_get_effect_descriptor (self, _tmp0_); -#line 96 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - desc = _tmp1_; + desc = _tmp0_; #line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3_ = desc; + _tmp2_ = desc; #line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp3_ != NULL) { -#line 884 "TransitionEffects.c" - SpitTransitionsDescriptor* _tmp4_; - const gchar* _tmp5_; + if (_tmp2_ != NULL) { +#line 972 "TransitionEffects.c" + SpitTransitionsDescriptor* _tmp3_; + const gchar* _tmp4_; #line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = desc; + _tmp3_ = desc; #line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp5_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); + _tmp4_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); #line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = _tmp5_; -#line 893 "TransitionEffects.c" + _tmp1_ = _tmp4_; +#line 981 "TransitionEffects.c" } else { #line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = _ ("(None)"); -#line 897 "TransitionEffects.c" + _tmp1_ = _ ("(None)"); +#line 985 "TransitionEffects.c" } #line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp6_ = g_strdup (_tmp2_); + _tmp5_ = g_strdup (_tmp1_); #line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = _tmp6_; + result = _tmp5_; #line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (desc); #line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 907 "TransitionEffects.c" +#line 995 "TransitionEffects.c" } -SpitTransitionsDescriptor* transition_effects_manager_get_null_descriptor (TransitionEffectsManager* self) { +SpitTransitionsDescriptor* +transition_effects_manager_get_null_descriptor (TransitionEffectsManager* self) +{ SpitTransitionsDescriptor* result = NULL; SpitTransitionsDescriptor* _tmp0_; SpitTransitionsDescriptor* _tmp1_; @@ -923,61 +1013,63 @@ SpitTransitionsDescriptor* transition_effects_manager_get_null_descriptor (Trans result = _tmp1_; #line 102 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 925 "TransitionEffects.c" +#line 1015 "TransitionEffects.c" } -TransitionClock* transition_effects_manager_create_transition_clock (TransitionEffectsManager* self, const gchar* effect_id) { +TransitionClock* +transition_effects_manager_create_transition_clock (TransitionEffectsManager* self, + const gchar* effect_id) +{ TransitionClock* result = NULL; SpitTransitionsDescriptor* desc = NULL; - const gchar* _tmp0_; - SpitTransitionsDescriptor* _tmp1_; - TransitionClock* _tmp2_ = NULL; - SpitTransitionsDescriptor* _tmp3_; + SpitTransitionsDescriptor* _tmp0_; + TransitionClock* _tmp1_ = NULL; + SpitTransitionsDescriptor* _tmp2_; #line 105 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL); #line 105 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_val_if_fail (effect_id != NULL, NULL); #line 106 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = effect_id; -#line 106 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = transition_effects_manager_get_effect_descriptor (self, _tmp0_); + _tmp0_ = transition_effects_manager_get_effect_descriptor (self, effect_id); #line 106 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - desc = _tmp1_; + desc = _tmp0_; #line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3_ = desc; + _tmp2_ = desc; #line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp3_ != NULL) { -#line 950 "TransitionEffects.c" - SpitTransitionsDescriptor* _tmp4_; - TransitionClock* _tmp5_; + if (_tmp2_ != NULL) { +#line 1040 "TransitionEffects.c" + SpitTransitionsDescriptor* _tmp3_; + TransitionClock* _tmp4_; #line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = desc; + _tmp3_ = desc; #line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp5_ = transition_clock_new (_tmp4_); + _tmp4_ = transition_clock_new (_tmp3_); #line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _transition_clock_unref0 (_tmp2_); + _transition_clock_unref0 (_tmp1_); #line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = _tmp5_; -#line 961 "TransitionEffects.c" + _tmp1_ = _tmp4_; +#line 1051 "TransitionEffects.c" } else { #line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _transition_clock_unref0 (_tmp2_); + _transition_clock_unref0 (_tmp1_); #line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = NULL; -#line 967 "TransitionEffects.c" + _tmp1_ = NULL; +#line 1057 "TransitionEffects.c" } #line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = _tmp2_; + result = _tmp1_; #line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (desc); #line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 975 "TransitionEffects.c" +#line 1065 "TransitionEffects.c" } -TransitionClock* transition_effects_manager_create_null_transition_clock (TransitionEffectsManager* self) { +TransitionClock* +transition_effects_manager_create_null_transition_clock (TransitionEffectsManager* self) +{ TransitionClock* result = NULL; SpitTransitionsDescriptor* _tmp0_; TransitionClock* _tmp1_; @@ -991,108 +1083,133 @@ TransitionClock* transition_effects_manager_create_null_transition_clock (Transi result = _tmp1_; #line 112 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 993 "TransitionEffects.c" +#line 1085 "TransitionEffects.c" } -static void value_transition_effects_manager_init (GValue* value) { +static void +value_transition_effects_manager_init (GValue* value) +{ #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" value->data[0].v_pointer = NULL; -#line 1000 "TransitionEffects.c" +#line 1094 "TransitionEffects.c" } -static void value_transition_effects_manager_free_value (GValue* value) { +static void +value_transition_effects_manager_free_value (GValue* value) +{ #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (value->data[0].v_pointer) { #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" transition_effects_manager_unref (value->data[0].v_pointer); -#line 1009 "TransitionEffects.c" +#line 1105 "TransitionEffects.c" } } -static void value_transition_effects_manager_copy_value (const GValue* src_value, GValue* dest_value) { +static void +value_transition_effects_manager_copy_value (const GValue* src_value, + GValue* dest_value) +{ #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (src_value->data[0].v_pointer) { #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" dest_value->data[0].v_pointer = transition_effects_manager_ref (src_value->data[0].v_pointer); -#line 1019 "TransitionEffects.c" +#line 1118 "TransitionEffects.c" } else { #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" dest_value->data[0].v_pointer = NULL; -#line 1023 "TransitionEffects.c" +#line 1122 "TransitionEffects.c" } } -static gpointer value_transition_effects_manager_peek_pointer (const GValue* value) { +static gpointer +value_transition_effects_manager_peek_pointer (const GValue* value) +{ #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return value->data[0].v_pointer; -#line 1031 "TransitionEffects.c" +#line 1132 "TransitionEffects.c" } -static gchar* value_transition_effects_manager_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +static gchar* +value_transition_effects_manager_collect_value (GValue* value, + guint n_collect_values, + GTypeCValue* collect_values, + guint collect_flags) +{ #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (collect_values[0].v_pointer) { -#line 1038 "TransitionEffects.c" +#line 1144 "TransitionEffects.c" TransitionEffectsManager * object; object = collect_values[0].v_pointer; #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (object->parent_instance.g_class == NULL) { #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1045 "TransitionEffects.c" +#line 1151 "TransitionEffects.c" } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1049 "TransitionEffects.c" +#line 1155 "TransitionEffects.c" } #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" value->data[0].v_pointer = transition_effects_manager_ref (object); -#line 1053 "TransitionEffects.c" +#line 1159 "TransitionEffects.c" } else { #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" value->data[0].v_pointer = NULL; -#line 1057 "TransitionEffects.c" +#line 1163 "TransitionEffects.c" } #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return NULL; -#line 1061 "TransitionEffects.c" +#line 1167 "TransitionEffects.c" } -static gchar* value_transition_effects_manager_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +static gchar* +value_transition_effects_manager_lcopy_value (const GValue* value, + guint n_collect_values, + GTypeCValue* collect_values, + guint collect_flags) +{ TransitionEffectsManager ** object_p; object_p = collect_values[0].v_pointer; #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (!object_p) { #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1072 "TransitionEffects.c" +#line 1183 "TransitionEffects.c" } #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (!value->data[0].v_pointer) { #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" *object_p = NULL; -#line 1078 "TransitionEffects.c" +#line 1189 "TransitionEffects.c" } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" *object_p = value->data[0].v_pointer; -#line 1082 "TransitionEffects.c" +#line 1193 "TransitionEffects.c" } else { #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" *object_p = transition_effects_manager_ref (value->data[0].v_pointer); -#line 1086 "TransitionEffects.c" +#line 1197 "TransitionEffects.c" } #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return NULL; -#line 1090 "TransitionEffects.c" +#line 1201 "TransitionEffects.c" } -GParamSpec* param_spec_transition_effects_manager (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) { +GParamSpec* +param_spec_transition_effects_manager (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags) +{ ParamSpecTransitionEffectsManager* spec; #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_val_if_fail (g_type_is_a (object_type, TYPE_TRANSITION_EFFECTS_MANAGER), NULL); @@ -1102,20 +1219,25 @@ GParamSpec* param_spec_transition_effects_manager (const gchar* name, const gcha G_PARAM_SPEC (spec)->value_type = object_type; #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return G_PARAM_SPEC (spec); -#line 1104 "TransitionEffects.c" +#line 1221 "TransitionEffects.c" } -gpointer value_get_transition_effects_manager (const GValue* value) { +gpointer +value_get_transition_effects_manager (const GValue* value) +{ #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSITION_EFFECTS_MANAGER), NULL); #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return value->data[0].v_pointer; -#line 1113 "TransitionEffects.c" +#line 1232 "TransitionEffects.c" } -void value_set_transition_effects_manager (GValue* value, gpointer v_object) { +void +value_set_transition_effects_manager (GValue* value, + gpointer v_object) +{ TransitionEffectsManager * old; #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSITION_EFFECTS_MANAGER)); @@ -1131,22 +1253,25 @@ void value_set_transition_effects_manager (GValue* value, gpointer v_object) { value->data[0].v_pointer = v_object; #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" transition_effects_manager_ref (value->data[0].v_pointer); -#line 1133 "TransitionEffects.c" +#line 1255 "TransitionEffects.c" } else { #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" value->data[0].v_pointer = NULL; -#line 1137 "TransitionEffects.c" +#line 1259 "TransitionEffects.c" } #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (old) { #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" transition_effects_manager_unref (old); -#line 1143 "TransitionEffects.c" +#line 1265 "TransitionEffects.c" } } -void value_take_transition_effects_manager (GValue* value, gpointer v_object) { +void +value_take_transition_effects_manager (GValue* value, + gpointer v_object) +{ TransitionEffectsManager * old; #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSITION_EFFECTS_MANAGER)); @@ -1160,33 +1285,37 @@ void value_take_transition_effects_manager (GValue* value, gpointer v_object) { g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" value->data[0].v_pointer = v_object; -#line 1162 "TransitionEffects.c" +#line 1287 "TransitionEffects.c" } else { #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" value->data[0].v_pointer = NULL; -#line 1166 "TransitionEffects.c" +#line 1291 "TransitionEffects.c" } #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (old) { #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" transition_effects_manager_unref (old); -#line 1172 "TransitionEffects.c" +#line 1297 "TransitionEffects.c" } } -static void transition_effects_manager_class_init (TransitionEffectsManagerClass * klass) { +static void +transition_effects_manager_class_init (TransitionEffectsManagerClass * klass) +{ #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" transition_effects_manager_parent_class = g_type_class_peek_parent (klass); #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" ((TransitionEffectsManagerClass *) klass)->finalize = transition_effects_manager_finalize; #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_type_class_add_private (klass, sizeof (TransitionEffectsManagerPrivate)); -#line 1184 "TransitionEffects.c" +#line 1311 "TransitionEffects.c" } -static void transition_effects_manager_instance_init (TransitionEffectsManager * self) { +static void +transition_effects_manager_instance_init (TransitionEffectsManager * self) +{ GeeHashMap* _tmp0_; NullTransitionDescriptor* _tmp1_; RandomEffectDescriptor* _tmp2_; @@ -1206,11 +1335,13 @@ static void transition_effects_manager_instance_init (TransitionEffectsManager * self->priv->random_descriptor = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptor); #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" self->ref_count = 1; -#line 1208 "TransitionEffects.c" +#line 1337 "TransitionEffects.c" } -static void transition_effects_manager_finalize (TransitionEffectsManager * obj) { +static void +transition_effects_manager_finalize (TransitionEffectsManager * obj) +{ TransitionEffectsManager * self; PluginsNotifier* _tmp0_; PluginsNotifier* _tmp1_; @@ -1235,11 +1366,13 @@ static void transition_effects_manager_finalize (TransitionEffectsManager * obj) _g_object_unref0 (self->priv->null_descriptor); #line 17 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (self->priv->random_descriptor); -#line 1237 "TransitionEffects.c" +#line 1368 "TransitionEffects.c" } -GType transition_effects_manager_get_type (void) { +GType +transition_effects_manager_get_type (void) +{ static volatile gsize transition_effects_manager_type_id__volatile = 0; if (g_once_init_enter (&transition_effects_manager_type_id__volatile)) { static const GTypeValueTable g_define_type_value_table = { value_transition_effects_manager_init, value_transition_effects_manager_free_value, value_transition_effects_manager_copy_value, value_transition_effects_manager_peek_pointer, "p", value_transition_effects_manager_collect_value, "p", value_transition_effects_manager_lcopy_value }; @@ -1253,18 +1386,22 @@ GType transition_effects_manager_get_type (void) { } -gpointer transition_effects_manager_ref (gpointer instance) { +gpointer +transition_effects_manager_ref (gpointer instance) +{ TransitionEffectsManager * self; self = instance; #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_atomic_int_inc (&self->ref_count); #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return instance; -#line 1262 "TransitionEffects.c" +#line 1397 "TransitionEffects.c" } -void transition_effects_manager_unref (gpointer instance) { +void +transition_effects_manager_unref (gpointer instance) +{ TransitionEffectsManager * self; self = instance; #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -1273,86 +1410,81 @@ void transition_effects_manager_unref (gpointer instance) { TRANSITION_EFFECTS_MANAGER_GET_CLASS (self)->finalize (self); #line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_type_free_instance ((GTypeInstance *) self); -#line 1275 "TransitionEffects.c" +#line 1412 "TransitionEffects.c" } } -TransitionClock* transition_clock_construct (GType object_type, SpitTransitionsDescriptor* desc) { +TransitionClock* +transition_clock_construct (GType object_type, + SpitTransitionsDescriptor* desc) +{ TransitionClock* self = NULL; SpitTransitionsDescriptor* _tmp0_; - SpitTransitionsDescriptor* _tmp1_; - SpitTransitionsDescriptor* _tmp2_; - SpitTransitionsDescriptor* _tmp3_; - PluginsStandardHostInterface* _tmp4_; - PluginsStandardHostInterface* _tmp5_; - SpitTransitionsEffect* _tmp6_; - SpitTransitionsEffect* _tmp7_; - gint _tmp8_ = 0; - gint _tmp9_ = 0; - SpitTransitionsDescriptor* _tmp10_; - const gchar* _tmp11_; - OpTimer* _tmp12_; + PluginsStandardHostInterface* _tmp1_; + PluginsStandardHostInterface* _tmp2_; + SpitTransitionsEffect* _tmp3_; + SpitTransitionsEffect* _tmp4_; + gint _tmp5_ = 0; + gint _tmp6_ = 0; + const gchar* _tmp7_; + OpTimer* _tmp8_; #line 136 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_val_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (desc), NULL); #line 136 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" self = (TransitionClock*) g_type_create_instance (object_type); #line 137 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = desc; -#line 137 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); + _tmp0_ = _g_object_ref0 (desc); #line 137 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (self->priv->desc); #line 137 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->desc = _tmp1_; -#line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = desc; -#line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3_ = desc; + self->priv->desc = _tmp0_; #line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = plugins_standard_host_interface_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_TYPE_PLUGGABLE, SpitPluggable), "transitions"); + _tmp1_ = plugins_standard_host_interface_new (G_TYPE_CHECK_INSTANCE_CAST (desc, SPIT_TYPE_PLUGGABLE, SpitPluggable), "transitions"); #line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp5_ = _tmp4_; + _tmp2_ = _tmp1_; #line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp6_ = spit_transitions_descriptor_create (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface)); + _tmp3_ = spit_transitions_descriptor_create (desc, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface)); #line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (self->priv->effect); #line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->effect = _tmp6_; + self->priv->effect = _tmp3_; #line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (_tmp5_); + _g_object_unref0 (_tmp2_); #line 140 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp7_ = self->priv->effect; + _tmp4_ = self->priv->effect; #line 140 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - spit_transitions_effect_get_fps (_tmp7_, &_tmp8_, &_tmp9_); + spit_transitions_effect_get_fps (_tmp4_, &_tmp5_, &_tmp6_); #line 140 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->desired_fps = _tmp8_; + self->priv->desired_fps = _tmp5_; #line 140 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->min_fps = _tmp9_; -#line 142 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp10_ = desc; + self->priv->min_fps = _tmp6_; #line 142 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp11_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); + _tmp7_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (desc, SPIT_TYPE_PLUGGABLE, SpitPluggable)); #line 142 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp12_ = op_timer_new (_tmp11_); + _tmp8_ = op_timer_new (_tmp7_); #line 142 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _op_timer_unref0 (self->priv->paint_timer); #line 142 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->paint_timer = _tmp12_; + self->priv->paint_timer = _tmp8_; #line 136 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return self; -#line 1343 "TransitionEffects.c" +#line 1471 "TransitionEffects.c" } -TransitionClock* transition_clock_new (SpitTransitionsDescriptor* desc) { +TransitionClock* +transition_clock_new (SpitTransitionsDescriptor* desc) +{ #line 136 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return transition_clock_construct (TYPE_TRANSITION_CLOCK, desc); -#line 1350 "TransitionEffects.c" +#line 1480 "TransitionEffects.c" } -gboolean transition_clock_is_in_progress (TransitionClock* self) { +gboolean +transition_clock_is_in_progress (TransitionClock* self) +{ gboolean result = FALSE; gboolean _tmp0_ = FALSE; gboolean _tmp1_ = FALSE; @@ -1363,21 +1495,21 @@ gboolean transition_clock_is_in_progress (TransitionClock* self) { _tmp2_ = self->priv->cancelled; #line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (!_tmp2_) { -#line 1365 "TransitionEffects.c" +#line 1497 "TransitionEffects.c" SpitTransitionsMotion* _tmp3_; #line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp3_ = self->priv->motion; #line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp1_ = _tmp3_ != NULL; -#line 1371 "TransitionEffects.c" +#line 1503 "TransitionEffects.c" } else { #line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp1_ = FALSE; -#line 1375 "TransitionEffects.c" +#line 1507 "TransitionEffects.c" } #line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (_tmp1_) { -#line 1379 "TransitionEffects.c" +#line 1511 "TransitionEffects.c" gint _tmp4_; SpitTransitionsMotion* _tmp5_; gint _tmp6_; @@ -1392,47 +1524,48 @@ gboolean transition_clock_is_in_progress (TransitionClock* self) { _tmp7_ = _tmp6_; #line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp0_ = _tmp4_ < _tmp7_; -#line 1394 "TransitionEffects.c" +#line 1526 "TransitionEffects.c" } else { #line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp0_ = FALSE; -#line 1398 "TransitionEffects.c" +#line 1530 "TransitionEffects.c" } #line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" result = _tmp0_; #line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 1404 "TransitionEffects.c" +#line 1536 "TransitionEffects.c" } -static gboolean _transition_clock_tick_gsource_func (gpointer self) { +static gboolean +_transition_clock_tick_gsource_func (gpointer self) +{ gboolean result; result = transition_clock_tick ((TransitionClock*) self); #line 173 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 1413 "TransitionEffects.c" +#line 1547 "TransitionEffects.c" } -void transition_clock_start (TransitionClock* self, SpitTransitionsVisuals* visuals, SpitTransitionsDirection direction, gint duration_msec, TransitionClockRepaintCallback repaint, void* repaint_target) { +void +transition_clock_start (TransitionClock* self, + SpitTransitionsVisuals* visuals, + SpitTransitionsDirection direction, + gint duration_msec, + TransitionClockRepaintCallback repaint, + void* repaint_target) +{ gint _tmp0_; SpitTransitionsVisuals* _tmp1_; - SpitTransitionsVisuals* _tmp2_; - TransitionClockRepaintCallback _tmp3_; - void* _tmp3__target; - SpitTransitionsDirection _tmp4_; - gint _tmp5_; - gint _tmp6_; - SpitTransitionsMotion* _tmp7_; - SpitTransitionsEffect* _tmp8_; - SpitTransitionsVisuals* _tmp9_; - SpitTransitionsMotion* _tmp10_; - gulong _tmp11_; - SpitTransitionsMotion* _tmp12_; - gint _tmp13_; - gint _tmp14_; - guint _tmp15_; + gint _tmp2_; + SpitTransitionsMotion* _tmp3_; + SpitTransitionsEffect* _tmp4_; + SpitTransitionsMotion* _tmp5_; + SpitTransitionsMotion* _tmp6_; + gint _tmp7_; + gint _tmp8_; #line 155 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_if_fail (IS_TRANSITION_CLOCK (self)); #line 155 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -1445,63 +1578,49 @@ void transition_clock_start (TransitionClock* self, SpitTransitionsVisuals* visu if (_tmp0_ == 0) { #line 161 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return; -#line 1447 "TransitionEffects.c" +#line 1580 "TransitionEffects.c" } #line 163 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = visuals; -#line 163 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); + _tmp1_ = _g_object_ref0 (visuals); #line 163 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (self->priv->visuals); #line 163 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->visuals = _tmp2_; -#line 164 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3_ = repaint; -#line 164 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3__target = repaint_target; + self->priv->visuals = _tmp1_; #line 164 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->repaint = _tmp3_; + self->priv->repaint = repaint; #line 164 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->repaint_target = _tmp3__target; + self->priv->repaint_target = repaint_target; #line 165 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = direction; + _tmp2_ = self->priv->desired_fps; #line 165 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp5_ = self->priv->desired_fps; -#line 165 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp6_ = duration_msec; -#line 165 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp7_ = spit_transitions_motion_new (_tmp4_, _tmp5_, _tmp6_); + _tmp3_ = spit_transitions_motion_new (direction, _tmp2_, duration_msec); #line 165 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (self->priv->motion); #line 165 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->motion = _tmp7_; + self->priv->motion = _tmp3_; #line 167 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp8_ = self->priv->effect; + _tmp4_ = self->priv->effect; #line 167 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp9_ = visuals; + _tmp5_ = self->priv->motion; #line 167 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp10_ = self->priv->motion; -#line 167 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - spit_transitions_effect_start (_tmp8_, _tmp9_, _tmp10_); -#line 172 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp11_ = now_ms (); + spit_transitions_effect_start (_tmp4_, visuals, _tmp5_); #line 172 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->time_started = _tmp11_; + self->priv->time_started = now_ms (); #line 173 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp12_ = self->priv->motion; + _tmp6_ = self->priv->motion; #line 173 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp13_ = spit_transitions_motion_get_tick_msec (_tmp12_); + _tmp7_ = spit_transitions_motion_get_tick_msec (_tmp6_); #line 173 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp14_ = _tmp13_; + _tmp8_ = _tmp7_; #line 173 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp15_ = g_timeout_add_full (G_PRIORITY_HIGH, (guint) _tmp14_, _transition_clock_tick_gsource_func, transition_clock_ref (self), transition_clock_unref); -#line 173 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->timer_id = _tmp15_; -#line 1499 "TransitionEffects.c" + self->priv->timer_id = g_timeout_add_full (G_PRIORITY_HIGH, (guint) _tmp8_, _transition_clock_tick_gsource_func, transition_clock_ref (self), transition_clock_unref); +#line 1616 "TransitionEffects.c" } -static void transition_clock_reset (TransitionClock* self) { +static void +transition_clock_reset (TransitionClock* self) +{ #line 177 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_if_fail (IS_TRANSITION_CLOCK (self)); #line 178 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -1526,11 +1645,13 @@ static void transition_clock_reset (TransitionClock* self) { self->priv->current_fps = 0; #line 185 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" self->priv->cancelled = FALSE; -#line 1528 "TransitionEffects.c" +#line 1647 "TransitionEffects.c" } -static void transition_clock_cancel_timer (TransitionClock* self) { +static void +transition_clock_cancel_timer (TransitionClock* self) +{ guint _tmp0_; #line 188 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_if_fail (IS_TRANSITION_CLOCK (self)); @@ -1538,7 +1659,7 @@ static void transition_clock_cancel_timer (TransitionClock* self) { _tmp0_ = self->priv->timer_id; #line 189 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (_tmp0_ != ((guint) 0)) { -#line 1540 "TransitionEffects.c" +#line 1661 "TransitionEffects.c" guint _tmp1_; #line 190 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp1_ = self->priv->timer_id; @@ -1546,25 +1667,26 @@ static void transition_clock_cancel_timer (TransitionClock* self) { g_source_remove (_tmp1_); #line 191 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" self->priv->timer_id = (guint) 0; -#line 1548 "TransitionEffects.c" +#line 1669 "TransitionEffects.c" } } -static gboolean transition_clock_is_fps_ok (TransitionClock* self) { +static gboolean +transition_clock_is_fps_ok (TransitionClock* self) +{ gboolean result = FALSE; gulong _tmp0_; gint _tmp1_; gdouble elapsed_msec = 0.0; gulong _tmp2_; - gulong _tmp3_; - gdouble _tmp4_; - gint _tmp5_; - gdouble _tmp6_; + gdouble _tmp3_; + gint _tmp4_; + gdouble _tmp5_; + gint _tmp6_; gint _tmp7_; - gint _tmp8_; + gint _tmp12_; gint _tmp13_; - gint _tmp14_; #line 196 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_val_if_fail (IS_TRANSITION_CLOCK (self), FALSE); #line 197 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -1579,67 +1701,67 @@ static gboolean transition_clock_is_fps_ok (TransitionClock* self) { result = TRUE; #line 200 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 1581 "TransitionEffects.c" +#line 1703 "TransitionEffects.c" } #line 202 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = now_ms (); -#line 202 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3_ = self->priv->time_started; + _tmp2_ = self->priv->time_started; #line 202 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - elapsed_msec = (gdouble) (_tmp2_ - _tmp3_); + elapsed_msec = (gdouble) (now_ms () - _tmp2_); #line 203 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = elapsed_msec; + _tmp3_ = elapsed_msec; #line 203 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp4_ <= 0.0) { + if (_tmp3_ <= 0.0) { #line 204 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" result = TRUE; #line 204 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 1597 "TransitionEffects.c" +#line 1717 "TransitionEffects.c" } #line 206 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp5_ = self->priv->frame_number; + _tmp4_ = self->priv->frame_number; #line 206 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp6_ = elapsed_msec; + _tmp5_ = elapsed_msec; #line 206 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->current_fps = (gint) ((_tmp5_ * 1000.0) / _tmp6_); + self->priv->current_fps = (gint) ((_tmp4_ * 1000.0) / _tmp5_); #line 207 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp7_ = self->priv->current_fps; + _tmp6_ = self->priv->current_fps; #line 207 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp8_ = self->priv->min_fps; + _tmp7_ = self->priv->min_fps; #line 207 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp7_ < _tmp8_) { -#line 1611 "TransitionEffects.c" + if (_tmp6_ < _tmp7_) { +#line 1731 "TransitionEffects.c" + gint _tmp8_; gint _tmp9_; - gint _tmp10_; - gdouble _tmp11_; - gint _tmp12_; + gdouble _tmp10_; + gint _tmp11_; #line 208 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp9_ = self->priv->current_fps; + _tmp8_ = self->priv->current_fps; #line 208 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp10_ = self->priv->min_fps; + _tmp9_ = self->priv->min_fps; #line 208 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp11_ = elapsed_msec; + _tmp10_ = elapsed_msec; #line 208 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp12_ = self->priv->frame_number; + _tmp11_ = self->priv->frame_number; #line 208 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_debug ("TransitionEffects.vala:208: Transition rate of %dfps below minimum of " \ -"%dfps (elapsed=%lf frames=%d)", _tmp9_, _tmp10_, _tmp11_, _tmp12_); -#line 1626 "TransitionEffects.c" +"%dfps (elapsed=%lf frames=%d)", _tmp8_, _tmp9_, _tmp10_, _tmp11_); +#line 1746 "TransitionEffects.c" } #line 212 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp13_ = self->priv->current_fps; + _tmp12_ = self->priv->current_fps; #line 212 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp14_ = self->priv->min_fps; + _tmp13_ = self->priv->min_fps; #line 212 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = _tmp13_ >= _tmp14_; + result = _tmp12_ >= _tmp13_; #line 212 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 1636 "TransitionEffects.c" +#line 1756 "TransitionEffects.c" } -void transition_clock_cancel (TransitionClock* self) { +void +transition_clock_cancel (TransitionClock* self) +{ SpitTransitionsEffect* _tmp0_; TransitionClockRepaintCallback _tmp1_; void* _tmp1__target; @@ -1659,56 +1781,51 @@ void transition_clock_cancel (TransitionClock* self) { _tmp1__target = self->priv->repaint_target; #line 222 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp1_ (_tmp1__target); -#line 1660 "TransitionEffects.c" +#line 1782 "TransitionEffects.c" } -gboolean transition_clock_paint (TransitionClock* self, cairo_t* ctx, gint width, gint height) { +gboolean +transition_clock_paint (TransitionClock* self, + cairo_t* ctx, + gint width, + gint height) +{ gboolean result = FALSE; - gboolean _tmp0_; - OpTimer* _tmp1_; - cairo_t* _tmp2_; - SpitTransitionsEffect* _tmp3_; - gboolean _tmp4_; - SpitTransitionsEffect* _tmp26_; - SpitTransitionsVisuals* _tmp27_; - SpitTransitionsMotion* _tmp28_; - cairo_t* _tmp29_; - gint _tmp30_; - gint _tmp31_; - gint _tmp32_; - cairo_t* _tmp33_; - OpTimer* _tmp34_; + OpTimer* _tmp0_; + SpitTransitionsEffect* _tmp1_; + SpitTransitionsEffect* _tmp18_; + SpitTransitionsVisuals* _tmp19_; + SpitTransitionsMotion* _tmp20_; + gint _tmp21_; + OpTimer* _tmp22_; #line 227 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_val_if_fail (IS_TRANSITION_CLOCK (self), FALSE); #line 227 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_val_if_fail (ctx != NULL, FALSE); #line 228 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = transition_clock_is_in_progress (self); -#line 228 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (!_tmp0_) { + if (!transition_clock_is_in_progress (self)) { #line 229 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" result = FALSE; #line 229 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 1692 "TransitionEffects.c" +#line 1810 "TransitionEffects.c" } #line 231 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = self->priv->paint_timer; + _tmp0_ = self->priv->paint_timer; #line 231 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - op_timer_start (_tmp1_); -#line 233 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = ctx; + op_timer_start (_tmp0_); #line 233 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - cairo_save (_tmp2_); + cairo_save (ctx); #line 235 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3_ = self->priv->effect; + _tmp1_ = self->priv->effect; #line 235 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = spit_transitions_effect_needs_clear_background (_tmp3_); -#line 235 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp4_) { -#line 1708 "TransitionEffects.c" - cairo_t* _tmp5_; + if (spit_transitions_effect_needs_clear_background (_tmp1_)) { +#line 1822 "TransitionEffects.c" + SpitTransitionsVisuals* _tmp2_; + GdkRGBA _tmp3_ = {0}; + GdkRGBA _tmp4_; + gdouble _tmp5_; SpitTransitionsVisuals* _tmp6_; GdkRGBA _tmp7_ = {0}; GdkRGBA _tmp8_; @@ -1721,16 +1838,14 @@ gboolean transition_clock_paint (TransitionClock* self, cairo_t* ctx, gint width GdkRGBA _tmp15_ = {0}; GdkRGBA _tmp16_; gdouble _tmp17_; - SpitTransitionsVisuals* _tmp18_; - GdkRGBA _tmp19_ = {0}; - GdkRGBA _tmp20_; - gdouble _tmp21_; - cairo_t* _tmp22_; - gint _tmp23_; - gint _tmp24_; - cairo_t* _tmp25_; #line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp5_ = ctx; + _tmp2_ = self->priv->visuals; +#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" + spit_transitions_visuals_get_bg_color (_tmp2_, &_tmp3_); +#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" + _tmp4_ = _tmp3_; +#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" + _tmp5_ = _tmp4_.red; #line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp6_ = self->priv->visuals; #line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -1738,7 +1853,7 @@ gboolean transition_clock_paint (TransitionClock* self, cairo_t* ctx, gint width #line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp8_ = _tmp7_; #line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp9_ = _tmp8_.red; + _tmp9_ = _tmp8_.green; #line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp10_ = self->priv->visuals; #line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -1746,7 +1861,7 @@ gboolean transition_clock_paint (TransitionClock* self, cairo_t* ctx, gint width #line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp12_ = _tmp11_; #line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp13_ = _tmp12_.green; + _tmp13_ = _tmp12_.blue; #line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp14_ = self->priv->visuals; #line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -1754,241 +1869,238 @@ gboolean transition_clock_paint (TransitionClock* self, cairo_t* ctx, gint width #line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp16_ = _tmp15_; #line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp17_ = _tmp16_.blue; -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp18_ = self->priv->visuals; + _tmp17_ = _tmp16_.alpha; #line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - spit_transitions_visuals_get_bg_color (_tmp18_, &_tmp19_); -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp20_ = _tmp19_; -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp21_ = _tmp20_.alpha; -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - cairo_set_source_rgba (_tmp5_, _tmp9_, _tmp13_, _tmp17_, _tmp21_); -#line 238 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp22_ = ctx; + cairo_set_source_rgba (ctx, _tmp5_, _tmp9_, _tmp13_, _tmp17_); #line 238 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp23_ = width; -#line 238 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp24_ = height; -#line 238 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - cairo_rectangle (_tmp22_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp23_, (gdouble) _tmp24_); + cairo_rectangle (ctx, (gdouble) 0, (gdouble) 0, (gdouble) width, (gdouble) height); #line 239 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp25_ = ctx; -#line 239 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - cairo_fill (_tmp25_); -#line 1778 "TransitionEffects.c" + cairo_fill (ctx); +#line 1877 "TransitionEffects.c" } #line 242 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp26_ = self->priv->effect; -#line 242 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp27_ = self->priv->visuals; + _tmp18_ = self->priv->effect; #line 242 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp28_ = self->priv->motion; + _tmp19_ = self->priv->visuals; #line 242 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp29_ = ctx; + _tmp20_ = self->priv->motion; #line 242 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp30_ = width; + _tmp21_ = self->priv->frame_number; #line 242 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp31_ = height; -#line 242 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp32_ = self->priv->frame_number; -#line 242 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - spit_transitions_effect_paint (_tmp26_, _tmp27_, _tmp28_, _tmp29_, _tmp30_, _tmp31_, _tmp32_); -#line 244 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp33_ = ctx; + spit_transitions_effect_paint (_tmp18_, _tmp19_, _tmp20_, ctx, width, height, _tmp21_); #line 244 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - cairo_restore (_tmp33_); + cairo_restore (ctx); #line 246 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp34_ = self->priv->paint_timer; + _tmp22_ = self->priv->paint_timer; #line 246 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - op_timer_stop (_tmp34_); + op_timer_stop (_tmp22_); #line 248 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" result = TRUE; #line 248 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 1808 "TransitionEffects.c" +#line 1899 "TransitionEffects.c" } -static gboolean transition_clock_tick (TransitionClock* self) { +static gboolean +transition_clock_tick (TransitionClock* self) +{ gboolean result = FALSE; - gboolean _tmp0_; - TransitionClockRepaintCallback _tmp1_; - void* _tmp1__target; - gboolean _tmp2_; + TransitionClockRepaintCallback _tmp0_; + void* _tmp0__target; + gint _tmp1_; + SpitTransitionsMotion* _tmp2_; gint _tmp3_; - SpitTransitionsMotion* _tmp4_; - gint _tmp5_; - gint _tmp6_; + gint _tmp4_; #line 251 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_val_if_fail (IS_TRANSITION_CLOCK (self), FALSE); #line 252 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = transition_clock_is_fps_ok (self); -#line 252 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (!_tmp0_) { + if (!transition_clock_is_fps_ok (self)) { #line 253 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_debug ("TransitionEffects.vala:253: Cancelling transition: below minimum fps"); #line 254 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" transition_clock_cancel (self); -#line 1832 "TransitionEffects.c" +#line 1921 "TransitionEffects.c" } #line 259 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = self->priv->repaint; + _tmp0_ = self->priv->repaint; #line 259 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1__target = self->priv->repaint_target; + _tmp0__target = self->priv->repaint_target; #line 259 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ (_tmp1__target); + _tmp0_ (_tmp0__target); #line 261 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = transition_clock_is_in_progress (self); -#line 261 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (!_tmp2_) { + if (!transition_clock_is_in_progress (self)) { #line 262 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" transition_clock_cancel_timer (self); #line 264 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" result = FALSE; #line 264 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 1850 "TransitionEffects.c" +#line 1937 "TransitionEffects.c" } #line 268 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3_ = self->priv->frame_number; + _tmp1_ = self->priv->frame_number; #line 268 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = self->priv->motion; + _tmp2_ = self->priv->motion; #line 268 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp5_ = spit_transitions_motion_get_total_frames (_tmp4_); + _tmp3_ = spit_transitions_motion_get_total_frames (_tmp2_); #line 268 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp6_ = _tmp5_; + _tmp4_ = _tmp3_; #line 268 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp3_ < _tmp6_) { -#line 1862 "TransitionEffects.c" - SpitTransitionsEffect* _tmp7_; - SpitTransitionsVisuals* _tmp8_; - SpitTransitionsMotion* _tmp9_; - gint _tmp10_; - gint _tmp11_; + if (_tmp1_ < _tmp4_) { +#line 1949 "TransitionEffects.c" + SpitTransitionsEffect* _tmp5_; + SpitTransitionsVisuals* _tmp6_; + SpitTransitionsMotion* _tmp7_; + gint _tmp8_; + gint _tmp9_; #line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp7_ = self->priv->effect; + _tmp5_ = self->priv->effect; #line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp8_ = self->priv->visuals; + _tmp6_ = self->priv->visuals; #line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp9_ = self->priv->motion; + _tmp7_ = self->priv->motion; #line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp10_ = self->priv->frame_number; + _tmp8_ = self->priv->frame_number; #line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->frame_number = _tmp10_ + 1; + self->priv->frame_number = _tmp8_ + 1; #line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp11_ = self->priv->frame_number; + _tmp9_ = self->priv->frame_number; #line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - spit_transitions_effect_advance (_tmp7_, _tmp8_, _tmp9_, _tmp11_); -#line 1882 "TransitionEffects.c" + spit_transitions_effect_advance (_tmp5_, _tmp6_, _tmp7_, _tmp9_); +#line 1969 "TransitionEffects.c" } #line 271 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" result = TRUE; #line 271 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 1888 "TransitionEffects.c" +#line 1975 "TransitionEffects.c" } -static void value_transition_clock_init (GValue* value) { +static void +value_transition_clock_init (GValue* value) +{ #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" value->data[0].v_pointer = NULL; -#line 1895 "TransitionEffects.c" +#line 1984 "TransitionEffects.c" } -static void value_transition_clock_free_value (GValue* value) { +static void +value_transition_clock_free_value (GValue* value) +{ #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (value->data[0].v_pointer) { #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" transition_clock_unref (value->data[0].v_pointer); -#line 1904 "TransitionEffects.c" +#line 1995 "TransitionEffects.c" } } -static void value_transition_clock_copy_value (const GValue* src_value, GValue* dest_value) { +static void +value_transition_clock_copy_value (const GValue* src_value, + GValue* dest_value) +{ #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (src_value->data[0].v_pointer) { #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" dest_value->data[0].v_pointer = transition_clock_ref (src_value->data[0].v_pointer); -#line 1914 "TransitionEffects.c" +#line 2008 "TransitionEffects.c" } else { #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" dest_value->data[0].v_pointer = NULL; -#line 1918 "TransitionEffects.c" +#line 2012 "TransitionEffects.c" } } -static gpointer value_transition_clock_peek_pointer (const GValue* value) { +static gpointer +value_transition_clock_peek_pointer (const GValue* value) +{ #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return value->data[0].v_pointer; -#line 1926 "TransitionEffects.c" +#line 2022 "TransitionEffects.c" } -static gchar* value_transition_clock_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +static gchar* +value_transition_clock_collect_value (GValue* value, + guint n_collect_values, + GTypeCValue* collect_values, + guint collect_flags) +{ #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (collect_values[0].v_pointer) { -#line 1933 "TransitionEffects.c" +#line 2034 "TransitionEffects.c" TransitionClock * object; object = collect_values[0].v_pointer; #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (object->parent_instance.g_class == NULL) { #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1940 "TransitionEffects.c" +#line 2041 "TransitionEffects.c" } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1944 "TransitionEffects.c" +#line 2045 "TransitionEffects.c" } #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" value->data[0].v_pointer = transition_clock_ref (object); -#line 1948 "TransitionEffects.c" +#line 2049 "TransitionEffects.c" } else { #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" value->data[0].v_pointer = NULL; -#line 1952 "TransitionEffects.c" +#line 2053 "TransitionEffects.c" } #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return NULL; -#line 1956 "TransitionEffects.c" +#line 2057 "TransitionEffects.c" } -static gchar* value_transition_clock_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +static gchar* +value_transition_clock_lcopy_value (const GValue* value, + guint n_collect_values, + GTypeCValue* collect_values, + guint collect_flags) +{ TransitionClock ** object_p; object_p = collect_values[0].v_pointer; #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (!object_p) { #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1967 "TransitionEffects.c" +#line 2073 "TransitionEffects.c" } #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (!value->data[0].v_pointer) { #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" *object_p = NULL; -#line 1973 "TransitionEffects.c" +#line 2079 "TransitionEffects.c" } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" *object_p = value->data[0].v_pointer; -#line 1977 "TransitionEffects.c" +#line 2083 "TransitionEffects.c" } else { #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" *object_p = transition_clock_ref (value->data[0].v_pointer); -#line 1981 "TransitionEffects.c" +#line 2087 "TransitionEffects.c" } #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return NULL; -#line 1985 "TransitionEffects.c" +#line 2091 "TransitionEffects.c" } -GParamSpec* param_spec_transition_clock (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) { +GParamSpec* +param_spec_transition_clock (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags) +{ ParamSpecTransitionClock* spec; #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_val_if_fail (g_type_is_a (object_type, TYPE_TRANSITION_CLOCK), NULL); @@ -1998,20 +2110,25 @@ GParamSpec* param_spec_transition_clock (const gchar* name, const gchar* nick, c G_PARAM_SPEC (spec)->value_type = object_type; #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return G_PARAM_SPEC (spec); -#line 1999 "TransitionEffects.c" +#line 2111 "TransitionEffects.c" } -gpointer value_get_transition_clock (const GValue* value) { +gpointer +value_get_transition_clock (const GValue* value) +{ #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSITION_CLOCK), NULL); #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return value->data[0].v_pointer; -#line 2008 "TransitionEffects.c" +#line 2122 "TransitionEffects.c" } -void value_set_transition_clock (GValue* value, gpointer v_object) { +void +value_set_transition_clock (GValue* value, + gpointer v_object) +{ TransitionClock * old; #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSITION_CLOCK)); @@ -2027,22 +2144,25 @@ void value_set_transition_clock (GValue* value, gpointer v_object) { value->data[0].v_pointer = v_object; #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" transition_clock_ref (value->data[0].v_pointer); -#line 2028 "TransitionEffects.c" +#line 2145 "TransitionEffects.c" } else { #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" value->data[0].v_pointer = NULL; -#line 2032 "TransitionEffects.c" +#line 2149 "TransitionEffects.c" } #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (old) { #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" transition_clock_unref (old); -#line 2038 "TransitionEffects.c" +#line 2155 "TransitionEffects.c" } } -void value_take_transition_clock (GValue* value, gpointer v_object) { +void +value_take_transition_clock (GValue* value, + gpointer v_object) +{ TransitionClock * old; #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSITION_CLOCK)); @@ -2056,33 +2176,37 @@ void value_take_transition_clock (GValue* value, gpointer v_object) { g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" value->data[0].v_pointer = v_object; -#line 2057 "TransitionEffects.c" +#line 2177 "TransitionEffects.c" } else { #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" value->data[0].v_pointer = NULL; -#line 2061 "TransitionEffects.c" +#line 2181 "TransitionEffects.c" } #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (old) { #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" transition_clock_unref (old); -#line 2067 "TransitionEffects.c" +#line 2187 "TransitionEffects.c" } } -static void transition_clock_class_init (TransitionClockClass * klass) { +static void +transition_clock_class_init (TransitionClockClass * klass) +{ #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" transition_clock_parent_class = g_type_class_peek_parent (klass); #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" ((TransitionClockClass *) klass)->finalize = transition_clock_finalize; #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_type_class_add_private (klass, sizeof (TransitionClockPrivate)); -#line 2079 "TransitionEffects.c" +#line 2201 "TransitionEffects.c" } -static void transition_clock_instance_init (TransitionClock * self) { +static void +transition_clock_instance_init (TransitionClock * self) +{ #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" self->priv = TRANSITION_CLOCK_GET_PRIVATE (self); #line 126 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -2105,11 +2229,13 @@ static void transition_clock_instance_init (TransitionClock * self) { self->priv->cancelled = FALSE; #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" self->ref_count = 1; -#line 2106 "TransitionEffects.c" +#line 2230 "TransitionEffects.c" } -static void transition_clock_finalize (TransitionClock * obj) { +static void +transition_clock_finalize (TransitionClock * obj) +{ TransitionClock * self; gint _tmp0_ = 0; SpitTransitionsMotion* _tmp1_; @@ -2129,7 +2255,7 @@ static void transition_clock_finalize (TransitionClock * obj) { _tmp1_ = self->priv->motion; #line 148 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (_tmp1_ != NULL) { -#line 2130 "TransitionEffects.c" +#line 2256 "TransitionEffects.c" SpitTransitionsMotion* _tmp2_; gint _tmp3_; gint _tmp4_; @@ -2141,11 +2267,11 @@ static void transition_clock_finalize (TransitionClock * obj) { _tmp4_ = _tmp3_; #line 148 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp0_ = _tmp4_; -#line 2142 "TransitionEffects.c" +#line 2268 "TransitionEffects.c" } else { #line 148 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp0_ = 0; -#line 2146 "TransitionEffects.c" +#line 2272 "TransitionEffects.c" } #line 147 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _tmp5_ = self->priv->paint_timer; @@ -2174,11 +2300,13 @@ static void transition_clock_finalize (TransitionClock * obj) { _g_object_unref0 (self->priv->visuals); #line 129 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" _g_object_unref0 (self->priv->motion); -#line 2174 "TransitionEffects.c" +#line 2300 "TransitionEffects.c" } -GType transition_clock_get_type (void) { +GType +transition_clock_get_type (void) +{ static volatile gsize transition_clock_type_id__volatile = 0; if (g_once_init_enter (&transition_clock_type_id__volatile)) { static const GTypeValueTable g_define_type_value_table = { value_transition_clock_init, value_transition_clock_free_value, value_transition_clock_copy_value, value_transition_clock_peek_pointer, "p", value_transition_clock_collect_value, "p", value_transition_clock_lcopy_value }; @@ -2192,18 +2320,22 @@ GType transition_clock_get_type (void) { } -gpointer transition_clock_ref (gpointer instance) { +gpointer +transition_clock_ref (gpointer instance) +{ TransitionClock * self; self = instance; #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_atomic_int_inc (&self->ref_count); #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return instance; -#line 2199 "TransitionEffects.c" +#line 2329 "TransitionEffects.c" } -void transition_clock_unref (gpointer instance) { +void +transition_clock_unref (gpointer instance) +{ TransitionClock * self; self = instance; #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -2212,12 +2344,16 @@ void transition_clock_unref (gpointer instance) { TRANSITION_CLOCK_GET_CLASS (self)->finalize (self); #line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_type_free_instance ((GTypeInstance *) self); -#line 2212 "TransitionEffects.c" +#line 2344 "TransitionEffects.c" } } -static gint null_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base, gint min_host_version, gint max_host_version) { +static gint +null_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base, + gint min_host_version, + gint max_host_version) +{ NullTransitionDescriptor * self; gint result = 0; #line 278 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -2226,11 +2362,13 @@ static gint null_transition_descriptor_real_get_pluggable_interface (SpitPluggab result = SPIT_TRANSITIONS_CURRENT_INTERFACE; #line 279 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 2226 "TransitionEffects.c" +#line 2362 "TransitionEffects.c" } -static const gchar* null_transition_descriptor_real_get_id (SpitPluggable* base) { +static const gchar* +null_transition_descriptor_real_get_id (SpitPluggable* base) +{ NullTransitionDescriptor * self; const gchar* result = NULL; #line 282 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -2239,11 +2377,13 @@ static const gchar* null_transition_descriptor_real_get_id (SpitPluggable* base) result = NULL_TRANSITION_DESCRIPTOR_EFFECT_ID; #line 283 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 2239 "TransitionEffects.c" +#line 2377 "TransitionEffects.c" } -static const gchar* null_transition_descriptor_real_get_pluggable_name (SpitPluggable* base) { +static const gchar* +null_transition_descriptor_real_get_pluggable_name (SpitPluggable* base) +{ NullTransitionDescriptor * self; const gchar* result = NULL; #line 286 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -2252,29 +2392,38 @@ static const gchar* null_transition_descriptor_real_get_pluggable_name (SpitPlug result = _ ("None"); #line 287 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 2252 "TransitionEffects.c" +#line 2392 "TransitionEffects.c" } -static void null_transition_descriptor_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) { +static void +null_transition_descriptor_real_get_info (SpitPluggable* base, + SpitPluggableInfo* info) +{ NullTransitionDescriptor * self; #line 290 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptor); #line 290 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_if_fail (info != NULL); -#line 2262 "TransitionEffects.c" +#line 2405 "TransitionEffects.c" } -static void null_transition_descriptor_real_activation (SpitPluggable* base, gboolean enabled) { +static void +null_transition_descriptor_real_activation (SpitPluggable* base, + gboolean enabled) +{ NullTransitionDescriptor * self; #line 293 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptor); -#line 2270 "TransitionEffects.c" +#line 2416 "TransitionEffects.c" } -static SpitTransitionsEffect* null_transition_descriptor_real_create (SpitTransitionsDescriptor* base, SpitHostInterface* host) { +static SpitTransitionsEffect* +null_transition_descriptor_real_create (SpitTransitionsDescriptor* base, + SpitHostInterface* host) +{ NullTransitionDescriptor * self; SpitTransitionsEffect* result = NULL; NullEffect* _tmp0_; @@ -2288,35 +2437,43 @@ static SpitTransitionsEffect* null_transition_descriptor_real_create (SpitTransi result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); #line 297 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 2288 "TransitionEffects.c" +#line 2437 "TransitionEffects.c" } -NullTransitionDescriptor* null_transition_descriptor_construct (GType object_type) { +NullTransitionDescriptor* +null_transition_descriptor_construct (GType object_type) +{ NullTransitionDescriptor * self = NULL; #line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" self = (NullTransitionDescriptor*) g_object_new (object_type, NULL); #line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return self; -#line 2298 "TransitionEffects.c" +#line 2449 "TransitionEffects.c" } -NullTransitionDescriptor* null_transition_descriptor_new (void) { +NullTransitionDescriptor* +null_transition_descriptor_new (void) +{ #line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return null_transition_descriptor_construct (TYPE_NULL_TRANSITION_DESCRIPTOR); -#line 2305 "TransitionEffects.c" +#line 2458 "TransitionEffects.c" } -static void null_transition_descriptor_class_init (NullTransitionDescriptorClass * klass) { +static void +null_transition_descriptor_class_init (NullTransitionDescriptorClass * klass) +{ #line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" null_transition_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 2312 "TransitionEffects.c" +#line 2467 "TransitionEffects.c" } -static void null_transition_descriptor_spit_pluggable_interface_init (SpitPluggableIface * iface) { +static void +null_transition_descriptor_spit_pluggable_interface_init (SpitPluggableIface * iface) +{ #line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" null_transition_descriptor_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); #line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -2329,24 +2486,30 @@ static void null_transition_descriptor_spit_pluggable_interface_init (SpitPlugga iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) null_transition_descriptor_real_get_info; #line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" iface->activation = (void (*) (SpitPluggable *, gboolean)) null_transition_descriptor_real_activation; -#line 2329 "TransitionEffects.c" +#line 2486 "TransitionEffects.c" } -static void null_transition_descriptor_spit_transitions_descriptor_interface_init (SpitTransitionsDescriptorIface * iface) { +static void +null_transition_descriptor_spit_transitions_descriptor_interface_init (SpitTransitionsDescriptorIface * iface) +{ #line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" null_transition_descriptor_spit_transitions_descriptor_parent_iface = g_type_interface_peek_parent (iface); #line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" iface->create = (SpitTransitionsEffect* (*) (SpitTransitionsDescriptor *, SpitHostInterface*)) null_transition_descriptor_real_create; -#line 2338 "TransitionEffects.c" +#line 2497 "TransitionEffects.c" } -static void null_transition_descriptor_instance_init (NullTransitionDescriptor * self) { +static void +null_transition_descriptor_instance_init (NullTransitionDescriptor * self) +{ } -GType null_transition_descriptor_get_type (void) { +GType +null_transition_descriptor_get_type (void) +{ static volatile gsize null_transition_descriptor_type_id__volatile = 0; if (g_once_init_enter (&null_transition_descriptor_type_id__volatile)) { static const GTypeInfo g_define_type_info = { sizeof (NullTransitionDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) null_transition_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NullTransitionDescriptor), 0, (GInstanceInitFunc) null_transition_descriptor_instance_init, NULL }; @@ -2362,24 +2525,32 @@ GType null_transition_descriptor_get_type (void) { } -NullEffect* null_effect_construct (GType object_type) { +NullEffect* +null_effect_construct (GType object_type) +{ NullEffect * self = NULL; #line 302 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" self = (NullEffect*) g_object_new (object_type, NULL); #line 302 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return self; -#line 2368 "TransitionEffects.c" +#line 2533 "TransitionEffects.c" } -NullEffect* null_effect_new (void) { +NullEffect* +null_effect_new (void) +{ #line 302 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return null_effect_construct (TYPE_NULL_EFFECT); -#line 2375 "TransitionEffects.c" +#line 2542 "TransitionEffects.c" } -static void null_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired_fps, gint* min_fps) { +static void +null_effect_real_get_fps (SpitTransitionsEffect* base, + gint* desired_fps, + gint* min_fps) +{ NullEffect * self; gint _vala_desired_fps = 0; gint _vala_min_fps = 0; @@ -2393,18 +2564,22 @@ static void null_effect_real_get_fps (SpitTransitionsEffect* base, gint* desired if (desired_fps) { #line 305 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" *desired_fps = _vala_desired_fps; -#line 2393 "TransitionEffects.c" +#line 2564 "TransitionEffects.c" } #line 305 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" if (min_fps) { #line 305 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" *min_fps = _vala_min_fps; -#line 2399 "TransitionEffects.c" +#line 2570 "TransitionEffects.c" } } -static void null_effect_real_start (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion) { +static void +null_effect_real_start (SpitTransitionsEffect* base, + SpitTransitionsVisuals* visuals, + SpitTransitionsMotion* motion) +{ NullEffect * self; #line 310 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_EFFECT, NullEffect); @@ -2412,11 +2587,13 @@ static void null_effect_real_start (SpitTransitionsEffect* base, SpitTransitions g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); #line 310 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 2412 "TransitionEffects.c" +#line 2587 "TransitionEffects.c" } -static gboolean null_effect_real_needs_clear_background (SpitTransitionsEffect* base) { +static gboolean +null_effect_real_needs_clear_background (SpitTransitionsEffect* base) +{ NullEffect * self; gboolean result = FALSE; #line 313 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -2425,11 +2602,19 @@ static gboolean null_effect_real_needs_clear_background (SpitTransitionsEffect* result = FALSE; #line 314 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 2425 "TransitionEffects.c" +#line 2602 "TransitionEffects.c" } -static void null_effect_real_paint (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number) { +static void +null_effect_real_paint (SpitTransitionsEffect* base, + SpitTransitionsVisuals* visuals, + SpitTransitionsMotion* motion, + cairo_t* ctx, + gint width, + gint height, + gint frame_number) +{ NullEffect * self; #line 317 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_EFFECT, NullEffect); @@ -2439,11 +2624,16 @@ static void null_effect_real_paint (SpitTransitionsEffect* base, SpitTransitions g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); #line 317 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_if_fail (ctx != NULL); -#line 2439 "TransitionEffects.c" +#line 2624 "TransitionEffects.c" } -static void null_effect_real_advance (SpitTransitionsEffect* base, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number) { +static void +null_effect_real_advance (SpitTransitionsEffect* base, + SpitTransitionsVisuals* visuals, + SpitTransitionsMotion* motion, + gint frame_number) +{ NullEffect * self; #line 321 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_EFFECT, NullEffect); @@ -2451,26 +2641,32 @@ static void null_effect_real_advance (SpitTransitionsEffect* base, SpitTransitio g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); #line 321 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 2451 "TransitionEffects.c" +#line 2641 "TransitionEffects.c" } -static void null_effect_real_cancel (SpitTransitionsEffect* base) { +static void +null_effect_real_cancel (SpitTransitionsEffect* base) +{ NullEffect * self; #line 324 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_EFFECT, NullEffect); -#line 2459 "TransitionEffects.c" +#line 2651 "TransitionEffects.c" } -static void null_effect_class_init (NullEffectClass * klass) { +static void +null_effect_class_init (NullEffectClass * klass) +{ #line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" null_effect_parent_class = g_type_class_peek_parent (klass); -#line 2466 "TransitionEffects.c" +#line 2660 "TransitionEffects.c" } -static void null_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) { +static void +null_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) +{ #line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" null_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); #line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -2485,15 +2681,19 @@ static void null_effect_spit_transitions_effect_interface_init (SpitTransitionsE iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) null_effect_real_advance; #line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" iface->cancel = (void (*) (SpitTransitionsEffect *)) null_effect_real_cancel; -#line 2485 "TransitionEffects.c" +#line 2681 "TransitionEffects.c" } -static void null_effect_instance_init (NullEffect * self) { +static void +null_effect_instance_init (NullEffect * self) +{ } -GType null_effect_get_type (void) { +GType +null_effect_get_type (void) +{ static volatile gsize null_effect_type_id__volatile = 0; if (g_once_init_enter (&null_effect_type_id__volatile)) { static const GTypeInfo g_define_type_info = { sizeof (NullEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) null_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NullEffect), 0, (GInstanceInitFunc) null_effect_instance_init, NULL }; @@ -2507,7 +2707,11 @@ GType null_effect_get_type (void) { } -static gint random_effect_descriptor_real_get_pluggable_interface (SpitPluggable* base, gint min_host_version, gint max_host_version) { +static gint +random_effect_descriptor_real_get_pluggable_interface (SpitPluggable* base, + gint min_host_version, + gint max_host_version) +{ RandomEffectDescriptor * self; gint result = 0; #line 330 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -2516,11 +2720,13 @@ static gint random_effect_descriptor_real_get_pluggable_interface (SpitPluggable result = SPIT_TRANSITIONS_CURRENT_INTERFACE; #line 331 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 2516 "TransitionEffects.c" +#line 2720 "TransitionEffects.c" } -static const gchar* random_effect_descriptor_real_get_id (SpitPluggable* base) { +static const gchar* +random_effect_descriptor_real_get_id (SpitPluggable* base) +{ RandomEffectDescriptor * self; const gchar* result = NULL; #line 334 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -2529,11 +2735,13 @@ static const gchar* random_effect_descriptor_real_get_id (SpitPluggable* base) { result = RANDOM_EFFECT_DESCRIPTOR_EFFECT_ID; #line 335 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 2529 "TransitionEffects.c" +#line 2735 "TransitionEffects.c" } -static const gchar* random_effect_descriptor_real_get_pluggable_name (SpitPluggable* base) { +static const gchar* +random_effect_descriptor_real_get_pluggable_name (SpitPluggable* base) +{ RandomEffectDescriptor * self; const gchar* result = NULL; #line 338 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -2542,29 +2750,38 @@ static const gchar* random_effect_descriptor_real_get_pluggable_name (SpitPlugga result = _ ("Random"); #line 339 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 2542 "TransitionEffects.c" +#line 2750 "TransitionEffects.c" } -static void random_effect_descriptor_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) { +static void +random_effect_descriptor_real_get_info (SpitPluggable* base, + SpitPluggableInfo* info) +{ RandomEffectDescriptor * self; #line 342 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptor); #line 342 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" g_return_if_fail (info != NULL); -#line 2552 "TransitionEffects.c" +#line 2763 "TransitionEffects.c" } -static void random_effect_descriptor_real_activation (SpitPluggable* base, gboolean enabled) { +static void +random_effect_descriptor_real_activation (SpitPluggable* base, + gboolean enabled) +{ RandomEffectDescriptor * self; #line 345 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptor); -#line 2560 "TransitionEffects.c" +#line 2774 "TransitionEffects.c" } -static SpitTransitionsEffect* random_effect_descriptor_real_create (SpitTransitionsDescriptor* base, SpitHostInterface* host) { +static SpitTransitionsEffect* +random_effect_descriptor_real_create (SpitTransitionsDescriptor* base, + SpitHostInterface* host) +{ RandomEffectDescriptor * self; SpitTransitionsEffect* result = NULL; NullEffect* _tmp0_; @@ -2578,35 +2795,43 @@ static SpitTransitionsEffect* random_effect_descriptor_real_create (SpitTransiti result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); #line 349 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return result; -#line 2578 "TransitionEffects.c" +#line 2795 "TransitionEffects.c" } -RandomEffectDescriptor* random_effect_descriptor_construct (GType object_type) { +RandomEffectDescriptor* +random_effect_descriptor_construct (GType object_type) +{ RandomEffectDescriptor * self = NULL; #line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" self = (RandomEffectDescriptor*) g_object_new (object_type, NULL); #line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return self; -#line 2588 "TransitionEffects.c" +#line 2807 "TransitionEffects.c" } -RandomEffectDescriptor* random_effect_descriptor_new (void) { +RandomEffectDescriptor* +random_effect_descriptor_new (void) +{ #line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" return random_effect_descriptor_construct (TYPE_RANDOM_EFFECT_DESCRIPTOR); -#line 2595 "TransitionEffects.c" +#line 2816 "TransitionEffects.c" } -static void random_effect_descriptor_class_init (RandomEffectDescriptorClass * klass) { +static void +random_effect_descriptor_class_init (RandomEffectDescriptorClass * klass) +{ #line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" random_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 2602 "TransitionEffects.c" +#line 2825 "TransitionEffects.c" } -static void random_effect_descriptor_spit_pluggable_interface_init (SpitPluggableIface * iface) { +static void +random_effect_descriptor_spit_pluggable_interface_init (SpitPluggableIface * iface) +{ #line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" random_effect_descriptor_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); #line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" @@ -2619,24 +2844,30 @@ static void random_effect_descriptor_spit_pluggable_interface_init (SpitPluggabl iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) random_effect_descriptor_real_get_info; #line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" iface->activation = (void (*) (SpitPluggable *, gboolean)) random_effect_descriptor_real_activation; -#line 2619 "TransitionEffects.c" +#line 2844 "TransitionEffects.c" } -static void random_effect_descriptor_spit_transitions_descriptor_interface_init (SpitTransitionsDescriptorIface * iface) { +static void +random_effect_descriptor_spit_transitions_descriptor_interface_init (SpitTransitionsDescriptorIface * iface) +{ #line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" random_effect_descriptor_spit_transitions_descriptor_parent_iface = g_type_interface_peek_parent (iface); #line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" iface->create = (SpitTransitionsEffect* (*) (SpitTransitionsDescriptor *, SpitHostInterface*)) random_effect_descriptor_real_create; -#line 2628 "TransitionEffects.c" +#line 2855 "TransitionEffects.c" } -static void random_effect_descriptor_instance_init (RandomEffectDescriptor * self) { +static void +random_effect_descriptor_instance_init (RandomEffectDescriptor * self) +{ } -GType random_effect_descriptor_get_type (void) { +GType +random_effect_descriptor_get_type (void) +{ static volatile gsize random_effect_descriptor_type_id__volatile = 0; if (g_once_init_enter (&random_effect_descriptor_type_id__volatile)) { static const GTypeInfo g_define_type_info = { sizeof (RandomEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) random_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RandomEffectDescriptor), 0, (GInstanceInitFunc) random_effect_descriptor_instance_init, NULL }; |