From 143bfc9f801c84428074312d661f8e08803df83b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 20 Aug 2016 15:09:31 +0200 Subject: Imported Upstream version 0.23.5 --- .../shotwell-transitions/shotwell-transitions.c | 1086 ++++++++++++++++++++ 1 file changed, 1086 insertions(+) create mode 100644 plugins/shotwell-transitions/shotwell-transitions.c (limited to 'plugins/shotwell-transitions/shotwell-transitions.c') diff --git a/plugins/shotwell-transitions/shotwell-transitions.c b/plugins/shotwell-transitions/shotwell-transitions.c new file mode 100644 index 0000000..7e6d981 --- /dev/null +++ b/plugins/shotwell-transitions/shotwell-transitions.c @@ -0,0 +1,1086 @@ +/* shotwell-transitions.c generated by valac 0.32.1, the Vala compiler + * generated from shotwell-transitions.vala, do not modify */ + +/* Copyright 2016 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include "shotwell-plugin-common.h" + + +#define TYPE_SHOTWELL_TRANSITIONS (shotwell_transitions_get_type ()) +#define SHOTWELL_TRANSITIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions)) +#define SHOTWELL_TRANSITIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitionsClass)) +#define IS_SHOTWELL_TRANSITIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITIONS)) +#define IS_SHOTWELL_TRANSITIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITIONS)) +#define SHOTWELL_TRANSITIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitionsClass)) + +typedef struct _ShotwellTransitions ShotwellTransitions; +typedef struct _ShotwellTransitionsClass ShotwellTransitionsClass; +typedef struct _ShotwellTransitionsPrivate ShotwellTransitionsPrivate; + +#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) +#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) +#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) +#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) +#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) +#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) + +typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; +typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; + +#define TYPE_FADE_EFFECT_DESCRIPTOR (fade_effect_descriptor_get_type ()) +#define FADE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor)) +#define FADE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptorClass)) +#define IS_FADE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FADE_EFFECT_DESCRIPTOR)) +#define IS_FADE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FADE_EFFECT_DESCRIPTOR)) +#define FADE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptorClass)) + +typedef struct _FadeEffectDescriptor FadeEffectDescriptor; +typedef struct _FadeEffectDescriptorClass FadeEffectDescriptorClass; + +#define TYPE_SLIDE_EFFECT_DESCRIPTOR (slide_effect_descriptor_get_type ()) +#define SLIDE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor)) +#define SLIDE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptorClass)) +#define IS_SLIDE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR)) +#define IS_SLIDE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDE_EFFECT_DESCRIPTOR)) +#define SLIDE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptorClass)) + +typedef struct _SlideEffectDescriptor SlideEffectDescriptor; +typedef struct _SlideEffectDescriptorClass SlideEffectDescriptorClass; + +#define TYPE_CRUMBLE_EFFECT_DESCRIPTOR (crumble_effect_descriptor_get_type ()) +#define CRUMBLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor)) +#define CRUMBLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptorClass)) +#define IS_CRUMBLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR)) +#define IS_CRUMBLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CRUMBLE_EFFECT_DESCRIPTOR)) +#define CRUMBLE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptorClass)) + +typedef struct _CrumbleEffectDescriptor CrumbleEffectDescriptor; +typedef struct _CrumbleEffectDescriptorClass CrumbleEffectDescriptorClass; + +#define TYPE_BLINDS_EFFECT_DESCRIPTOR (blinds_effect_descriptor_get_type ()) +#define BLINDS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor)) +#define BLINDS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptorClass)) +#define IS_BLINDS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR)) +#define IS_BLINDS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BLINDS_EFFECT_DESCRIPTOR)) +#define BLINDS_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptorClass)) + +typedef struct _BlindsEffectDescriptor BlindsEffectDescriptor; +typedef struct _BlindsEffectDescriptorClass BlindsEffectDescriptorClass; + +#define TYPE_CIRCLE_EFFECT_DESCRIPTOR (circle_effect_descriptor_get_type ()) +#define CIRCLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor)) +#define CIRCLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptorClass)) +#define IS_CIRCLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR)) +#define IS_CIRCLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLE_EFFECT_DESCRIPTOR)) +#define CIRCLE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptorClass)) + +typedef struct _CircleEffectDescriptor CircleEffectDescriptor; +typedef struct _CircleEffectDescriptorClass CircleEffectDescriptorClass; + +#define TYPE_CIRCLES_EFFECT_DESCRIPTOR (circles_effect_descriptor_get_type ()) +#define CIRCLES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor)) +#define CIRCLES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptorClass)) +#define IS_CIRCLES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR)) +#define IS_CIRCLES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLES_EFFECT_DESCRIPTOR)) +#define CIRCLES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptorClass)) + +typedef struct _CirclesEffectDescriptor CirclesEffectDescriptor; +typedef struct _CirclesEffectDescriptorClass CirclesEffectDescriptorClass; + +#define TYPE_CLOCK_EFFECT_DESCRIPTOR (clock_effect_descriptor_get_type ()) +#define CLOCK_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor)) +#define CLOCK_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptorClass)) +#define IS_CLOCK_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR)) +#define IS_CLOCK_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CLOCK_EFFECT_DESCRIPTOR)) +#define CLOCK_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptorClass)) + +typedef struct _ClockEffectDescriptor ClockEffectDescriptor; +typedef struct _ClockEffectDescriptorClass ClockEffectDescriptorClass; + +#define TYPE_SQUARES_EFFECT_DESCRIPTOR (squares_effect_descriptor_get_type ()) +#define SQUARES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor)) +#define SQUARES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptorClass)) +#define IS_SQUARES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR)) +#define IS_SQUARES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SQUARES_EFFECT_DESCRIPTOR)) +#define SQUARES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptorClass)) + +typedef struct _SquaresEffectDescriptor SquaresEffectDescriptor; +typedef struct _SquaresEffectDescriptorClass SquaresEffectDescriptorClass; + +#define TYPE_CHESS_EFFECT_DESCRIPTOR (chess_effect_descriptor_get_type ()) +#define CHESS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor)) +#define CHESS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptorClass)) +#define IS_CHESS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR)) +#define IS_CHESS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHESS_EFFECT_DESCRIPTOR)) +#define CHESS_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptorClass)) + +typedef struct _ChessEffectDescriptor ChessEffectDescriptor; +typedef struct _ChessEffectDescriptorClass ChessEffectDescriptorClass; + +#define TYPE_STRIPES_EFFECT_DESCRIPTOR (stripes_effect_descriptor_get_type ()) +#define STRIPES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor)) +#define STRIPES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptorClass)) +#define IS_STRIPES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR)) +#define IS_STRIPES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STRIPES_EFFECT_DESCRIPTOR)) +#define STRIPES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptorClass)) + +typedef struct _StripesEffectDescriptor StripesEffectDescriptor; +typedef struct _StripesEffectDescriptorClass StripesEffectDescriptorClass; +#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) +typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; +#define _g_free0(var) (var = (g_free (var), NULL)) + +struct _ShotwellTransitions { + GObject parent_instance; + ShotwellTransitionsPrivate * priv; +}; + +struct _ShotwellTransitionsClass { + GObjectClass parent_class; +}; + +struct _ShotwellTransitionsPrivate { + SpitPluggable** pluggables; + gint pluggables_length1; + gint _pluggables_size_; +}; + +struct _ShotwellTransitionDescriptor { + GObject parent_instance; + ShotwellTransitionDescriptorPrivate * priv; +}; + +struct _ShotwellTransitionDescriptorClass { + GObjectClass parent_class; + const gchar* (*get_id) (ShotwellTransitionDescriptor* self); + const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); + SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); +}; + + +static gpointer shotwell_transitions_parent_class = NULL; +static SpitModuleIface* shotwell_transitions_spit_module_parent_iface = NULL; +static gpointer shotwell_transition_descriptor_parent_class = NULL; +static GdkPixbuf** shotwell_transition_descriptor_icon_pixbuf_set; +static gint shotwell_transition_descriptor_icon_pixbuf_set_length1; +static GdkPixbuf** shotwell_transition_descriptor_icon_pixbuf_set = NULL; +static gint shotwell_transition_descriptor_icon_pixbuf_set_length1 = 0; +static gint _shotwell_transition_descriptor_icon_pixbuf_set_size_ = 0; +static SpitPluggableIface* shotwell_transition_descriptor_spit_pluggable_parent_iface = NULL; +static SpitTransitionsDescriptorIface* shotwell_transition_descriptor_spit_transitions_descriptor_parent_iface = NULL; + +GType shotwell_transitions_get_type (void) G_GNUC_CONST; +#define SHOTWELL_TRANSITIONS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitionsPrivate)) +enum { + SHOTWELL_TRANSITIONS_DUMMY_PROPERTY +}; +ShotwellTransitions* shotwell_transitions_new (GFile* module_file); +ShotwellTransitions* shotwell_transitions_construct (GType object_type, GFile* module_file); +FadeEffectDescriptor* fade_effect_descriptor_new (GFile* resource_directory); +FadeEffectDescriptor* fade_effect_descriptor_construct (GType object_type, GFile* resource_directory); +GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; +GType fade_effect_descriptor_get_type (void) G_GNUC_CONST; +static void _vala_array_add1 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value); +SlideEffectDescriptor* slide_effect_descriptor_new (GFile* resource_directory); +SlideEffectDescriptor* slide_effect_descriptor_construct (GType object_type, GFile* resource_directory); +GType slide_effect_descriptor_get_type (void) G_GNUC_CONST; +static void _vala_array_add2 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value); +CrumbleEffectDescriptor* crumble_effect_descriptor_new (GFile* resource_directory); +CrumbleEffectDescriptor* crumble_effect_descriptor_construct (GType object_type, GFile* resource_directory); +GType crumble_effect_descriptor_get_type (void) G_GNUC_CONST; +static void _vala_array_add3 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value); +BlindsEffectDescriptor* blinds_effect_descriptor_new (GFile* resource_directory); +BlindsEffectDescriptor* blinds_effect_descriptor_construct (GType object_type, GFile* resource_directory); +GType blinds_effect_descriptor_get_type (void) G_GNUC_CONST; +static void _vala_array_add4 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value); +CircleEffectDescriptor* circle_effect_descriptor_new (GFile* resource_directory); +CircleEffectDescriptor* circle_effect_descriptor_construct (GType object_type, GFile* resource_directory); +GType circle_effect_descriptor_get_type (void) G_GNUC_CONST; +static void _vala_array_add5 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value); +CirclesEffectDescriptor* circles_effect_descriptor_new (GFile* resource_directory); +CirclesEffectDescriptor* circles_effect_descriptor_construct (GType object_type, GFile* resource_directory); +GType circles_effect_descriptor_get_type (void) G_GNUC_CONST; +static void _vala_array_add6 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value); +ClockEffectDescriptor* clock_effect_descriptor_new (GFile* resource_directory); +ClockEffectDescriptor* clock_effect_descriptor_construct (GType object_type, GFile* resource_directory); +GType clock_effect_descriptor_get_type (void) G_GNUC_CONST; +static void _vala_array_add7 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value); +SquaresEffectDescriptor* squares_effect_descriptor_new (GFile* resource_directory); +SquaresEffectDescriptor* squares_effect_descriptor_construct (GType object_type, GFile* resource_directory); +GType squares_effect_descriptor_get_type (void) G_GNUC_CONST; +static void _vala_array_add8 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value); +ChessEffectDescriptor* chess_effect_descriptor_new (GFile* resource_directory); +ChessEffectDescriptor* chess_effect_descriptor_construct (GType object_type, GFile* resource_directory); +GType chess_effect_descriptor_get_type (void) G_GNUC_CONST; +static void _vala_array_add9 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value); +StripesEffectDescriptor* stripes_effect_descriptor_new (GFile* resource_directory); +StripesEffectDescriptor* stripes_effect_descriptor_construct (GType object_type, GFile* resource_directory); +GType stripes_effect_descriptor_get_type (void) G_GNUC_CONST; +static void _vala_array_add10 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value); +static const gchar* shotwell_transitions_real_get_module_name (SpitModule* base); +static const gchar* shotwell_transitions_real_get_version (SpitModule* base); +static const gchar* shotwell_transitions_real_get_id (SpitModule* base); +static SpitPluggable** shotwell_transitions_real_get_pluggables (SpitModule* base, int* result_length1); +static void shotwell_transitions_finalize (GObject* obj); +SpitModule* spit_entry_point (SpitEntryPointParams* params); +enum { + SHOTWELL_TRANSITION_DESCRIPTOR_DUMMY_PROPERTY +}; +#define SHOTWELL_TRANSITION_DESCRIPTOR_ICON_FILENAME "slideshow-plugin.png" +ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, GFile* resource_directory); +static gint shotwell_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface); +const gchar* shotwell_transition_descriptor_get_id (ShotwellTransitionDescriptor* self); +static const gchar* shotwell_transition_descriptor_real_get_id (ShotwellTransitionDescriptor* self); +const gchar* shotwell_transition_descriptor_get_pluggable_name (ShotwellTransitionDescriptor* self); +static const gchar* shotwell_transition_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* self); +static void shotwell_transition_descriptor_real_get_info (SpitPluggable* base, SpitPluggableInfo* info); +static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, int length); +static void shotwell_transition_descriptor_real_activation (SpitPluggable* base, gboolean enabled); +SpitTransitionsEffect* shotwell_transition_descriptor_create (ShotwellTransitionDescriptor* self, SpitHostInterface* host); +static SpitTransitionsEffect* shotwell_transition_descriptor_real_create (ShotwellTransitionDescriptor* self, SpitHostInterface* host); +static void shotwell_transition_descriptor_finalize (GObject* obj); +static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func); +static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func); + + +static void _vala_array_add1 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) { +#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + if ((*length) == (*size)) { +#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *array = g_renew (SpitPluggable*, *array, (*size) + 1); +#line 266 "shotwell-transitions.c" + } +#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[(*length)++] = value; +#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[*length] = NULL; +#line 272 "shotwell-transitions.c" +} + + +static void _vala_array_add2 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) { +#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + if ((*length) == (*size)) { +#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *array = g_renew (SpitPluggable*, *array, (*size) + 1); +#line 283 "shotwell-transitions.c" + } +#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[(*length)++] = value; +#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[*length] = NULL; +#line 289 "shotwell-transitions.c" +} + + +static void _vala_array_add3 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) { +#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + if ((*length) == (*size)) { +#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *array = g_renew (SpitPluggable*, *array, (*size) + 1); +#line 300 "shotwell-transitions.c" + } +#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[(*length)++] = value; +#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[*length] = NULL; +#line 306 "shotwell-transitions.c" +} + + +static void _vala_array_add4 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) { +#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + if ((*length) == (*size)) { +#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *array = g_renew (SpitPluggable*, *array, (*size) + 1); +#line 317 "shotwell-transitions.c" + } +#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[(*length)++] = value; +#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[*length] = NULL; +#line 323 "shotwell-transitions.c" +} + + +static void _vala_array_add5 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) { +#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + if ((*length) == (*size)) { +#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *array = g_renew (SpitPluggable*, *array, (*size) + 1); +#line 334 "shotwell-transitions.c" + } +#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[(*length)++] = value; +#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[*length] = NULL; +#line 340 "shotwell-transitions.c" +} + + +static void _vala_array_add6 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) { +#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + if ((*length) == (*size)) { +#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *array = g_renew (SpitPluggable*, *array, (*size) + 1); +#line 351 "shotwell-transitions.c" + } +#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[(*length)++] = value; +#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[*length] = NULL; +#line 357 "shotwell-transitions.c" +} + + +static void _vala_array_add7 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) { +#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + if ((*length) == (*size)) { +#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *array = g_renew (SpitPluggable*, *array, (*size) + 1); +#line 368 "shotwell-transitions.c" + } +#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[(*length)++] = value; +#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[*length] = NULL; +#line 374 "shotwell-transitions.c" +} + + +static void _vala_array_add8 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) { +#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + if ((*length) == (*size)) { +#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *array = g_renew (SpitPluggable*, *array, (*size) + 1); +#line 385 "shotwell-transitions.c" + } +#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[(*length)++] = value; +#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[*length] = NULL; +#line 391 "shotwell-transitions.c" +} + + +static void _vala_array_add9 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) { +#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + if ((*length) == (*size)) { +#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *array = g_renew (SpitPluggable*, *array, (*size) + 1); +#line 402 "shotwell-transitions.c" + } +#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[(*length)++] = value; +#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[*length] = NULL; +#line 408 "shotwell-transitions.c" +} + + +static void _vala_array_add10 (SpitPluggable*** array, int* length, int* size, SpitPluggable* value) { +#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + if ((*length) == (*size)) { +#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *array = g_renew (SpitPluggable*, *array, (*size) + 1); +#line 419 "shotwell-transitions.c" + } +#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[(*length)++] = value; +#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*array)[*length] = NULL; +#line 425 "shotwell-transitions.c" +} + + +ShotwellTransitions* shotwell_transitions_construct (GType object_type, GFile* module_file) { + ShotwellTransitions * self = NULL; + GFile* resource_directory = NULL; + GFile* _tmp0_ = NULL; + GFile* _tmp1_ = NULL; + SpitPluggable** _tmp2_ = NULL; + gint _tmp2__length1 = 0; + FadeEffectDescriptor* _tmp3_ = NULL; + SpitPluggable** _tmp4_ = NULL; + gint _tmp4__length1 = 0; + SlideEffectDescriptor* _tmp5_ = NULL; + SpitPluggable** _tmp6_ = NULL; + gint _tmp6__length1 = 0; + CrumbleEffectDescriptor* _tmp7_ = NULL; + SpitPluggable** _tmp8_ = NULL; + gint _tmp8__length1 = 0; + BlindsEffectDescriptor* _tmp9_ = NULL; + SpitPluggable** _tmp10_ = NULL; + gint _tmp10__length1 = 0; + CircleEffectDescriptor* _tmp11_ = NULL; + SpitPluggable** _tmp12_ = NULL; + gint _tmp12__length1 = 0; + CirclesEffectDescriptor* _tmp13_ = NULL; + SpitPluggable** _tmp14_ = NULL; + gint _tmp14__length1 = 0; + ClockEffectDescriptor* _tmp15_ = NULL; + SpitPluggable** _tmp16_ = NULL; + gint _tmp16__length1 = 0; + SquaresEffectDescriptor* _tmp17_ = NULL; + SpitPluggable** _tmp18_ = NULL; + gint _tmp18__length1 = 0; + ChessEffectDescriptor* _tmp19_ = NULL; + SpitPluggable** _tmp20_ = NULL; + gint _tmp20__length1 = 0; + StripesEffectDescriptor* _tmp21_ = NULL; +#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + g_return_val_if_fail (G_IS_FILE (module_file), NULL); +#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + self = (ShotwellTransitions*) g_object_new (object_type, NULL); +#line 13 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp0_ = module_file; +#line 13 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp1_ = g_file_get_parent (_tmp0_); +#line 13 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + resource_directory = _tmp1_; +#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp2_ = self->priv->pluggables; +#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp2__length1 = self->priv->pluggables_length1; +#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp3_ = fade_effect_descriptor_new (resource_directory); +#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _vala_array_add1 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); +#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp4_ = self->priv->pluggables; +#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp4__length1 = self->priv->pluggables_length1; +#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp5_ = slide_effect_descriptor_new (resource_directory); +#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _vala_array_add2 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); +#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp6_ = self->priv->pluggables; +#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp6__length1 = self->priv->pluggables_length1; +#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp7_ = crumble_effect_descriptor_new (resource_directory); +#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _vala_array_add3 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); +#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp8_ = self->priv->pluggables; +#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp8__length1 = self->priv->pluggables_length1; +#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp9_ = blinds_effect_descriptor_new (resource_directory); +#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _vala_array_add4 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); +#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp10_ = self->priv->pluggables; +#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp10__length1 = self->priv->pluggables_length1; +#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp11_ = circle_effect_descriptor_new (resource_directory); +#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _vala_array_add5 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); +#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp12_ = self->priv->pluggables; +#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp12__length1 = self->priv->pluggables_length1; +#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp13_ = circles_effect_descriptor_new (resource_directory); +#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _vala_array_add6 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); +#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp14_ = self->priv->pluggables; +#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp14__length1 = self->priv->pluggables_length1; +#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp15_ = clock_effect_descriptor_new (resource_directory); +#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _vala_array_add7 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); +#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp16_ = self->priv->pluggables; +#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp16__length1 = self->priv->pluggables_length1; +#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp17_ = squares_effect_descriptor_new (resource_directory); +#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _vala_array_add8 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); +#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp18_ = self->priv->pluggables; +#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp18__length1 = self->priv->pluggables_length1; +#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp19_ = chess_effect_descriptor_new (resource_directory); +#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _vala_array_add9 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); +#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp20_ = self->priv->pluggables; +#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp20__length1 = self->priv->pluggables_length1; +#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp21_ = stripes_effect_descriptor_new (resource_directory); +#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _vala_array_add10 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); +#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _g_object_unref0 (resource_directory); +#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + return self; +#line 558 "shotwell-transitions.c" +} + + +ShotwellTransitions* shotwell_transitions_new (GFile* module_file) { +#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + return shotwell_transitions_construct (TYPE_SHOTWELL_TRANSITIONS, module_file); +#line 565 "shotwell-transitions.c" +} + + +static const gchar* shotwell_transitions_real_get_module_name (SpitModule* base) { + ShotwellTransitions * self; + const gchar* result = NULL; + const gchar* _tmp0_ = NULL; +#line 27 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions); +#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp0_ = _ ("Core Slideshow Transitions"); +#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + result = _tmp0_; +#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + return result; +#line 581 "shotwell-transitions.c" +} + + +static const gchar* shotwell_transitions_real_get_version (SpitModule* base) { + ShotwellTransitions * self; + const gchar* result = NULL; +#line 31 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions); +#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + result = _VERSION; +#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + return result; +#line 594 "shotwell-transitions.c" +} + + +static const gchar* shotwell_transitions_real_get_id (SpitModule* base) { + ShotwellTransitions * self; + const gchar* result = NULL; +#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions); +#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + result = "org.yorba.shotwell.transitions"; +#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + return result; +#line 607 "shotwell-transitions.c" +} + + +static SpitPluggable** shotwell_transitions_real_get_pluggables (SpitModule* base, int* result_length1) { + ShotwellTransitions * self; + SpitPluggable** result = NULL; + SpitPluggable** _tmp0_ = NULL; + gint _tmp0__length1 = 0; + SpitPluggable** _tmp1_ = NULL; + gint _tmp1__length1 = 0; +#line 39 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions); +#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp0_ = self->priv->pluggables; +#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp0__length1 = self->priv->pluggables_length1; +#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp1_ = _tmp0_; +#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp1__length1 = _tmp0__length1; +#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + if (result_length1) { +#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + *result_length1 = _tmp1__length1; +#line 632 "shotwell-transitions.c" + } +#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + result = _tmp1_; +#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + return result; +#line 638 "shotwell-transitions.c" +} + + +static void shotwell_transitions_class_init (ShotwellTransitionsClass * klass) { +#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + shotwell_transitions_parent_class = g_type_class_peek_parent (klass); +#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + g_type_class_add_private (klass, sizeof (ShotwellTransitionsPrivate)); +#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + G_OBJECT_CLASS (klass)->finalize = shotwell_transitions_finalize; +#line 649 "shotwell-transitions.c" +} + + +static void shotwell_transitions_spit_module_interface_init (SpitModuleIface * iface) { +#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + shotwell_transitions_spit_module_parent_iface = g_type_interface_peek_parent (iface); +#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + iface->get_module_name = (const gchar* (*)(SpitModule*)) shotwell_transitions_real_get_module_name; +#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + iface->get_version = (const gchar* (*)(SpitModule*)) shotwell_transitions_real_get_version; +#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + iface->get_id = (const gchar* (*)(SpitModule*)) shotwell_transitions_real_get_id; +#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + iface->get_pluggables = (SpitPluggable** (*)(SpitModule*, int*)) shotwell_transitions_real_get_pluggables; +#line 664 "shotwell-transitions.c" +} + + +static void shotwell_transitions_instance_init (ShotwellTransitions * self) { + SpitPluggable** _tmp0_ = NULL; +#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + self->priv = SHOTWELL_TRANSITIONS_GET_PRIVATE (self); +#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp0_ = g_new0 (SpitPluggable*, 0 + 1); +#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + self->priv->pluggables = _tmp0_; +#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + self->priv->pluggables_length1 = 0; +#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + self->priv->_pluggables_size_ = self->priv->pluggables_length1; +#line 680 "shotwell-transitions.c" +} + + +static void shotwell_transitions_finalize (GObject* obj) { + ShotwellTransitions * self; +#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions); +#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + self->priv->pluggables = (_vala_array_free (self->priv->pluggables, self->priv->pluggables_length1, (GDestroyNotify) g_object_unref), NULL); +#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + G_OBJECT_CLASS (shotwell_transitions_parent_class)->finalize (obj); +#line 692 "shotwell-transitions.c" +} + + +GType shotwell_transitions_get_type (void) { + static volatile gsize shotwell_transitions_type_id__volatile = 0; + if (g_once_init_enter (&shotwell_transitions_type_id__volatile)) { + static const GTypeInfo g_define_type_info = { sizeof (ShotwellTransitionsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_transitions_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellTransitions), 0, (GInstanceInitFunc) shotwell_transitions_instance_init, NULL }; + static const GInterfaceInfo spit_module_info = { (GInterfaceInitFunc) shotwell_transitions_spit_module_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; + GType shotwell_transitions_type_id; + shotwell_transitions_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellTransitions", &g_define_type_info, 0); + g_type_add_interface_static (shotwell_transitions_type_id, SPIT_TYPE_MODULE, &spit_module_info); + g_once_init_leave (&shotwell_transitions_type_id__volatile, shotwell_transitions_type_id); + } + return shotwell_transitions_type_id__volatile; +} + + +SpitModule* spit_entry_point (SpitEntryPointParams* params) { + SpitModule* result = NULL; + SpitEntryPointParams* _tmp0_ = NULL; + gint _tmp1_ = 0; + SpitEntryPointParams* _tmp2_ = NULL; + gint _tmp3_ = 0; + gint _tmp4_ = 0; + ShotwellTransitions* _tmp5_ = NULL; + SpitEntryPointParams* _tmp6_ = NULL; + gint _tmp7_ = 0; +#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp0_ = params; +#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp1_ = (*_tmp0_).host_min_spit_interface; +#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp2_ = params; +#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp3_ = (*_tmp2_).host_max_spit_interface; +#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp4_ = spit_negotiate_interfaces (_tmp1_, _tmp3_, SPIT_CURRENT_INTERFACE); +#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*params).module_spit_interface = _tmp4_; +#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp6_ = params; +#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp7_ = (*_tmp6_).module_spit_interface; +#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + if (_tmp7_ != SPIT_UNSUPPORTED_INTERFACE) { +#line 738 "shotwell-transitions.c" + SpitEntryPointParams* _tmp8_ = NULL; + GFile* _tmp9_ = NULL; + ShotwellTransitions* _tmp10_ = NULL; +#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp8_ = params; +#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp9_ = (*_tmp8_).module_file; +#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp10_ = shotwell_transitions_new (_tmp9_); +#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _g_object_unref0 (_tmp5_); +#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp5_ = _tmp10_; +#line 752 "shotwell-transitions.c" + } else { +#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _g_object_unref0 (_tmp5_); +#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp5_ = NULL; +#line 758 "shotwell-transitions.c" + } +#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + result = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_TYPE_MODULE, SpitModule); +#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + return result; +#line 764 "shotwell-transitions.c" +} + + +ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, GFile* resource_directory) { + ShotwellTransitionDescriptor * self = NULL; + GdkPixbuf** _tmp0_ = NULL; + gint _tmp0__length1 = 0; +#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); +#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + self = (ShotwellTransitionDescriptor*) g_object_new (object_type, NULL); +#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp0_ = shotwell_transition_descriptor_icon_pixbuf_set; +#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp0__length1 = shotwell_transition_descriptor_icon_pixbuf_set_length1; +#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + if (_tmp0_ == NULL) { +#line 782 "shotwell-transitions.c" + gint _tmp1_ = 0; + GdkPixbuf** _tmp2_ = NULL; +#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" SHOTWELL_TRANSITION_DESCRIPTOR_ICON_FILENAME, &_tmp1_); +#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + shotwell_transition_descriptor_icon_pixbuf_set = (_vala_array_free (shotwell_transition_descriptor_icon_pixbuf_set, shotwell_transition_descriptor_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL); +#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + shotwell_transition_descriptor_icon_pixbuf_set = _tmp2_; +#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + shotwell_transition_descriptor_icon_pixbuf_set_length1 = _tmp1_; +#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _shotwell_transition_descriptor_icon_pixbuf_set_size_ = shotwell_transition_descriptor_icon_pixbuf_set_length1; +#line 795 "shotwell-transitions.c" + } +#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + return self; +#line 799 "shotwell-transitions.c" +} + + +static gint shotwell_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface) { + ShotwellTransitionDescriptor * self; + gint result = 0; + gint _tmp0_ = 0; + gint _tmp1_ = 0; + gint _tmp2_ = 0; +#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor); +#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp0_ = min_host_interface; +#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp1_ = max_host_interface; +#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp2_ = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_TRANSITIONS_CURRENT_INTERFACE); +#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + result = _tmp2_; +#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + return result; +#line 821 "shotwell-transitions.c" +} + + +static const gchar* shotwell_transition_descriptor_real_get_id (ShotwellTransitionDescriptor* self) { +#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + g_critical ("Type `%s' does not implement abstract method `shotwell_transition_descriptor_get_id'", g_type_name (G_TYPE_FROM_INSTANCE (self))); +#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + return NULL; +#line 830 "shotwell-transitions.c" +} + + +const gchar* shotwell_transition_descriptor_get_id (ShotwellTransitionDescriptor* self) { +#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + g_return_val_if_fail (IS_SHOTWELL_TRANSITION_DESCRIPTOR (self), NULL); +#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + return SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS (self)->get_id (self); +#line 839 "shotwell-transitions.c" +} + + +static const gchar* shotwell_transition_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* self) { +#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + g_critical ("Type `%s' does not implement abstract method `shotwell_transition_descriptor_get_pluggable_name'", g_type_name (G_TYPE_FROM_INSTANCE (self))); +#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + return NULL; +#line 848 "shotwell-transitions.c" +} + + +const gchar* shotwell_transition_descriptor_get_pluggable_name (ShotwellTransitionDescriptor* self) { +#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + g_return_val_if_fail (IS_SHOTWELL_TRANSITION_DESCRIPTOR (self), NULL); +#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + return SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS (self)->get_pluggable_name (self); +#line 857 "shotwell-transitions.c" +} + + +static gpointer _g_object_ref0 (gpointer self) { +#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + return self ? g_object_ref (self) : NULL; +#line 864 "shotwell-transitions.c" +} + + +static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, int length) { + GdkPixbuf** result; + int i; +#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + result = g_new0 (GdkPixbuf*, length + 1); +#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + for (i = 0; i < length; i++) { +#line 875 "shotwell-transitions.c" + GdkPixbuf* _tmp0_ = NULL; +#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp0_ = _g_object_ref0 (self[i]); +#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + result[i] = _tmp0_; +#line 881 "shotwell-transitions.c" + } +#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + return result; +#line 885 "shotwell-transitions.c" +} + + +static void shotwell_transition_descriptor_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) { + ShotwellTransitionDescriptor * self; + gchar* _tmp0_ = NULL; + const gchar* _tmp1_ = NULL; + gchar* _tmp2_ = NULL; + gchar* _tmp3_ = NULL; + gchar* _tmp4_ = NULL; + gchar* _tmp5_ = NULL; + gchar* _tmp6_ = NULL; + gchar* _tmp7_ = NULL; + GdkPixbuf** _tmp8_ = NULL; + gint _tmp8__length1 = 0; + GdkPixbuf** _tmp9_ = NULL; + gint _tmp9__length1 = 0; +#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor); +#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + g_return_if_fail (info != NULL); +#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp0_ = g_strdup ("Maxim Kartashev"); +#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _g_free0 ((*info).authors); +#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*info).authors = _tmp0_; +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp1_ = _ ("Copyright 2010 Maxim Kartashev, Copyright 2016 Software Freedom Conser" \ +"vancy Inc."); +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp2_ = g_strdup (_tmp1_); +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _g_free0 ((*info).copyright); +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*info).copyright = _tmp2_; +#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp3_ = g_strdup (RESOURCES_TRANSLATORS); +#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _g_free0 ((*info).translators); +#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*info).translators = _tmp3_; +#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp4_ = g_strdup (_VERSION); +#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _g_free0 ((*info).version); +#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*info).version = _tmp4_; +#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp5_ = g_strdup (RESOURCES_WEBSITE_NAME); +#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _g_free0 ((*info).website_name); +#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*info).website_name = _tmp5_; +#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp6_ = g_strdup (RESOURCES_WEBSITE_URL); +#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _g_free0 ((*info).website_url); +#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*info).website_url = _tmp6_; +#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*info).is_license_wordwrapped = FALSE; +#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp7_ = g_strdup (RESOURCES_LICENSE); +#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _g_free0 ((*info).license); +#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*info).license = _tmp7_; +#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp8_ = shotwell_transition_descriptor_icon_pixbuf_set; +#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp8__length1 = shotwell_transition_descriptor_icon_pixbuf_set_length1; +#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp9_ = (_tmp8_ != NULL) ? _vala_array_dup1 (_tmp8_, _tmp8__length1) : ((gpointer) _tmp8_); +#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + _tmp9__length1 = _tmp8__length1; +#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); +#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*info).icons = _tmp9_; +#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + (*info).icons_length1 = _tmp9__length1; +#line 967 "shotwell-transitions.c" +} + + +static void shotwell_transition_descriptor_real_activation (SpitPluggable* base, gboolean enabled) { + ShotwellTransitionDescriptor * self; +#line 86 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor); +#line 975 "shotwell-transitions.c" +} + + +static SpitTransitionsEffect* shotwell_transition_descriptor_real_create (ShotwellTransitionDescriptor* self, SpitHostInterface* host) { +#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + g_critical ("Type `%s' does not implement abstract method `shotwell_transition_descriptor_create'", g_type_name (G_TYPE_FROM_INSTANCE (self))); +#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + return NULL; +#line 984 "shotwell-transitions.c" +} + + +SpitTransitionsEffect* shotwell_transition_descriptor_create (ShotwellTransitionDescriptor* self, SpitHostInterface* host) { +#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + g_return_val_if_fail (IS_SHOTWELL_TRANSITION_DESCRIPTOR (self), NULL); +#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + return SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS (self)->create (self, host); +#line 993 "shotwell-transitions.c" +} + + +static void shotwell_transition_descriptor_class_init (ShotwellTransitionDescriptorClass * klass) { +#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + shotwell_transition_descriptor_parent_class = g_type_class_peek_parent (klass); +#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + ((ShotwellTransitionDescriptorClass *) klass)->get_id = shotwell_transition_descriptor_real_get_id; +#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = shotwell_transition_descriptor_real_get_pluggable_name; +#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + ((ShotwellTransitionDescriptorClass *) klass)->create = shotwell_transition_descriptor_real_create; +#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + G_OBJECT_CLASS (klass)->finalize = shotwell_transition_descriptor_finalize; +#line 1008 "shotwell-transitions.c" +} + + +static void shotwell_transition_descriptor_spit_pluggable_interface_init (SpitPluggableIface * iface) { +#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + shotwell_transition_descriptor_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); +#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + iface->get_pluggable_interface = (gint (*)(SpitPluggable*, gint, gint)) shotwell_transition_descriptor_real_get_pluggable_interface; +#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + iface->get_id = (const gchar* (*)(SpitPluggable*)) shotwell_transition_descriptor_get_id; +#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + iface->get_pluggable_name = (const gchar* (*)(SpitPluggable*)) shotwell_transition_descriptor_get_pluggable_name; +#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + iface->get_info = (void (*)(SpitPluggable*, SpitPluggableInfo*)) shotwell_transition_descriptor_real_get_info; +#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + iface->activation = (void (*)(SpitPluggable*, gboolean)) shotwell_transition_descriptor_real_activation; +#line 1025 "shotwell-transitions.c" +} + + +static void shotwell_transition_descriptor_spit_transitions_descriptor_interface_init (SpitTransitionsDescriptorIface * iface) { +#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + shotwell_transition_descriptor_spit_transitions_descriptor_parent_iface = g_type_interface_peek_parent (iface); +#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + iface->create = (SpitTransitionsEffect* (*)(SpitTransitionsDescriptor*, SpitHostInterface*)) shotwell_transition_descriptor_create; +#line 1034 "shotwell-transitions.c" +} + + +static void shotwell_transition_descriptor_instance_init (ShotwellTransitionDescriptor * self) { +} + + +static void shotwell_transition_descriptor_finalize (GObject* obj) { + ShotwellTransitionDescriptor * self; +#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor); +#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" + G_OBJECT_CLASS (shotwell_transition_descriptor_parent_class)->finalize (obj); +#line 1048 "shotwell-transitions.c" +} + + +GType shotwell_transition_descriptor_get_type (void) { + static volatile gsize shotwell_transition_descriptor_type_id__volatile = 0; + if (g_once_init_enter (&shotwell_transition_descriptor_type_id__volatile)) { + static const GTypeInfo g_define_type_info = { sizeof (ShotwellTransitionDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_transition_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellTransitionDescriptor), 0, (GInstanceInitFunc) shotwell_transition_descriptor_instance_init, NULL }; + static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) shotwell_transition_descriptor_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; + static const GInterfaceInfo spit_transitions_descriptor_info = { (GInterfaceInitFunc) shotwell_transition_descriptor_spit_transitions_descriptor_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; + GType shotwell_transition_descriptor_type_id; + shotwell_transition_descriptor_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellTransitionDescriptor", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); + g_type_add_interface_static (shotwell_transition_descriptor_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); + g_type_add_interface_static (shotwell_transition_descriptor_type_id, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, &spit_transitions_descriptor_info); + g_once_init_leave (&shotwell_transition_descriptor_type_id__volatile, shotwell_transition_descriptor_type_id); + } + return shotwell_transition_descriptor_type_id__volatile; +} + + +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) { + if (((gpointer*) array)[i] != NULL) { + destroy_func (((gpointer*) array)[i]); + } + } + } +} + + +static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) { + _vala_array_destroy (array, array_length, destroy_func); + g_free (array); +} + + + -- cgit v1.2.3