From 5e9f4eea451a77ba3b93db3747841ed2bd969e9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 30 Sep 2018 14:09:20 +0200 Subject: New upstream version 0.30.1 --- plugins/shotwell-transitions/BlindsEffect.c | 843 ------------- plugins/shotwell-transitions/ChessEffect.c | 763 ------------ plugins/shotwell-transitions/CircleEffect.c | 528 --------- plugins/shotwell-transitions/CirclesEffect.c | 662 ----------- plugins/shotwell-transitions/ClockEffect.c | 633 ---------- plugins/shotwell-transitions/CrumbleEffect.c | 884 -------------- plugins/shotwell-transitions/FadeEffect.c | 518 -------- plugins/shotwell-transitions/SlideEffect.c | 617 ---------- plugins/shotwell-transitions/SquaresEffect.c | 707 ----------- plugins/shotwell-transitions/StripesEffect.c | 704 ----------- .../shotwell-transitions/shotwell-transitions.c | 1240 -------------------- 11 files changed, 8099 deletions(-) delete mode 100644 plugins/shotwell-transitions/BlindsEffect.c delete mode 100644 plugins/shotwell-transitions/ChessEffect.c delete mode 100644 plugins/shotwell-transitions/CircleEffect.c delete mode 100644 plugins/shotwell-transitions/CirclesEffect.c delete mode 100644 plugins/shotwell-transitions/ClockEffect.c delete mode 100644 plugins/shotwell-transitions/CrumbleEffect.c delete mode 100644 plugins/shotwell-transitions/FadeEffect.c delete mode 100644 plugins/shotwell-transitions/SlideEffect.c delete mode 100644 plugins/shotwell-transitions/SquaresEffect.c delete mode 100644 plugins/shotwell-transitions/StripesEffect.c delete mode 100644 plugins/shotwell-transitions/shotwell-transitions.c (limited to 'plugins/shotwell-transitions') diff --git a/plugins/shotwell-transitions/BlindsEffect.c b/plugins/shotwell-transitions/BlindsEffect.c deleted file mode 100644 index ef1f15e..0000000 --- a/plugins/shotwell-transitions/BlindsEffect.c +++ /dev/null @@ -1,843 +0,0 @@ -/* BlindsEffect.c generated by valac 0.40.4, the Vala compiler - * generated from BlindsEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * 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 -#include -#include -#include - - -#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; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#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; -typedef struct _BlindsEffectDescriptorPrivate BlindsEffectDescriptorPrivate; -enum { - BLINDS_EFFECT_DESCRIPTOR_0_PROPERTY, - BLINDS_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* blinds_effect_descriptor_properties[BLINDS_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_BLINDS_EFFECT (blinds_effect_get_type ()) -#define BLINDS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BLINDS_EFFECT, BlindsEffect)) -#define BLINDS_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BLINDS_EFFECT, BlindsEffectClass)) -#define IS_BLINDS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BLINDS_EFFECT)) -#define IS_BLINDS_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BLINDS_EFFECT)) -#define BLINDS_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BLINDS_EFFECT, BlindsEffectClass)) - -typedef struct _BlindsEffect BlindsEffect; -typedef struct _BlindsEffectClass BlindsEffectClass; -typedef struct _BlindsEffectPrivate BlindsEffectPrivate; -enum { - BLINDS_EFFECT_0_PROPERTY, - BLINDS_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* blinds_effect_properties[BLINDS_EFFECT_NUM_PROPERTIES]; -#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL))) -#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL))) - -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); -}; - -struct _BlindsEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - BlindsEffectDescriptorPrivate * priv; -}; - -struct _BlindsEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _BlindsEffect { - GObject parent_instance; - BlindsEffectPrivate * priv; -}; - -struct _BlindsEffectClass { - GObjectClass parent_class; -}; - -struct _BlindsEffectPrivate { - gint current_blind_width; - cairo_surface_t** to_blinds; - gint to_blinds_length1; - gint _to_blinds_size_; - gint blind_count; -}; - - -static gpointer blinds_effect_descriptor_parent_class = NULL; -static gpointer blinds_effect_parent_class = NULL; -static SpitTransitionsEffectIface * blinds_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType blinds_effect_descriptor_get_type (void) G_GNUC_CONST; -BlindsEffectDescriptor* blinds_effect_descriptor_new (GFile* resource_directory); -BlindsEffectDescriptor* blinds_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* blinds_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* blinds_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* blinds_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -BlindsEffect* blinds_effect_new (void); -BlindsEffect* blinds_effect_construct (GType object_type); -GType blinds_effect_get_type (void) G_GNUC_CONST; -#define BLINDS_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_BLINDS_EFFECT, BlindsEffectPrivate)) -#define BLINDS_EFFECT_DESIRED_FPS 30 -#define BLINDS_EFFECT_MIN_FPS 15 -#define BLINDS_EFFECT_BLIND_WIDTH 50 -static void blinds_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static gboolean blinds_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void blinds_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static void blinds_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void blinds_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void blinds_effect_real_cancel (SpitTransitionsEffect* base); -static void blinds_effect_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); - - -BlindsEffectDescriptor* -blinds_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - BlindsEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = (BlindsEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return self; -#line 172 "BlindsEffect.c" -} - - -BlindsEffectDescriptor* -blinds_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return blinds_effect_descriptor_construct (TYPE_BLINDS_EFFECT_DESCRIPTOR, resource_directory); -#line 181 "BlindsEffect.c" -} - - -static const gchar* -blinds_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - BlindsEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - result = "org.yorba.shotwell.transitions.blinds"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return result; -#line 196 "BlindsEffect.c" -} - - -static const gchar* -blinds_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - BlindsEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - result = _ ("Blinds"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return result; -#line 211 "BlindsEffect.c" -} - - -static SpitTransitionsEffect* -blinds_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - BlindsEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - BlindsEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp0_ = blinds_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return result; -#line 232 "BlindsEffect.c" -} - - -static void -blinds_effect_descriptor_class_init (BlindsEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - blinds_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) blinds_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) blinds_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) blinds_effect_descriptor_real_create; -#line 247 "BlindsEffect.c" -} - - -static void -blinds_effect_descriptor_instance_init (BlindsEffectDescriptor * self) -{ -} - - -GType -blinds_effect_descriptor_get_type (void) -{ - static volatile gsize blinds_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&blinds_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (BlindsEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) blinds_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BlindsEffectDescriptor), 0, (GInstanceInitFunc) blinds_effect_descriptor_instance_init, NULL }; - GType blinds_effect_descriptor_type_id; - blinds_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "BlindsEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&blinds_effect_descriptor_type_id__volatile, blinds_effect_descriptor_type_id); - } - return blinds_effect_descriptor_type_id__volatile; -} - - -BlindsEffect* -blinds_effect_construct (GType object_type) -{ - BlindsEffect * self = NULL; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = (BlindsEffect*) g_object_new (object_type, NULL); -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return self; -#line 279 "BlindsEffect.c" -} - - -BlindsEffect* -blinds_effect_new (void) -{ -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return blinds_effect_construct (TYPE_BLINDS_EFFECT); -#line 288 "BlindsEffect.c" -} - - -static void -blinds_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - BlindsEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _vala_desired_fps = BLINDS_EFFECT_DESIRED_FPS; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _vala_min_fps = BLINDS_EFFECT_MIN_FPS; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (desired_fps) { -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - *desired_fps = _vala_desired_fps; -#line 310 "BlindsEffect.c" - } -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (min_fps) { -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - *min_fps = _vala_min_fps; -#line 316 "BlindsEffect.c" - } -} - - -static gboolean -blinds_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - BlindsEffect * self; - gboolean result = FALSE; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - result = TRUE; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return result; -#line 332 "BlindsEffect.c" -} - - -static void -blinds_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - BlindsEffect * self; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp0_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp1_ = _tmp0_; -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (_tmp1_ != NULL) { -#line 356 "BlindsEffect.c" - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - gint _tmp4_; - gint _tmp5_; - GdkPixbuf* _tmp6_; - GdkPixbuf* _tmp7_; - gint _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; - cairo_surface_t** _tmp12_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp2_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp3_ = _tmp2_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp4_ = gdk_pixbuf_get_width (_tmp3_); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp5_ = _tmp4_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->blind_count = _tmp5_ / BLINDS_EFFECT_BLIND_WIDTH; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp6_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp7_ = _tmp6_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp8_ = gdk_pixbuf_get_width (_tmp7_); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp9_ = _tmp8_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp10_ = self->priv->blind_count; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->current_blind_width = (gint) ceil (((gdouble) _tmp9_) / ((gdouble) _tmp10_)); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp11_ = self->priv->blind_count; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp12_ = g_new0 (cairo_surface_t*, _tmp11_ + 1); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->to_blinds = (_vala_array_free (self->priv->to_blinds, self->priv->to_blinds_length1, (GDestroyNotify) cairo_surface_destroy), NULL); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->to_blinds = _tmp12_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->to_blinds_length1 = _tmp11_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->_to_blinds_size_ = self->priv->to_blinds_length1; -#line 402 "BlindsEffect.c" - { - gint i = 0; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - i = 0; -#line 407 "BlindsEffect.c" - { - gboolean _tmp13_ = FALSE; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp13_ = TRUE; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - while (TRUE) { -#line 414 "BlindsEffect.c" - gint _tmp15_; - gint _tmp16_; - cairo_surface_t** _tmp17_; - gint _tmp17__length1; - gint _tmp18_; - gint _tmp19_; - GdkPixbuf* _tmp20_; - GdkPixbuf* _tmp21_; - gint _tmp22_; - gint _tmp23_; - cairo_surface_t* _tmp24_; - cairo_surface_t* _tmp25_; - cairo_t* ctx = NULL; - cairo_surface_t** _tmp26_; - gint _tmp26__length1; - gint _tmp27_; - cairo_surface_t* _tmp28_; - cairo_t* _tmp29_; - cairo_t* _tmp30_; - GdkPixbuf* _tmp31_; - GdkPixbuf* _tmp32_; - gint _tmp33_; - gint _tmp34_; - cairo_t* _tmp35_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (!_tmp13_) { -#line 441 "BlindsEffect.c" - gint _tmp14_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp14_ = i; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - i = _tmp14_ + 1; -#line 447 "BlindsEffect.c" - } -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp13_ = FALSE; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp15_ = i; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp16_ = self->priv->blind_count; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (!(_tmp15_ < _tmp16_)) { -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - break; -#line 459 "BlindsEffect.c" - } -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp17_ = self->priv->to_blinds; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp17__length1 = self->priv->to_blinds_length1; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp18_ = i; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp19_ = self->priv->current_blind_width; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp20_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp21_ = _tmp20_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp22_ = gdk_pixbuf_get_height (_tmp21_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp23_ = _tmp22_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp24_ = cairo_image_surface_create (CAIRO_FORMAT_RGB24, _tmp19_, _tmp23_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _cairo_surface_destroy0 (_tmp17_[_tmp18_]); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp17_[_tmp18_] = _tmp24_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp25_ = _tmp17_[_tmp18_]; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp26_ = self->priv->to_blinds; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp26__length1 = self->priv->to_blinds_length1; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp27_ = i; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp28_ = _tmp26_[_tmp27_]; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp29_ = cairo_create (_tmp28_); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - ctx = _tmp29_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp30_ = ctx; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp31_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp32_ = _tmp31_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp33_ = i; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp34_ = self->priv->current_blind_width; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - gdk_cairo_set_source_pixbuf (_tmp30_, _tmp32_, (gdouble) ((-_tmp33_) * _tmp34_), (gdouble) 0); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp35_ = ctx; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_paint (_tmp35_); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _cairo_destroy0 (ctx); -#line 515 "BlindsEffect.c" - } - } - } - } -} - - -static void -blinds_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - BlindsEffect * self; - gdouble alpha = 0.0; - gint y = 0; - GdkRectangle _tmp0_ = {0}; - GdkRectangle _tmp1_; - gint _tmp2_; - gint x = 0; - GdkRectangle _tmp3_ = {0}; - GdkRectangle _tmp4_; - gint _tmp5_; - GdkPixbuf* _tmp6_; - GdkPixbuf* _tmp7_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (ctx != NULL); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp0_); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp1_ = _tmp0_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp2_ = _tmp1_.y; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - y = _tmp2_; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp3_); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp4_ = _tmp3_; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp5_ = _tmp4_.x; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - x = _tmp5_; -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp6_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp7_ = _tmp6_; -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (_tmp7_ != NULL) { -#line 576 "BlindsEffect.c" - GdkPixbuf* _tmp8_; - GdkPixbuf* _tmp9_; - GdkRectangle _tmp10_ = {0}; - GdkRectangle _tmp11_; - gint _tmp12_; - GdkRectangle _tmp13_ = {0}; - GdkRectangle _tmp14_; - gint _tmp15_; - gdouble _tmp16_; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp8_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp9_ = _tmp8_; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp10_); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp11_ = _tmp10_; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp12_ = _tmp11_.x; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp13_); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp14_ = _tmp13_; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp15_ = _tmp14_.y; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp9_, (gdouble) _tmp12_, (gdouble) _tmp15_); -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp16_ = alpha; -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_paint_with_alpha (ctx, 1 - (_tmp16_ * 2)); -#line 608 "BlindsEffect.c" - } - { - gint i = 0; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - i = 0; -#line 614 "BlindsEffect.c" - { - gboolean _tmp17_ = FALSE; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp17_ = TRUE; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - while (TRUE) { -#line 621 "BlindsEffect.c" - gint _tmp19_; - gint _tmp20_; - cairo_surface_t** _tmp21_; - gint _tmp21__length1; - gint _tmp22_; - cairo_surface_t* _tmp23_; - gint _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _tmp27_; - gint _tmp28_; - gint _tmp29_; - gint _tmp30_; - gint _tmp31_; - gint _tmp32_; - gdouble _tmp33_; - GdkPixbuf* _tmp34_; - GdkPixbuf* _tmp35_; - gint _tmp36_; - gint _tmp37_; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (!_tmp17_) { -#line 644 "BlindsEffect.c" - gint _tmp18_; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp18_ = i; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - i = _tmp18_ + 1; -#line 650 "BlindsEffect.c" - } -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp17_ = FALSE; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp19_ = i; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp20_ = self->priv->blind_count; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (!(_tmp19_ < _tmp20_)) { -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - break; -#line 662 "BlindsEffect.c" - } -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp21_ = self->priv->to_blinds; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp21__length1 = self->priv->to_blinds_length1; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp22_ = i; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp23_ = _tmp21_[_tmp22_]; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp24_ = x; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp25_ = i; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp26_ = self->priv->current_blind_width; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp27_ = y; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_set_source_surface (ctx, _tmp23_, (gdouble) (_tmp24_ + (_tmp25_ * _tmp26_)), (gdouble) _tmp27_); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp28_ = x; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp29_ = i; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp30_ = self->priv->current_blind_width; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp31_ = y; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp32_ = self->priv->current_blind_width; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp33_ = alpha; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp34_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp35_ = _tmp34_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp36_ = gdk_pixbuf_get_height (_tmp35_); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp37_ = _tmp36_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_rectangle (ctx, (gdouble) (_tmp28_ + (_tmp29_ * _tmp30_)), (gdouble) _tmp31_, _tmp32_ * (_tmp33_ + 0.5), (gdouble) _tmp37_); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_fill (ctx); -#line 706 "BlindsEffect.c" - } - } - } -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_clip (ctx); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_paint (ctx); -#line 714 "BlindsEffect.c" -} - - -static void -blinds_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - BlindsEffect * self; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 731 "BlindsEffect.c" -} - - -static void -blinds_effect_real_cancel (SpitTransitionsEffect* base) -{ - BlindsEffect * self; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 741 "BlindsEffect.c" -} - - -static void -blinds_effect_class_init (BlindsEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - blinds_effect_parent_class = g_type_class_peek_parent (klass); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_type_class_add_private (klass, sizeof (BlindsEffectPrivate)); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - G_OBJECT_CLASS (klass)->finalize = blinds_effect_finalize; -#line 754 "BlindsEffect.c" -} - - -static void -blinds_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - blinds_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) blinds_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) blinds_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) blinds_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) blinds_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) blinds_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) blinds_effect_real_cancel; -#line 775 "BlindsEffect.c" -} - - -static void -blinds_effect_instance_init (BlindsEffect * self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv = BLINDS_EFFECT_GET_PRIVATE (self); -#line 784 "BlindsEffect.c" -} - - -static void -blinds_effect_finalize (GObject * obj) -{ - BlindsEffect * self; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->to_blinds = (_vala_array_free (self->priv->to_blinds, self->priv->to_blinds_length1, (GDestroyNotify) cairo_surface_destroy), NULL); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - G_OBJECT_CLASS (blinds_effect_parent_class)->finalize (obj); -#line 798 "BlindsEffect.c" -} - - -GType -blinds_effect_get_type (void) -{ - static volatile gsize blinds_effect_type_id__volatile = 0; - if (g_once_init_enter (&blinds_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (BlindsEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) blinds_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BlindsEffect), 0, (GInstanceInitFunc) blinds_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) blinds_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType blinds_effect_type_id; - blinds_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "BlindsEffect", &g_define_type_info, 0); - g_type_add_interface_static (blinds_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&blinds_effect_type_id__volatile, blinds_effect_type_id); - } - return blinds_effect_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); -} - - - diff --git a/plugins/shotwell-transitions/ChessEffect.c b/plugins/shotwell-transitions/ChessEffect.c deleted file mode 100644 index 103eeb0..0000000 --- a/plugins/shotwell-transitions/ChessEffect.c +++ /dev/null @@ -1,763 +0,0 @@ -/* ChessEffect.c generated by valac 0.40.4, the Vala compiler - * generated from ChessEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * 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 -#include -#include - - -#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; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#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; -typedef struct _ChessEffectDescriptorPrivate ChessEffectDescriptorPrivate; -enum { - CHESS_EFFECT_DESCRIPTOR_0_PROPERTY, - CHESS_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* chess_effect_descriptor_properties[CHESS_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_CHESS_EFFECT (chess_effect_get_type ()) -#define CHESS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHESS_EFFECT, ChessEffect)) -#define CHESS_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHESS_EFFECT, ChessEffectClass)) -#define IS_CHESS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHESS_EFFECT)) -#define IS_CHESS_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHESS_EFFECT)) -#define CHESS_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHESS_EFFECT, ChessEffectClass)) - -typedef struct _ChessEffect ChessEffect; -typedef struct _ChessEffectClass ChessEffectClass; -typedef struct _ChessEffectPrivate ChessEffectPrivate; -enum { - CHESS_EFFECT_0_PROPERTY, - CHESS_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* chess_effect_properties[CHESS_EFFECT_NUM_PROPERTIES]; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - 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); -}; - -struct _ChessEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - ChessEffectDescriptorPrivate * priv; -}; - -struct _ChessEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _ChessEffect { - GObject parent_instance; - ChessEffectPrivate * priv; -}; - -struct _ChessEffectClass { - GObjectClass parent_class; -}; - -struct _ChessEffectPrivate { - gdouble square_count_x; - gdouble square_count_y; -}; - - -static gpointer chess_effect_descriptor_parent_class = NULL; -static gpointer chess_effect_parent_class = NULL; -static SpitTransitionsEffectIface * chess_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType chess_effect_descriptor_get_type (void) G_GNUC_CONST; -ChessEffectDescriptor* chess_effect_descriptor_new (GFile* resource_directory); -ChessEffectDescriptor* chess_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* chess_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* chess_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* chess_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -ChessEffect* chess_effect_new (void); -ChessEffect* chess_effect_construct (GType object_type); -GType chess_effect_get_type (void) G_GNUC_CONST; -#define CHESS_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CHESS_EFFECT, ChessEffectPrivate)) -#define CHESS_EFFECT_DESIRED_FPS 25 -#define CHESS_EFFECT_MIN_FPS 10 -#define CHESS_EFFECT_SQUARE_SIZE 100 -static void chess_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void chess_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean chess_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void chess_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void chess_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void chess_effect_real_cancel (SpitTransitionsEffect* base); -static void chess_effect_finalize (GObject * obj); - - -ChessEffectDescriptor* -chess_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - ChessEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = (ChessEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return self; -#line 160 "ChessEffect.c" -} - - -ChessEffectDescriptor* -chess_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return chess_effect_descriptor_construct (TYPE_CHESS_EFFECT_DESCRIPTOR, resource_directory); -#line 169 "ChessEffect.c" -} - - -static const gchar* -chess_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - ChessEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - result = "org.yorba.shotwell.transitions.chess"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return result; -#line 184 "ChessEffect.c" -} - - -static const gchar* -chess_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - ChessEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - result = _ ("Chess"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return result; -#line 199 "ChessEffect.c" -} - - -static SpitTransitionsEffect* -chess_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - ChessEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - ChessEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp0_ = chess_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return result; -#line 220 "ChessEffect.c" -} - - -static void -chess_effect_descriptor_class_init (ChessEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - chess_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) chess_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) chess_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) chess_effect_descriptor_real_create; -#line 235 "ChessEffect.c" -} - - -static void -chess_effect_descriptor_instance_init (ChessEffectDescriptor * self) -{ -} - - -GType -chess_effect_descriptor_get_type (void) -{ - static volatile gsize chess_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&chess_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ChessEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) chess_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ChessEffectDescriptor), 0, (GInstanceInitFunc) chess_effect_descriptor_instance_init, NULL }; - GType chess_effect_descriptor_type_id; - chess_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "ChessEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&chess_effect_descriptor_type_id__volatile, chess_effect_descriptor_type_id); - } - return chess_effect_descriptor_type_id__volatile; -} - - -ChessEffect* -chess_effect_construct (GType object_type) -{ - ChessEffect * self = NULL; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = (ChessEffect*) g_object_new (object_type, NULL); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return self; -#line 267 "ChessEffect.c" -} - - -ChessEffect* -chess_effect_new (void) -{ -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return chess_effect_construct (TYPE_CHESS_EFFECT); -#line 276 "ChessEffect.c" -} - - -static void -chess_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - ChessEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _vala_desired_fps = CHESS_EFFECT_DESIRED_FPS; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _vala_min_fps = CHESS_EFFECT_MIN_FPS; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (desired_fps) { -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - *desired_fps = _vala_desired_fps; -#line 298 "ChessEffect.c" - } -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (min_fps) { -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - *min_fps = _vala_min_fps; -#line 304 "ChessEffect.c" - } -} - - -static void -chess_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - ChessEffect * self; - GdkRectangle _tmp0_ = {0}; - GdkRectangle _tmp1_; - gint _tmp2_; - GdkRectangle _tmp3_ = {0}; - GdkRectangle _tmp4_; - gint _tmp5_; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp0_); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp1_ = _tmp0_; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp2_ = _tmp1_.height; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self->priv->square_count_y = (gdouble) ((_tmp2_ / CHESS_EFFECT_SQUARE_SIZE) + 2); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp3_); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp4_ = _tmp3_; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp5_ = _tmp4_.width; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self->priv->square_count_x = (gdouble) ((_tmp5_ / CHESS_EFFECT_SQUARE_SIZE) + 2); -#line 343 "ChessEffect.c" -} - - -static gboolean -chess_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - ChessEffect * self; - gboolean result = FALSE; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - result = TRUE; -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return result; -#line 358 "ChessEffect.c" -} - - -static void -chess_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - ChessEffect * self; - gdouble alpha = 0.0; - gdouble size = 0.0; - gdouble _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (ctx != NULL); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp0_ = alpha; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - size = (2 * _tmp0_) * CHESS_EFFECT_SQUARE_SIZE; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp1_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp2_ = _tmp1_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (_tmp2_ != NULL) { -#line 399 "ChessEffect.c" - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - GdkRectangle _tmp5_ = {0}; - GdkRectangle _tmp6_; - gint _tmp7_; - GdkRectangle _tmp8_ = {0}; - GdkRectangle _tmp9_; - gint _tmp10_; - gdouble _tmp11_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp3_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp4_ = _tmp3_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp5_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp6_ = _tmp5_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp7_ = _tmp6_.x; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp8_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp9_ = _tmp8_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp10_ = _tmp9_.y; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp4_, (gdouble) _tmp7_, (gdouble) _tmp10_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp11_ = alpha; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_paint_with_alpha (ctx, 1 - _tmp11_); -#line 431 "ChessEffect.c" - } -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp12_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp13_ = _tmp12_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (_tmp13_ != NULL) { -#line 439 "ChessEffect.c" - GdkPixbuf* _tmp14_; - GdkPixbuf* _tmp15_; - GdkRectangle _tmp16_ = {0}; - GdkRectangle _tmp17_; - gint _tmp18_; - GdkRectangle _tmp19_ = {0}; - GdkRectangle _tmp20_; - gint _tmp21_; - gdouble _tmp59_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp14_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp15_ = _tmp14_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp16_); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp17_ = _tmp16_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp18_ = _tmp17_.x; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp19_); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp20_ = _tmp19_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp21_ = _tmp20_.y; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp15_, (gdouble) _tmp18_, (gdouble) _tmp21_); -#line 467 "ChessEffect.c" - { - gdouble y = 0.0; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - y = (gdouble) 0; -#line 472 "ChessEffect.c" - { - gboolean _tmp22_ = FALSE; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp22_ = TRUE; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - while (TRUE) { -#line 479 "ChessEffect.c" - gdouble _tmp24_; - gdouble _tmp25_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (!_tmp22_) { -#line 484 "ChessEffect.c" - gdouble _tmp23_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp23_ = y; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - y = _tmp23_ + 1; -#line 490 "ChessEffect.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp22_ = FALSE; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp24_ = y; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp25_ = self->priv->square_count_y; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (!(_tmp24_ <= _tmp25_)) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - break; -#line 502 "ChessEffect.c" - } - { - gdouble x = 0.0; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - x = (gdouble) 0; -#line 508 "ChessEffect.c" - { - gboolean _tmp26_ = FALSE; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp26_ = TRUE; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - while (TRUE) { -#line 515 "ChessEffect.c" - gdouble _tmp28_; - gdouble _tmp29_; - gdouble _tmp30_ = 0.0; - gdouble _tmp31_; - gdouble _tmp32_; - gdouble translation = 0.0; - SpitTransitionsDirection _tmp33_; - SpitTransitionsDirection _tmp34_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (!_tmp26_) { -#line 526 "ChessEffect.c" - gdouble _tmp27_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp27_ = x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - x = _tmp27_ + 1; -#line 532 "ChessEffect.c" - } -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp26_ = FALSE; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp28_ = x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp29_ = self->priv->square_count_x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (!(_tmp28_ <= _tmp29_)) { -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - break; -#line 544 "ChessEffect.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp31_ = x; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp32_ = y; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (fmod (_tmp31_ + _tmp32_, 2) == ((gdouble) 0)) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp30_ = (-1.5) * CHESS_EFFECT_SQUARE_SIZE; -#line 554 "ChessEffect.c" - } else { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp30_ = 1.5 * CHESS_EFFECT_SQUARE_SIZE; -#line 558 "ChessEffect.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - translation = _tmp30_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp33_ = spit_transitions_motion_get_direction (motion); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp34_ = _tmp33_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (_tmp34_ == SPIT_TRANSITIONS_DIRECTION_FORWARD) { -#line 568 "ChessEffect.c" - GdkRectangle _tmp35_ = {0}; - GdkRectangle _tmp36_; - gint _tmp37_; - gdouble _tmp38_; - gdouble _tmp39_; - GdkRectangle _tmp40_ = {0}; - GdkRectangle _tmp41_; - gint _tmp42_; - gdouble _tmp43_; - gdouble _tmp44_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp35_); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp36_ = _tmp35_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp37_ = _tmp36_.x; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp38_ = translation; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp39_ = x; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp40_); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp41_ = _tmp40_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp42_ = _tmp41_.y; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp43_ = y; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp44_ = size; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_rectangle (ctx, (_tmp37_ + _tmp38_) + (_tmp39_ * CHESS_EFFECT_SQUARE_SIZE), _tmp42_ + (_tmp43_ * CHESS_EFFECT_SQUARE_SIZE), _tmp44_, (gdouble) CHESS_EFFECT_SQUARE_SIZE); -#line 601 "ChessEffect.c" - } else { - GdkRectangle _tmp45_ = {0}; - GdkRectangle _tmp46_; - gint _tmp47_; - GdkRectangle _tmp48_ = {0}; - GdkRectangle _tmp49_; - gint _tmp50_; - gdouble _tmp51_; - gdouble _tmp52_; - gdouble _tmp53_; - GdkRectangle _tmp54_ = {0}; - GdkRectangle _tmp55_; - gint _tmp56_; - gdouble _tmp57_; - gdouble _tmp58_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp45_); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp46_ = _tmp45_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp47_ = _tmp46_.x; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp48_); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp49_ = _tmp48_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp50_ = _tmp49_.width; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp51_ = translation; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp52_ = x; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp53_ = size; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp54_); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp55_ = _tmp54_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp56_ = _tmp55_.y; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp57_ = y; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp58_ = size; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_rectangle (ctx, (((_tmp47_ + _tmp50_) + _tmp51_) - (_tmp52_ * CHESS_EFFECT_SQUARE_SIZE)) - _tmp53_, _tmp56_ + (_tmp57_ * CHESS_EFFECT_SQUARE_SIZE), _tmp58_, (gdouble) CHESS_EFFECT_SQUARE_SIZE); -#line 647 "ChessEffect.c" - } - } - } - } - } - } - } -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_clip (ctx); -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp59_ = alpha; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_paint_with_alpha (ctx, _tmp59_); -#line 661 "ChessEffect.c" - } -} - - -static void -chess_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - ChessEffect * self; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 679 "ChessEffect.c" -} - - -static void -chess_effect_real_cancel (SpitTransitionsEffect* base) -{ - ChessEffect * self; -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 689 "ChessEffect.c" -} - - -static void -chess_effect_class_init (ChessEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - chess_effect_parent_class = g_type_class_peek_parent (klass); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_type_class_add_private (klass, sizeof (ChessEffectPrivate)); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - G_OBJECT_CLASS (klass)->finalize = chess_effect_finalize; -#line 702 "ChessEffect.c" -} - - -static void -chess_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - chess_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) chess_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) chess_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) chess_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) chess_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) chess_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) chess_effect_real_cancel; -#line 723 "ChessEffect.c" -} - - -static void -chess_effect_instance_init (ChessEffect * self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self->priv = CHESS_EFFECT_GET_PRIVATE (self); -#line 732 "ChessEffect.c" -} - - -static void -chess_effect_finalize (GObject * obj) -{ - ChessEffect * self; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CHESS_EFFECT, ChessEffect); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - G_OBJECT_CLASS (chess_effect_parent_class)->finalize (obj); -#line 744 "ChessEffect.c" -} - - -GType -chess_effect_get_type (void) -{ - static volatile gsize chess_effect_type_id__volatile = 0; - if (g_once_init_enter (&chess_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ChessEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) chess_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ChessEffect), 0, (GInstanceInitFunc) chess_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) chess_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType chess_effect_type_id; - chess_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "ChessEffect", &g_define_type_info, 0); - g_type_add_interface_static (chess_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&chess_effect_type_id__volatile, chess_effect_type_id); - } - return chess_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/CircleEffect.c b/plugins/shotwell-transitions/CircleEffect.c deleted file mode 100644 index cb2b660..0000000 --- a/plugins/shotwell-transitions/CircleEffect.c +++ /dev/null @@ -1,528 +0,0 @@ -/* CircleEffect.c generated by valac 0.40.4, the Vala compiler - * generated from CircleEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * 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 -#include -#include - - -#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; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#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; -typedef struct _CircleEffectDescriptorPrivate CircleEffectDescriptorPrivate; -enum { - CIRCLE_EFFECT_DESCRIPTOR_0_PROPERTY, - CIRCLE_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* circle_effect_descriptor_properties[CIRCLE_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_CIRCLE_EFFECT (circle_effect_get_type ()) -#define CIRCLE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLE_EFFECT, CircleEffect)) -#define CIRCLE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLE_EFFECT, CircleEffectClass)) -#define IS_CIRCLE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLE_EFFECT)) -#define IS_CIRCLE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLE_EFFECT)) -#define CIRCLE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLE_EFFECT, CircleEffectClass)) - -typedef struct _CircleEffect CircleEffect; -typedef struct _CircleEffectClass CircleEffectClass; -typedef struct _CircleEffectPrivate CircleEffectPrivate; -enum { - CIRCLE_EFFECT_0_PROPERTY, - CIRCLE_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* circle_effect_properties[CIRCLE_EFFECT_NUM_PROPERTIES]; - -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); -}; - -struct _CircleEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - CircleEffectDescriptorPrivate * priv; -}; - -struct _CircleEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _CircleEffect { - GObject parent_instance; - CircleEffectPrivate * priv; -}; - -struct _CircleEffectClass { - GObjectClass parent_class; -}; - - -static gpointer circle_effect_descriptor_parent_class = NULL; -static gpointer circle_effect_parent_class = NULL; -static SpitTransitionsEffectIface * circle_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType circle_effect_descriptor_get_type (void) G_GNUC_CONST; -CircleEffectDescriptor* circle_effect_descriptor_new (GFile* resource_directory); -CircleEffectDescriptor* circle_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* circle_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* circle_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* circle_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -CircleEffect* circle_effect_new (void); -CircleEffect* circle_effect_construct (GType object_type); -GType circle_effect_get_type (void) G_GNUC_CONST; -#define CIRCLE_EFFECT_DESIRED_FPS 25 -#define CIRCLE_EFFECT_MIN_FPS 15 -static void circle_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void circle_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean circle_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void circle_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void circle_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void circle_effect_real_cancel (SpitTransitionsEffect* base); - - -CircleEffectDescriptor* -circle_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - CircleEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = (CircleEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return self; -#line 152 "CircleEffect.c" -} - - -CircleEffectDescriptor* -circle_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return circle_effect_descriptor_construct (TYPE_CIRCLE_EFFECT_DESCRIPTOR, resource_directory); -#line 161 "CircleEffect.c" -} - - -static const gchar* -circle_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - CircleEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - result = "org.yorba.shotwell.transitions.circle"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return result; -#line 176 "CircleEffect.c" -} - - -static const gchar* -circle_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - CircleEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - result = _ ("Circle"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return result; -#line 191 "CircleEffect.c" -} - - -static SpitTransitionsEffect* -circle_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - CircleEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - CircleEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp0_ = circle_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return result; -#line 212 "CircleEffect.c" -} - - -static void -circle_effect_descriptor_class_init (CircleEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - circle_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) circle_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) circle_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) circle_effect_descriptor_real_create; -#line 227 "CircleEffect.c" -} - - -static void -circle_effect_descriptor_instance_init (CircleEffectDescriptor * self) -{ -} - - -GType -circle_effect_descriptor_get_type (void) -{ - static volatile gsize circle_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&circle_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CircleEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) circle_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CircleEffectDescriptor), 0, (GInstanceInitFunc) circle_effect_descriptor_instance_init, NULL }; - GType circle_effect_descriptor_type_id; - circle_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "CircleEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&circle_effect_descriptor_type_id__volatile, circle_effect_descriptor_type_id); - } - return circle_effect_descriptor_type_id__volatile; -} - - -CircleEffect* -circle_effect_construct (GType object_type) -{ - CircleEffect * self = NULL; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = (CircleEffect*) g_object_new (object_type, NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return self; -#line 259 "CircleEffect.c" -} - - -CircleEffect* -circle_effect_new (void) -{ -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return circle_effect_construct (TYPE_CIRCLE_EFFECT); -#line 268 "CircleEffect.c" -} - - -static void -circle_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - CircleEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _vala_desired_fps = CIRCLE_EFFECT_DESIRED_FPS; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _vala_min_fps = CIRCLE_EFFECT_MIN_FPS; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - if (desired_fps) { -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - *desired_fps = _vala_desired_fps; -#line 290 "CircleEffect.c" - } -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - if (min_fps) { -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - *min_fps = _vala_min_fps; -#line 296 "CircleEffect.c" - } -} - - -static void -circle_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - CircleEffect * self; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 313 "CircleEffect.c" -} - - -static gboolean -circle_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - CircleEffect * self; - gboolean result = FALSE; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - result = TRUE; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return result; -#line 328 "CircleEffect.c" -} - - -static void -circle_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - CircleEffect * self; - gdouble alpha = 0.0; - gint radius = 0; - gdouble _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (ctx != NULL); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp0_ = alpha; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - radius = (gint) (_tmp0_ * fmax ((gdouble) width, (gdouble) height)); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp1_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp2_ = _tmp1_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - if (_tmp2_ != NULL) { -#line 369 "CircleEffect.c" - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - GdkRectangle _tmp5_ = {0}; - GdkRectangle _tmp6_; - gint _tmp7_; - GdkRectangle _tmp8_ = {0}; - GdkRectangle _tmp9_; - gint _tmp10_; - gdouble _tmp11_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp3_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp4_ = _tmp3_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp5_); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp6_ = _tmp5_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp7_ = _tmp6_.x; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp8_); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp9_ = _tmp8_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp10_ = _tmp9_.y; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp4_, (gdouble) _tmp7_, (gdouble) _tmp10_); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp11_ = alpha; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - cairo_paint_with_alpha (ctx, 1 - _tmp11_); -#line 401 "CircleEffect.c" - } -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp12_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp13_ = _tmp12_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - if (_tmp13_ != NULL) { -#line 409 "CircleEffect.c" - GdkPixbuf* _tmp14_; - GdkPixbuf* _tmp15_; - GdkRectangle _tmp16_ = {0}; - GdkRectangle _tmp17_; - gint _tmp18_; - GdkRectangle _tmp19_ = {0}; - GdkRectangle _tmp20_; - gint _tmp21_; - gint _tmp22_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp14_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp15_ = _tmp14_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp16_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp17_ = _tmp16_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp18_ = _tmp17_.x; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp19_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp20_ = _tmp19_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp21_ = _tmp20_.y; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp15_, (gdouble) _tmp18_, (gdouble) _tmp21_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp22_ = radius; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - cairo_arc (ctx, (gdouble) (((gint) width) / 2), (gdouble) (((gint) height) / 2), (gdouble) _tmp22_, (gdouble) 0, 2 * G_PI); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - cairo_clip (ctx); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - cairo_paint (ctx); -#line 445 "CircleEffect.c" - } -} - - -static void -circle_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - CircleEffect * self; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 463 "CircleEffect.c" -} - - -static void -circle_effect_real_cancel (SpitTransitionsEffect* base) -{ - CircleEffect * self; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect); -#line 473 "CircleEffect.c" -} - - -static void -circle_effect_class_init (CircleEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - circle_effect_parent_class = g_type_class_peek_parent (klass); -#line 482 "CircleEffect.c" -} - - -static void -circle_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - circle_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) circle_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) circle_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) circle_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) circle_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) circle_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) circle_effect_real_cancel; -#line 503 "CircleEffect.c" -} - - -static void -circle_effect_instance_init (CircleEffect * self) -{ -} - - -GType -circle_effect_get_type (void) -{ - static volatile gsize circle_effect_type_id__volatile = 0; - if (g_once_init_enter (&circle_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CircleEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) circle_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CircleEffect), 0, (GInstanceInitFunc) circle_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) circle_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType circle_effect_type_id; - circle_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "CircleEffect", &g_define_type_info, 0); - g_type_add_interface_static (circle_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&circle_effect_type_id__volatile, circle_effect_type_id); - } - return circle_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/CirclesEffect.c b/plugins/shotwell-transitions/CirclesEffect.c deleted file mode 100644 index 410dc93..0000000 --- a/plugins/shotwell-transitions/CirclesEffect.c +++ /dev/null @@ -1,662 +0,0 @@ -/* CirclesEffect.c generated by valac 0.40.4, the Vala compiler - * generated from CirclesEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * 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 -#include -#include - - -#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; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#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; -typedef struct _CirclesEffectDescriptorPrivate CirclesEffectDescriptorPrivate; -enum { - CIRCLES_EFFECT_DESCRIPTOR_0_PROPERTY, - CIRCLES_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* circles_effect_descriptor_properties[CIRCLES_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_CIRCLES_EFFECT (circles_effect_get_type ()) -#define CIRCLES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLES_EFFECT, CirclesEffect)) -#define CIRCLES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLES_EFFECT, CirclesEffectClass)) -#define IS_CIRCLES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLES_EFFECT)) -#define IS_CIRCLES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLES_EFFECT)) -#define CIRCLES_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLES_EFFECT, CirclesEffectClass)) - -typedef struct _CirclesEffect CirclesEffect; -typedef struct _CirclesEffectClass CirclesEffectClass; -typedef struct _CirclesEffectPrivate CirclesEffectPrivate; -enum { - CIRCLES_EFFECT_0_PROPERTY, - CIRCLES_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* circles_effect_properties[CIRCLES_EFFECT_NUM_PROPERTIES]; - -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); -}; - -struct _CirclesEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - CirclesEffectDescriptorPrivate * priv; -}; - -struct _CirclesEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _CirclesEffect { - GObject parent_instance; - CirclesEffectPrivate * priv; -}; - -struct _CirclesEffectClass { - GObjectClass parent_class; -}; - - -static gpointer circles_effect_descriptor_parent_class = NULL; -static gpointer circles_effect_parent_class = NULL; -static SpitTransitionsEffectIface * circles_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType circles_effect_descriptor_get_type (void) G_GNUC_CONST; -CirclesEffectDescriptor* circles_effect_descriptor_new (GFile* resource_directory); -CirclesEffectDescriptor* circles_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* circles_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* circles_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* circles_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -CirclesEffect* circles_effect_new (void); -CirclesEffect* circles_effect_construct (GType object_type); -GType circles_effect_get_type (void) G_GNUC_CONST; -#define CIRCLES_EFFECT_DESIRED_FPS 25 -#define CIRCLES_EFFECT_MIN_FPS 15 -#define CIRCLES_EFFECT_SPEED 2.5 -static void circles_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void circles_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean circles_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void circles_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void circles_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void circles_effect_real_cancel (SpitTransitionsEffect* base); - - -CirclesEffectDescriptor* -circles_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - CirclesEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = (CirclesEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return self; -#line 153 "CirclesEffect.c" -} - - -CirclesEffectDescriptor* -circles_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return circles_effect_descriptor_construct (TYPE_CIRCLES_EFFECT_DESCRIPTOR, resource_directory); -#line 162 "CirclesEffect.c" -} - - -static const gchar* -circles_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - CirclesEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - result = "org.yorba.shotwell.transitions.circles"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return result; -#line 177 "CirclesEffect.c" -} - - -static const gchar* -circles_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - CirclesEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - result = _ ("Circles"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return result; -#line 192 "CirclesEffect.c" -} - - -static SpitTransitionsEffect* -circles_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - CirclesEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - CirclesEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp0_ = circles_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return result; -#line 213 "CirclesEffect.c" -} - - -static void -circles_effect_descriptor_class_init (CirclesEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - circles_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) circles_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) circles_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) circles_effect_descriptor_real_create; -#line 228 "CirclesEffect.c" -} - - -static void -circles_effect_descriptor_instance_init (CirclesEffectDescriptor * self) -{ -} - - -GType -circles_effect_descriptor_get_type (void) -{ - static volatile gsize circles_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&circles_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CirclesEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) circles_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CirclesEffectDescriptor), 0, (GInstanceInitFunc) circles_effect_descriptor_instance_init, NULL }; - GType circles_effect_descriptor_type_id; - circles_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "CirclesEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&circles_effect_descriptor_type_id__volatile, circles_effect_descriptor_type_id); - } - return circles_effect_descriptor_type_id__volatile; -} - - -CirclesEffect* -circles_effect_construct (GType object_type) -{ - CirclesEffect * self = NULL; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = (CirclesEffect*) g_object_new (object_type, NULL); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return self; -#line 260 "CirclesEffect.c" -} - - -CirclesEffect* -circles_effect_new (void) -{ -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return circles_effect_construct (TYPE_CIRCLES_EFFECT); -#line 269 "CirclesEffect.c" -} - - -static void -circles_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - CirclesEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _vala_desired_fps = CIRCLES_EFFECT_DESIRED_FPS; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _vala_min_fps = CIRCLES_EFFECT_MIN_FPS; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (desired_fps) { -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - *desired_fps = _vala_desired_fps; -#line 291 "CirclesEffect.c" - } -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (min_fps) { -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - *min_fps = _vala_min_fps; -#line 297 "CirclesEffect.c" - } -} - - -static void -circles_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - CirclesEffect * self; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 314 "CirclesEffect.c" -} - - -static gboolean -circles_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - CirclesEffect * self; - gboolean result = FALSE; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - result = TRUE; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return result; -#line 329 "CirclesEffect.c" -} - - -static void -circles_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - CirclesEffect * self; - gdouble alpha = 0.0; - gint distance = 0; - gint radius = 0; - gint circleCountX = 0; - gint _tmp0_; - gint circleCountY = 0; - gint _tmp1_; - gdouble maxRadius = 0.0; - gint _tmp2_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp14_; - GdkPixbuf* _tmp15_; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (ctx != NULL); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - distance = 60; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp0_ = distance; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - circleCountX = width / (2 * _tmp0_); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp1_ = distance; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - circleCountY = height / _tmp1_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp2_ = distance; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - maxRadius = CIRCLES_EFFECT_SPEED * _tmp2_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp3_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp4_ = _tmp3_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (_tmp4_ != NULL) { -#line 386 "CirclesEffect.c" - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; - GdkRectangle _tmp7_ = {0}; - GdkRectangle _tmp8_; - gint _tmp9_; - GdkRectangle _tmp10_ = {0}; - GdkRectangle _tmp11_; - gint _tmp12_; - gdouble _tmp13_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp5_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp6_ = _tmp5_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp7_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp8_ = _tmp7_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp9_ = _tmp8_.x; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp10_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp11_ = _tmp10_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp12_ = _tmp11_.y; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp6_, (gdouble) _tmp9_, (gdouble) _tmp12_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp13_ = alpha; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - cairo_paint_with_alpha (ctx, 1 - _tmp13_); -#line 418 "CirclesEffect.c" - } -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp14_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp15_ = _tmp14_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (_tmp15_ != NULL) { -#line 426 "CirclesEffect.c" - GdkPixbuf* _tmp16_; - GdkPixbuf* _tmp17_; - GdkRectangle _tmp18_ = {0}; - GdkRectangle _tmp19_; - gint _tmp20_; - GdkRectangle _tmp21_ = {0}; - GdkRectangle _tmp22_; - gint _tmp23_; - gdouble _tmp43_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp16_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp17_ = _tmp16_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp18_); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp19_ = _tmp18_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp20_ = _tmp19_.x; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp21_); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp22_ = _tmp21_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp23_ = _tmp22_.y; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp17_, (gdouble) _tmp20_, (gdouble) _tmp23_); -#line 454 "CirclesEffect.c" - { - gint y = 0; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - y = 0; -#line 459 "CirclesEffect.c" - { - gboolean _tmp24_ = FALSE; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp24_ = TRUE; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - while (TRUE) { -#line 466 "CirclesEffect.c" - gint _tmp26_; - gint _tmp27_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (!_tmp24_) { -#line 471 "CirclesEffect.c" - gint _tmp25_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp25_ = y; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - y = _tmp25_ + 1; -#line 477 "CirclesEffect.c" - } -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp24_ = FALSE; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp26_ = y; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp27_ = circleCountY; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (!(_tmp26_ <= _tmp27_)) { -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - break; -#line 489 "CirclesEffect.c" - } - { - gint x = 0; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - x = 0; -#line 495 "CirclesEffect.c" - { - gboolean _tmp28_ = FALSE; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp28_ = TRUE; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - while (TRUE) { -#line 502 "CirclesEffect.c" - gint _tmp30_; - gint _tmp31_; - gdouble _tmp32_; - gint _tmp33_; - gint _tmp34_; - gint _tmp35_; - gint _tmp36_; - gdouble _tmp37_; - gint _tmp38_; - gint _tmp39_; - gint _tmp40_; - gint _tmp41_; - gint _tmp42_; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (!_tmp28_) { -#line 518 "CirclesEffect.c" - gint _tmp29_; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp29_ = x; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - x = _tmp29_ + 1; -#line 524 "CirclesEffect.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp28_ = FALSE; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp30_ = x; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp31_ = circleCountX; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (!(_tmp30_ <= _tmp31_)) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - break; -#line 536 "CirclesEffect.c" - } -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp32_ = alpha; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp33_ = x; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp34_ = y; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp35_ = circleCountY; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp36_ = circleCountX; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp37_ = maxRadius; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - radius = (gint) (fmax ((gdouble) 0, fmin ((gdouble) 1, _tmp32_ - (((gdouble) (_tmp33_ + _tmp34_)) / ((gdouble) ((_tmp35_ + _tmp36_) * CIRCLES_EFFECT_SPEED))))) * _tmp37_); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp38_ = distance; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp39_ = x; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp40_ = distance; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp41_ = y; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp42_ = radius; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - cairo_arc (ctx, (gdouble) ((2 * _tmp38_) * _tmp39_), (gdouble) ((2 * _tmp40_) * _tmp41_), (gdouble) _tmp42_, (gdouble) 0, 2 * G_PI); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - cairo_fill (ctx); -#line 566 "CirclesEffect.c" - } - } - } - } - } - } -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - cairo_clip (ctx); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp43_ = alpha; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - cairo_paint_with_alpha (ctx, _tmp43_); -#line 579 "CirclesEffect.c" - } -} - - -static void -circles_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - CirclesEffect * self; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 597 "CirclesEffect.c" -} - - -static void -circles_effect_real_cancel (SpitTransitionsEffect* base) -{ - CirclesEffect * self; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect); -#line 607 "CirclesEffect.c" -} - - -static void -circles_effect_class_init (CirclesEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - circles_effect_parent_class = g_type_class_peek_parent (klass); -#line 616 "CirclesEffect.c" -} - - -static void -circles_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - circles_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) circles_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) circles_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) circles_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) circles_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) circles_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) circles_effect_real_cancel; -#line 637 "CirclesEffect.c" -} - - -static void -circles_effect_instance_init (CirclesEffect * self) -{ -} - - -GType -circles_effect_get_type (void) -{ - static volatile gsize circles_effect_type_id__volatile = 0; - if (g_once_init_enter (&circles_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CirclesEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) circles_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CirclesEffect), 0, (GInstanceInitFunc) circles_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) circles_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType circles_effect_type_id; - circles_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "CirclesEffect", &g_define_type_info, 0); - g_type_add_interface_static (circles_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&circles_effect_type_id__volatile, circles_effect_type_id); - } - return circles_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/ClockEffect.c b/plugins/shotwell-transitions/ClockEffect.c deleted file mode 100644 index f8f3748..0000000 --- a/plugins/shotwell-transitions/ClockEffect.c +++ /dev/null @@ -1,633 +0,0 @@ -/* ClockEffect.c generated by valac 0.40.4, the Vala compiler - * generated from ClockEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * 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 -#include -#include - - -#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; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#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; -typedef struct _ClockEffectDescriptorPrivate ClockEffectDescriptorPrivate; -enum { - CLOCK_EFFECT_DESCRIPTOR_0_PROPERTY, - CLOCK_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* clock_effect_descriptor_properties[CLOCK_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_CLOCK_EFFECT (clock_effect_get_type ()) -#define CLOCK_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CLOCK_EFFECT, ClockEffect)) -#define CLOCK_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CLOCK_EFFECT, ClockEffectClass)) -#define IS_CLOCK_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CLOCK_EFFECT)) -#define IS_CLOCK_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CLOCK_EFFECT)) -#define CLOCK_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CLOCK_EFFECT, ClockEffectClass)) - -typedef struct _ClockEffect ClockEffect; -typedef struct _ClockEffectClass ClockEffectClass; -typedef struct _ClockEffectPrivate ClockEffectPrivate; -enum { - CLOCK_EFFECT_0_PROPERTY, - CLOCK_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* clock_effect_properties[CLOCK_EFFECT_NUM_PROPERTIES]; - -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); -}; - -struct _ClockEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - ClockEffectDescriptorPrivate * priv; -}; - -struct _ClockEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _ClockEffect { - GObject parent_instance; - ClockEffectPrivate * priv; -}; - -struct _ClockEffectClass { - GObjectClass parent_class; -}; - - -static gpointer clock_effect_descriptor_parent_class = NULL; -static gpointer clock_effect_parent_class = NULL; -static SpitTransitionsEffectIface * clock_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType clock_effect_descriptor_get_type (void) G_GNUC_CONST; -ClockEffectDescriptor* clock_effect_descriptor_new (GFile* resource_directory); -ClockEffectDescriptor* clock_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* clock_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* clock_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* clock_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -ClockEffect* clock_effect_new (void); -ClockEffect* clock_effect_construct (GType object_type); -GType clock_effect_get_type (void) G_GNUC_CONST; -#define CLOCK_EFFECT_DESIRED_FPS 25 -#define CLOCK_EFFECT_MIN_FPS 15 -#define CLOCK_EFFECT_TOP_RADIANT (0.5 * G_PI) -static void clock_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void clock_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean clock_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void clock_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void clock_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void clock_effect_real_cancel (SpitTransitionsEffect* base); - - -ClockEffectDescriptor* -clock_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - ClockEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = (ClockEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return self; -#line 153 "ClockEffect.c" -} - - -ClockEffectDescriptor* -clock_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return clock_effect_descriptor_construct (TYPE_CLOCK_EFFECT_DESCRIPTOR, resource_directory); -#line 162 "ClockEffect.c" -} - - -static const gchar* -clock_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - ClockEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - result = "org.yorba.shotwell.transitions.clock"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return result; -#line 177 "ClockEffect.c" -} - - -static const gchar* -clock_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - ClockEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - result = _ ("Clock"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return result; -#line 192 "ClockEffect.c" -} - - -static SpitTransitionsEffect* -clock_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - ClockEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - ClockEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp0_ = clock_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return result; -#line 213 "ClockEffect.c" -} - - -static void -clock_effect_descriptor_class_init (ClockEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - clock_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) clock_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) clock_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) clock_effect_descriptor_real_create; -#line 228 "ClockEffect.c" -} - - -static void -clock_effect_descriptor_instance_init (ClockEffectDescriptor * self) -{ -} - - -GType -clock_effect_descriptor_get_type (void) -{ - static volatile gsize clock_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&clock_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ClockEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) clock_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ClockEffectDescriptor), 0, (GInstanceInitFunc) clock_effect_descriptor_instance_init, NULL }; - GType clock_effect_descriptor_type_id; - clock_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "ClockEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&clock_effect_descriptor_type_id__volatile, clock_effect_descriptor_type_id); - } - return clock_effect_descriptor_type_id__volatile; -} - - -ClockEffect* -clock_effect_construct (GType object_type) -{ - ClockEffect * self = NULL; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = (ClockEffect*) g_object_new (object_type, NULL); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return self; -#line 260 "ClockEffect.c" -} - - -ClockEffect* -clock_effect_new (void) -{ -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return clock_effect_construct (TYPE_CLOCK_EFFECT); -#line 269 "ClockEffect.c" -} - - -static void -clock_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - ClockEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _vala_desired_fps = CLOCK_EFFECT_DESIRED_FPS; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _vala_min_fps = CLOCK_EFFECT_MIN_FPS; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - if (desired_fps) { -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - *desired_fps = _vala_desired_fps; -#line 291 "ClockEffect.c" - } -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - if (min_fps) { -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - *min_fps = _vala_min_fps; -#line 297 "ClockEffect.c" - } -} - - -static void -clock_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - ClockEffect * self; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 314 "ClockEffect.c" -} - - -static gboolean -clock_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - ClockEffect * self; - gboolean result = FALSE; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - result = TRUE; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return result; -#line 329 "ClockEffect.c" -} - - -static void -clock_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - ClockEffect * self; - gdouble alpha = 0.0; - gdouble start_angle = 0.0; - gdouble stop_angle = 0.0; - SpitTransitionsDirection _tmp0_; - SpitTransitionsDirection _tmp1_; - gint radius = 0; - GdkRectangle _tmp4_ = {0}; - GdkRectangle _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_ = {0}; - GdkRectangle _tmp8_; - gint _tmp9_; - GdkPixbuf* _tmp10_; - GdkPixbuf* _tmp11_; - GdkPixbuf* _tmp21_; - GdkPixbuf* _tmp22_; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (ctx != NULL); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - start_angle = -CLOCK_EFFECT_TOP_RADIANT; -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - stop_angle = -CLOCK_EFFECT_TOP_RADIANT; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp0_ = spit_transitions_motion_get_direction (motion); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp1_ = _tmp0_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - if (_tmp1_ == SPIT_TRANSITIONS_DIRECTION_FORWARD) { -#line 379 "ClockEffect.c" - gdouble _tmp2_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp2_ = alpha; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - stop_angle = ((_tmp2_ * G_PI) * 2) - CLOCK_EFFECT_TOP_RADIANT; -#line 385 "ClockEffect.c" - } else { - gdouble _tmp3_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp3_ = alpha; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - start_angle = ((2 * (1 - _tmp3_)) * G_PI) - CLOCK_EFFECT_TOP_RADIANT; -#line 392 "ClockEffect.c" - } -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp4_); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp5_ = _tmp4_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp6_ = _tmp5_.width; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp7_); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp8_ = _tmp7_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp9_ = _tmp8_.height; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - radius = (gint) fmax ((gdouble) _tmp6_, (gdouble) _tmp9_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp10_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp11_ = _tmp10_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - if (_tmp11_ != NULL) { -#line 414 "ClockEffect.c" - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; - GdkRectangle _tmp14_ = {0}; - GdkRectangle _tmp15_; - gint _tmp16_; - GdkRectangle _tmp17_ = {0}; - GdkRectangle _tmp18_; - gint _tmp19_; - gdouble _tmp20_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp12_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp13_ = _tmp12_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp14_); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp15_ = _tmp14_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp16_ = _tmp15_.x; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp17_); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp18_ = _tmp17_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp19_ = _tmp18_.y; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp13_, (gdouble) _tmp16_, (gdouble) _tmp19_); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp20_ = alpha; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - cairo_paint_with_alpha (ctx, 1 - _tmp20_); -#line 446 "ClockEffect.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp21_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp22_ = _tmp21_; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - if (_tmp22_ != NULL) { -#line 454 "ClockEffect.c" - GdkPixbuf* _tmp23_; - GdkPixbuf* _tmp24_; - GdkRectangle _tmp25_ = {0}; - GdkRectangle _tmp26_; - gint _tmp27_; - GdkRectangle _tmp28_ = {0}; - GdkRectangle _tmp29_; - gint _tmp30_; - gint x = 0; - GdkRectangle _tmp31_ = {0}; - GdkRectangle _tmp32_; - gint _tmp33_; - GdkRectangle _tmp34_ = {0}; - GdkRectangle _tmp35_; - gint _tmp36_; - gint y = 0; - GdkRectangle _tmp37_ = {0}; - GdkRectangle _tmp38_; - gint _tmp39_; - GdkRectangle _tmp40_ = {0}; - GdkRectangle _tmp41_; - gint _tmp42_; - gint _tmp43_; - gint _tmp44_; - gint _tmp45_; - gint _tmp46_; - gint _tmp47_; - gdouble _tmp48_; - gdouble _tmp49_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp23_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp24_ = _tmp23_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp25_); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp26_ = _tmp25_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp27_ = _tmp26_.x; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp28_); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp29_ = _tmp28_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp30_ = _tmp29_.y; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp24_, (gdouble) _tmp27_, (gdouble) _tmp30_); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp31_); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp32_ = _tmp31_; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp33_ = _tmp32_.x; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp34_); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp35_ = _tmp34_; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp36_ = _tmp35_.width; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - x = _tmp33_ + (((gint) _tmp36_) / 2); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp37_); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp38_ = _tmp37_; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp39_ = _tmp38_.y; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp40_); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp41_ = _tmp40_; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp42_ = _tmp41_.height; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - y = _tmp39_ + (((gint) _tmp42_) / 2); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp43_ = x; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp44_ = y; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - cairo_move_to (ctx, (gdouble) _tmp43_, (gdouble) _tmp44_); -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp45_ = x; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp46_ = y; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp47_ = radius; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp48_ = start_angle; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp49_ = stop_angle; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - cairo_arc (ctx, (gdouble) _tmp45_, (gdouble) _tmp46_, (gdouble) _tmp47_, _tmp48_, _tmp49_); -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - cairo_fill_preserve (ctx); -#line 550 "ClockEffect.c" - } -} - - -static void -clock_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - ClockEffect * self; -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 568 "ClockEffect.c" -} - - -static void -clock_effect_real_cancel (SpitTransitionsEffect* base) -{ - ClockEffect * self; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect); -#line 578 "ClockEffect.c" -} - - -static void -clock_effect_class_init (ClockEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - clock_effect_parent_class = g_type_class_peek_parent (klass); -#line 587 "ClockEffect.c" -} - - -static void -clock_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - clock_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) clock_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) clock_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) clock_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) clock_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) clock_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) clock_effect_real_cancel; -#line 608 "ClockEffect.c" -} - - -static void -clock_effect_instance_init (ClockEffect * self) -{ -} - - -GType -clock_effect_get_type (void) -{ - static volatile gsize clock_effect_type_id__volatile = 0; - if (g_once_init_enter (&clock_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ClockEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) clock_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ClockEffect), 0, (GInstanceInitFunc) clock_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) clock_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType clock_effect_type_id; - clock_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "ClockEffect", &g_define_type_info, 0); - g_type_add_interface_static (clock_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&clock_effect_type_id__volatile, clock_effect_type_id); - } - return clock_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/CrumbleEffect.c b/plugins/shotwell-transitions/CrumbleEffect.c deleted file mode 100644 index 62b4c5e..0000000 --- a/plugins/shotwell-transitions/CrumbleEffect.c +++ /dev/null @@ -1,884 +0,0 @@ -/* CrumbleEffect.c generated by valac 0.40.4, the Vala compiler - * generated from CrumbleEffect.vala, do not modify */ - -/* Copyright 2010 Maxim Kartashev - * 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 -#include -#include -#include - - -#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; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#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; -typedef struct _CrumbleEffectDescriptorPrivate CrumbleEffectDescriptorPrivate; -enum { - CRUMBLE_EFFECT_DESCRIPTOR_0_PROPERTY, - CRUMBLE_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* crumble_effect_descriptor_properties[CRUMBLE_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_CRUMBLE_EFFECT (crumble_effect_get_type ()) -#define CRUMBLE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CRUMBLE_EFFECT, CrumbleEffect)) -#define CRUMBLE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CRUMBLE_EFFECT, CrumbleEffectClass)) -#define IS_CRUMBLE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CRUMBLE_EFFECT)) -#define IS_CRUMBLE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CRUMBLE_EFFECT)) -#define CRUMBLE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CRUMBLE_EFFECT, CrumbleEffectClass)) - -typedef struct _CrumbleEffect CrumbleEffect; -typedef struct _CrumbleEffectClass CrumbleEffectClass; -typedef struct _CrumbleEffectPrivate CrumbleEffectPrivate; -enum { - CRUMBLE_EFFECT_0_PROPERTY, - CRUMBLE_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* crumble_effect_properties[CRUMBLE_EFFECT_NUM_PROPERTIES]; -#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL))) -#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL))) -#define _g_rand_free0(var) ((var == NULL) ? NULL : (var = (g_rand_free (var), NULL))) - -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); -}; - -struct _CrumbleEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - CrumbleEffectDescriptorPrivate * priv; -}; - -struct _CrumbleEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _CrumbleEffect { - GObject parent_instance; - CrumbleEffectPrivate * priv; -}; - -struct _CrumbleEffectClass { - GObjectClass parent_class; -}; - -struct _CrumbleEffectPrivate { - cairo_surface_t** from_stripes; - gint from_stripes_length1; - gint _from_stripes_size_; - gdouble* accelerations; - gint accelerations_length1; - gint _accelerations_size_; - gint stripes_count; -}; - - -static gpointer crumble_effect_descriptor_parent_class = NULL; -static gpointer crumble_effect_parent_class = NULL; -static SpitTransitionsEffectIface * crumble_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType crumble_effect_descriptor_get_type (void) G_GNUC_CONST; -CrumbleEffectDescriptor* crumble_effect_descriptor_new (GFile* resource_directory); -CrumbleEffectDescriptor* crumble_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* crumble_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* crumble_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* crumble_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -CrumbleEffect* crumble_effect_new (void); -CrumbleEffect* crumble_effect_construct (GType object_type); -GType crumble_effect_get_type (void) G_GNUC_CONST; -#define CRUMBLE_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CRUMBLE_EFFECT, CrumbleEffectPrivate)) -#define CRUMBLE_EFFECT_DESIRED_FPS 25 -#define CRUMBLE_EFFECT_MIN_FPS 15 -#define CRUMBLE_EFFECT_STRIPE_WIDTH 10 -static void crumble_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static gboolean crumble_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void crumble_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static void crumble_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void crumble_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void crumble_effect_real_cancel (SpitTransitionsEffect* base); -static void crumble_effect_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); - - -CrumbleEffectDescriptor* -crumble_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - CrumbleEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = (CrumbleEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return self; -#line 175 "CrumbleEffect.c" -} - - -CrumbleEffectDescriptor* -crumble_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return crumble_effect_descriptor_construct (TYPE_CRUMBLE_EFFECT_DESCRIPTOR, resource_directory); -#line 184 "CrumbleEffect.c" -} - - -static const gchar* -crumble_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - CrumbleEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - result = "org.yorba.shotwell.transitions.crumble"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return result; -#line 199 "CrumbleEffect.c" -} - - -static const gchar* -crumble_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - CrumbleEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - result = _ ("Crumble"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return result; -#line 214 "CrumbleEffect.c" -} - - -static SpitTransitionsEffect* -crumble_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - CrumbleEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - CrumbleEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp0_ = crumble_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return result; -#line 235 "CrumbleEffect.c" -} - - -static void -crumble_effect_descriptor_class_init (CrumbleEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - crumble_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) crumble_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) crumble_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) crumble_effect_descriptor_real_create; -#line 250 "CrumbleEffect.c" -} - - -static void -crumble_effect_descriptor_instance_init (CrumbleEffectDescriptor * self) -{ -} - - -GType -crumble_effect_descriptor_get_type (void) -{ - static volatile gsize crumble_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&crumble_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CrumbleEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) crumble_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CrumbleEffectDescriptor), 0, (GInstanceInitFunc) crumble_effect_descriptor_instance_init, NULL }; - GType crumble_effect_descriptor_type_id; - crumble_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "CrumbleEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&crumble_effect_descriptor_type_id__volatile, crumble_effect_descriptor_type_id); - } - return crumble_effect_descriptor_type_id__volatile; -} - - -CrumbleEffect* -crumble_effect_construct (GType object_type) -{ - CrumbleEffect * self = NULL; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = (CrumbleEffect*) g_object_new (object_type, NULL); -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return self; -#line 282 "CrumbleEffect.c" -} - - -CrumbleEffect* -crumble_effect_new (void) -{ -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return crumble_effect_construct (TYPE_CRUMBLE_EFFECT); -#line 291 "CrumbleEffect.c" -} - - -static void -crumble_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - CrumbleEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _vala_desired_fps = CRUMBLE_EFFECT_DESIRED_FPS; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _vala_min_fps = CRUMBLE_EFFECT_MIN_FPS; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (desired_fps) { -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - *desired_fps = _vala_desired_fps; -#line 313 "CrumbleEffect.c" - } -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (min_fps) { -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - *min_fps = _vala_min_fps; -#line 319 "CrumbleEffect.c" - } -} - - -static gboolean -crumble_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - CrumbleEffect * self; - gboolean result = FALSE; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - result = TRUE; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return result; -#line 335 "CrumbleEffect.c" -} - - -static void -crumble_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - CrumbleEffect * self; - GRand* rand = NULL; - GRand* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp0_ = g_rand_new (); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - rand = _tmp0_; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp1_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp2_ = _tmp1_; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (_tmp2_ != NULL) { -#line 365 "CrumbleEffect.c" - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - cairo_surface_t** _tmp8_; - gint _tmp9_; - gdouble* _tmp10_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp3_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp4_ = _tmp3_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp5_ = gdk_pixbuf_get_width (_tmp4_); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp6_ = _tmp5_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->stripes_count = _tmp6_ / CRUMBLE_EFFECT_STRIPE_WIDTH; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp7_ = self->priv->stripes_count; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp8_ = g_new0 (cairo_surface_t*, _tmp7_ + 1); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->from_stripes = (_vala_array_free (self->priv->from_stripes, self->priv->from_stripes_length1, (GDestroyNotify) cairo_surface_destroy), NULL); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->from_stripes = _tmp8_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->from_stripes_length1 = _tmp7_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->_from_stripes_size_ = self->priv->from_stripes_length1; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp9_ = self->priv->stripes_count; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp10_ = g_new0 (gdouble, _tmp9_); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->accelerations = (g_free (self->priv->accelerations), NULL); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->accelerations = _tmp10_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->accelerations_length1 = _tmp9_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->_accelerations_size_ = self->priv->accelerations_length1; -#line 408 "CrumbleEffect.c" - { - gint i = 0; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - i = 0; -#line 413 "CrumbleEffect.c" - { - gboolean _tmp11_ = FALSE; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp11_ = TRUE; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - while (TRUE) { -#line 420 "CrumbleEffect.c" - gint _tmp13_; - gint _tmp14_; - cairo_surface_t** _tmp15_; - gint _tmp15__length1; - gint _tmp16_; - GdkPixbuf* _tmp17_; - GdkPixbuf* _tmp18_; - gint _tmp19_; - gint _tmp20_; - cairo_surface_t* _tmp21_; - cairo_surface_t* _tmp22_; - cairo_t* ctx = NULL; - cairo_surface_t** _tmp23_; - gint _tmp23__length1; - gint _tmp24_; - cairo_surface_t* _tmp25_; - cairo_t* _tmp26_; - cairo_t* _tmp27_; - GdkPixbuf* _tmp28_; - GdkPixbuf* _tmp29_; - gint _tmp30_; - cairo_t* _tmp31_; - gdouble* _tmp32_; - gint _tmp32__length1; - gint _tmp33_; - GRand* _tmp34_; - gdouble _tmp35_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (!_tmp11_) { -#line 450 "CrumbleEffect.c" - gint _tmp12_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp12_ = i; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - i = _tmp12_ + 1; -#line 456 "CrumbleEffect.c" - } -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp11_ = FALSE; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp13_ = i; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp14_ = self->priv->stripes_count; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (!(_tmp13_ < _tmp14_)) { -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - break; -#line 468 "CrumbleEffect.c" - } -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp15_ = self->priv->from_stripes; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp15__length1 = self->priv->from_stripes_length1; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp16_ = i; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp17_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp18_ = _tmp17_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp19_ = gdk_pixbuf_get_height (_tmp18_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp20_ = _tmp19_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp21_ = cairo_image_surface_create (CAIRO_FORMAT_RGB24, CRUMBLE_EFFECT_STRIPE_WIDTH, _tmp20_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _cairo_surface_destroy0 (_tmp15_[_tmp16_]); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp15_[_tmp16_] = _tmp21_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp22_ = _tmp15_[_tmp16_]; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp23_ = self->priv->from_stripes; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp23__length1 = self->priv->from_stripes_length1; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp24_ = i; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp25_ = _tmp23_[_tmp24_]; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp26_ = cairo_create (_tmp25_); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - ctx = _tmp26_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp27_ = ctx; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp28_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp29_ = _tmp28_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp30_ = i; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - gdk_cairo_set_source_pixbuf (_tmp27_, _tmp29_, (gdouble) ((-_tmp30_) * CRUMBLE_EFFECT_STRIPE_WIDTH), (gdouble) 0); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp31_ = ctx; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - cairo_paint (_tmp31_); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp32_ = self->priv->accelerations; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp32__length1 = self->priv->accelerations_length1; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp33_ = i; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp34_ = rand; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp32_[_tmp33_] = g_rand_double (_tmp34_); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp35_ = _tmp32_[_tmp33_]; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _cairo_destroy0 (ctx); -#line 532 "CrumbleEffect.c" - } - } - } - } -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _g_rand_free0 (rand); -#line 539 "CrumbleEffect.c" -} - - -static void -crumble_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - CrumbleEffect * self; - gdouble alpha = 0.0; - gdouble _tmp0_; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (ctx != NULL); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp0_ = alpha; -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (_tmp0_ < 0.5) { -#line 569 "CrumbleEffect.c" - gdouble _tmp1_; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp1_ = alpha; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - alpha = _tmp1_ * 2; -#line 575 "CrumbleEffect.c" - { - gint i = 0; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - i = 0; -#line 580 "CrumbleEffect.c" - { - gboolean _tmp2_ = FALSE; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp2_ = TRUE; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - while (TRUE) { -#line 587 "CrumbleEffect.c" - gint _tmp4_; - gint _tmp5_; - gint x = 0; - GdkRectangle _tmp6_ = {0}; - GdkRectangle _tmp7_; - gint _tmp8_; - gint _tmp9_; - gdouble a = 0.0; - gdouble _tmp10_; - gdouble _tmp11_; - gdouble* _tmp12_; - gint _tmp12__length1; - gint _tmp13_; - gdouble _tmp14_; - gint y = 0; - GdkRectangle _tmp15_ = {0}; - GdkRectangle _tmp16_; - gint _tmp17_; - GdkPixbuf* _tmp18_; - GdkPixbuf* _tmp19_; - gint _tmp20_; - gint _tmp21_; - gdouble _tmp22_; - gdouble _tmp23_; - cairo_surface_t** _tmp24_; - gint _tmp24__length1; - gint _tmp25_; - cairo_surface_t* _tmp26_; - gint _tmp27_; - gint _tmp28_; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (!_tmp2_) { -#line 620 "CrumbleEffect.c" - gint _tmp3_; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp3_ = i; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - i = _tmp3_ + 1; -#line 626 "CrumbleEffect.c" - } -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp2_ = FALSE; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp4_ = i; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp5_ = self->priv->stripes_count; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (!(_tmp4_ < _tmp5_)) { -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - break; -#line 638 "CrumbleEffect.c" - } -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp6_); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp7_ = _tmp6_; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp8_ = _tmp7_.x; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp9_ = i; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - x = _tmp8_ + (_tmp9_ * CRUMBLE_EFFECT_STRIPE_WIDTH); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp10_ = alpha; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp11_ = alpha; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp12_ = self->priv->accelerations; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp12__length1 = self->priv->accelerations_length1; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp13_ = i; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp14_ = _tmp12_[_tmp13_]; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - a = _tmp10_ + (_tmp11_ * _tmp14_); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp15_); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp16_ = _tmp15_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp17_ = _tmp16_.y; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp18_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp19_ = _tmp18_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp20_ = gdk_pixbuf_get_height (_tmp19_); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp21_ = _tmp20_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp22_ = a; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp23_ = a; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - y = _tmp17_ + ((gint) ((_tmp21_ * _tmp22_) * _tmp23_)); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp24_ = self->priv->from_stripes; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp24__length1 = self->priv->from_stripes_length1; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp25_ = i; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp26_ = _tmp24_[_tmp25_]; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp27_ = x; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp28_ = y; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - cairo_set_source_surface (ctx, _tmp26_, (gdouble) _tmp27_, (gdouble) _tmp28_); -#line 85 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - cairo_paint (ctx); -#line 700 "CrumbleEffect.c" - } - } - } - } else { - GdkPixbuf* _tmp29_; - GdkPixbuf* _tmp30_; -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp29_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp30_ = _tmp29_; -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (_tmp30_ != NULL) { -#line 713 "CrumbleEffect.c" - gdouble _tmp31_; - GdkPixbuf* _tmp32_; - GdkPixbuf* _tmp33_; - GdkRectangle _tmp34_ = {0}; - GdkRectangle _tmp35_; - gint _tmp36_; - GdkRectangle _tmp37_ = {0}; - GdkRectangle _tmp38_; - gint _tmp39_; - gdouble _tmp40_; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp31_ = alpha; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - alpha = (_tmp31_ - 0.5) * 2; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp32_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp33_ = _tmp32_; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp34_); -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp35_ = _tmp34_; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp36_ = _tmp35_.x; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp37_); -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp38_ = _tmp37_; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp39_ = _tmp38_.y; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp33_, (gdouble) _tmp36_, (gdouble) _tmp39_); -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp40_ = alpha; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - cairo_paint_with_alpha (ctx, _tmp40_); -#line 750 "CrumbleEffect.c" - } else { - } - } -} - - -static void -crumble_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - CrumbleEffect * self; -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 770 "CrumbleEffect.c" -} - - -static void -crumble_effect_real_cancel (SpitTransitionsEffect* base) -{ - CrumbleEffect * self; -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 780 "CrumbleEffect.c" -} - - -static void -crumble_effect_class_init (CrumbleEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - crumble_effect_parent_class = g_type_class_peek_parent (klass); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_type_class_add_private (klass, sizeof (CrumbleEffectPrivate)); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - G_OBJECT_CLASS (klass)->finalize = crumble_effect_finalize; -#line 793 "CrumbleEffect.c" -} - - -static void -crumble_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - crumble_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) crumble_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) crumble_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) crumble_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) crumble_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) crumble_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) crumble_effect_real_cancel; -#line 814 "CrumbleEffect.c" -} - - -static void -crumble_effect_instance_init (CrumbleEffect * self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv = CRUMBLE_EFFECT_GET_PRIVATE (self); -#line 823 "CrumbleEffect.c" -} - - -static void -crumble_effect_finalize (GObject * obj) -{ - CrumbleEffect * self; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->from_stripes = (_vala_array_free (self->priv->from_stripes, self->priv->from_stripes_length1, (GDestroyNotify) cairo_surface_destroy), NULL); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->accelerations = (g_free (self->priv->accelerations), NULL); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - G_OBJECT_CLASS (crumble_effect_parent_class)->finalize (obj); -#line 839 "CrumbleEffect.c" -} - - -GType -crumble_effect_get_type (void) -{ - static volatile gsize crumble_effect_type_id__volatile = 0; - if (g_once_init_enter (&crumble_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CrumbleEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) crumble_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CrumbleEffect), 0, (GInstanceInitFunc) crumble_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) crumble_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType crumble_effect_type_id; - crumble_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "CrumbleEffect", &g_define_type_info, 0); - g_type_add_interface_static (crumble_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&crumble_effect_type_id__volatile, crumble_effect_type_id); - } - return crumble_effect_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); -} - - - diff --git a/plugins/shotwell-transitions/FadeEffect.c b/plugins/shotwell-transitions/FadeEffect.c deleted file mode 100644 index 25551e2..0000000 --- a/plugins/shotwell-transitions/FadeEffect.c +++ /dev/null @@ -1,518 +0,0 @@ -/* FadeEffect.c generated by valac 0.40.4, the Vala compiler - * generated from FadeEffect.vala, do not modify */ - -/* Copyright 2010 Maxim Kartashev - * 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 -#include -#include - - -#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; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#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; -typedef struct _FadeEffectDescriptorPrivate FadeEffectDescriptorPrivate; -enum { - FADE_EFFECT_DESCRIPTOR_0_PROPERTY, - FADE_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* fade_effect_descriptor_properties[FADE_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_FADE_EFFECT (fade_effect_get_type ()) -#define FADE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FADE_EFFECT, FadeEffect)) -#define FADE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FADE_EFFECT, FadeEffectClass)) -#define IS_FADE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FADE_EFFECT)) -#define IS_FADE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FADE_EFFECT)) -#define FADE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FADE_EFFECT, FadeEffectClass)) - -typedef struct _FadeEffect FadeEffect; -typedef struct _FadeEffectClass FadeEffectClass; -typedef struct _FadeEffectPrivate FadeEffectPrivate; -enum { - FADE_EFFECT_0_PROPERTY, - FADE_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* fade_effect_properties[FADE_EFFECT_NUM_PROPERTIES]; - -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); -}; - -struct _FadeEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - FadeEffectDescriptorPrivate * priv; -}; - -struct _FadeEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _FadeEffect { - GObject parent_instance; - FadeEffectPrivate * priv; -}; - -struct _FadeEffectClass { - GObjectClass parent_class; -}; - - -static gpointer fade_effect_descriptor_parent_class = NULL; -static gpointer fade_effect_parent_class = NULL; -static SpitTransitionsEffectIface * fade_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType fade_effect_descriptor_get_type (void) G_GNUC_CONST; -FadeEffectDescriptor* fade_effect_descriptor_new (GFile* resource_directory); -FadeEffectDescriptor* fade_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* fade_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* fade_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* fade_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -FadeEffect* fade_effect_new (void); -FadeEffect* fade_effect_construct (GType object_type); -GType fade_effect_get_type (void) G_GNUC_CONST; -#define FADE_EFFECT_DESIRED_FPS 30 -#define FADE_EFFECT_MIN_FPS 20 -static void fade_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void fade_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean fade_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void fade_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void fade_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void fade_effect_real_cancel (SpitTransitionsEffect* base); - - -FadeEffectDescriptor* -fade_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - FadeEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = (FadeEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return self; -#line 152 "FadeEffect.c" -} - - -FadeEffectDescriptor* -fade_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return fade_effect_descriptor_construct (TYPE_FADE_EFFECT_DESCRIPTOR, resource_directory); -#line 161 "FadeEffect.c" -} - - -static const gchar* -fade_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - FadeEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - result = "org.yorba.shotwell.transitions.fade"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return result; -#line 176 "FadeEffect.c" -} - - -static const gchar* -fade_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - FadeEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - result = _ ("Fade"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return result; -#line 191 "FadeEffect.c" -} - - -static SpitTransitionsEffect* -fade_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - FadeEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - FadeEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp0_ = fade_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return result; -#line 212 "FadeEffect.c" -} - - -static void -fade_effect_descriptor_class_init (FadeEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - fade_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) fade_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) fade_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) fade_effect_descriptor_real_create; -#line 227 "FadeEffect.c" -} - - -static void -fade_effect_descriptor_instance_init (FadeEffectDescriptor * self) -{ -} - - -GType -fade_effect_descriptor_get_type (void) -{ - static volatile gsize fade_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&fade_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FadeEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fade_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FadeEffectDescriptor), 0, (GInstanceInitFunc) fade_effect_descriptor_instance_init, NULL }; - GType fade_effect_descriptor_type_id; - fade_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "FadeEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&fade_effect_descriptor_type_id__volatile, fade_effect_descriptor_type_id); - } - return fade_effect_descriptor_type_id__volatile; -} - - -FadeEffect* -fade_effect_construct (GType object_type) -{ - FadeEffect * self = NULL; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = (FadeEffect*) g_object_new (object_type, NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return self; -#line 259 "FadeEffect.c" -} - - -FadeEffect* -fade_effect_new (void) -{ -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return fade_effect_construct (TYPE_FADE_EFFECT); -#line 268 "FadeEffect.c" -} - - -static void -fade_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - FadeEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _vala_desired_fps = FADE_EFFECT_DESIRED_FPS; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _vala_min_fps = FADE_EFFECT_MIN_FPS; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - if (desired_fps) { -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - *desired_fps = _vala_desired_fps; -#line 290 "FadeEffect.c" - } -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - if (min_fps) { -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - *min_fps = _vala_min_fps; -#line 296 "FadeEffect.c" - } -} - - -static void -fade_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - FadeEffect * self; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 313 "FadeEffect.c" -} - - -static gboolean -fade_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - FadeEffect * self; - gboolean result = FALSE; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - result = TRUE; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return result; -#line 328 "FadeEffect.c" -} - - -static void -fade_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - FadeEffect * self; - gdouble alpha = 0.0; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp11_; - GdkPixbuf* _tmp12_; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (ctx != NULL); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp0_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp1_ = _tmp0_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - if (_tmp1_ != NULL) { -#line 363 "FadeEffect.c" - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - GdkRectangle _tmp4_ = {0}; - GdkRectangle _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_ = {0}; - GdkRectangle _tmp8_; - gint _tmp9_; - gdouble _tmp10_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp2_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp3_ = _tmp2_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp4_); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp5_ = _tmp4_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp6_ = _tmp5_.x; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp7_); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp8_ = _tmp7_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp9_ = _tmp8_.y; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp3_, (gdouble) _tmp6_, (gdouble) _tmp9_); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp10_ = alpha; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - cairo_paint_with_alpha (ctx, 1.0 - _tmp10_); -#line 395 "FadeEffect.c" - } -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp11_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp12_ = _tmp11_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - if (_tmp12_ != NULL) { -#line 403 "FadeEffect.c" - GdkPixbuf* _tmp13_; - GdkPixbuf* _tmp14_; - GdkRectangle _tmp15_ = {0}; - GdkRectangle _tmp16_; - gint _tmp17_; - GdkRectangle _tmp18_ = {0}; - GdkRectangle _tmp19_; - gint _tmp20_; - gdouble _tmp21_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp13_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp14_ = _tmp13_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp15_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp16_ = _tmp15_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp17_ = _tmp16_.x; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp18_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp19_ = _tmp18_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp20_ = _tmp19_.y; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp14_, (gdouble) _tmp17_, (gdouble) _tmp20_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp21_ = alpha; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - cairo_paint_with_alpha (ctx, _tmp21_); -#line 435 "FadeEffect.c" - } -} - - -static void -fade_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - FadeEffect * self; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 453 "FadeEffect.c" -} - - -static void -fade_effect_real_cancel (SpitTransitionsEffect* base) -{ - FadeEffect * self; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect); -#line 463 "FadeEffect.c" -} - - -static void -fade_effect_class_init (FadeEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - fade_effect_parent_class = g_type_class_peek_parent (klass); -#line 472 "FadeEffect.c" -} - - -static void -fade_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - fade_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) fade_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) fade_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) fade_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) fade_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) fade_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) fade_effect_real_cancel; -#line 493 "FadeEffect.c" -} - - -static void -fade_effect_instance_init (FadeEffect * self) -{ -} - - -GType -fade_effect_get_type (void) -{ - static volatile gsize fade_effect_type_id__volatile = 0; - if (g_once_init_enter (&fade_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FadeEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fade_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FadeEffect), 0, (GInstanceInitFunc) fade_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) fade_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType fade_effect_type_id; - fade_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "FadeEffect", &g_define_type_info, 0); - g_type_add_interface_static (fade_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&fade_effect_type_id__volatile, fade_effect_type_id); - } - return fade_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/SlideEffect.c b/plugins/shotwell-transitions/SlideEffect.c deleted file mode 100644 index f516265..0000000 --- a/plugins/shotwell-transitions/SlideEffect.c +++ /dev/null @@ -1,617 +0,0 @@ -/* SlideEffect.c generated by valac 0.40.4, the Vala compiler - * generated from SlideEffect.vala, do not modify */ - -/* Copyright 2010 Maxim Kartashev - * 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 -#include -#include -#include - - -#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; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#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; -typedef struct _SlideEffectDescriptorPrivate SlideEffectDescriptorPrivate; -enum { - SLIDE_EFFECT_DESCRIPTOR_0_PROPERTY, - SLIDE_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* slide_effect_descriptor_properties[SLIDE_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_SLIDE_EFFECT (slide_effect_get_type ()) -#define SLIDE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDE_EFFECT, SlideEffect)) -#define SLIDE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDE_EFFECT, SlideEffectClass)) -#define IS_SLIDE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDE_EFFECT)) -#define IS_SLIDE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDE_EFFECT)) -#define SLIDE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDE_EFFECT, SlideEffectClass)) - -typedef struct _SlideEffect SlideEffect; -typedef struct _SlideEffectClass SlideEffectClass; -typedef struct _SlideEffectPrivate SlideEffectPrivate; -enum { - SLIDE_EFFECT_0_PROPERTY, - SLIDE_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* slide_effect_properties[SLIDE_EFFECT_NUM_PROPERTIES]; - -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); -}; - -struct _SlideEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - SlideEffectDescriptorPrivate * priv; -}; - -struct _SlideEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _SlideEffect { - GObject parent_instance; - SlideEffectPrivate * priv; -}; - -struct _SlideEffectClass { - GObjectClass parent_class; -}; - - -static gpointer slide_effect_descriptor_parent_class = NULL; -static gpointer slide_effect_parent_class = NULL; -static SpitTransitionsEffectIface * slide_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType slide_effect_descriptor_get_type (void) G_GNUC_CONST; -SlideEffectDescriptor* slide_effect_descriptor_new (GFile* resource_directory); -SlideEffectDescriptor* slide_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* slide_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* slide_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* slide_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -SlideEffect* slide_effect_new (void); -SlideEffect* slide_effect_construct (GType object_type); -GType slide_effect_get_type (void) G_GNUC_CONST; -#define SLIDE_EFFECT_DESIRED_FPS 25 -#define SLIDE_EFFECT_MIN_FPS 15 -static void slide_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void slide_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean slide_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void slide_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void slide_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void slide_effect_real_cancel (SpitTransitionsEffect* base); - - -SlideEffectDescriptor* -slide_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - SlideEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = (SlideEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return self; -#line 153 "SlideEffect.c" -} - - -SlideEffectDescriptor* -slide_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return slide_effect_descriptor_construct (TYPE_SLIDE_EFFECT_DESCRIPTOR, resource_directory); -#line 162 "SlideEffect.c" -} - - -static const gchar* -slide_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - SlideEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - result = "org.yorba.shotwell.transitions.slide"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return result; -#line 177 "SlideEffect.c" -} - - -static const gchar* -slide_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - SlideEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - result = _ ("Slide"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return result; -#line 192 "SlideEffect.c" -} - - -static SpitTransitionsEffect* -slide_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - SlideEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - SlideEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp0_ = slide_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return result; -#line 213 "SlideEffect.c" -} - - -static void -slide_effect_descriptor_class_init (SlideEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - slide_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) slide_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) slide_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) slide_effect_descriptor_real_create; -#line 228 "SlideEffect.c" -} - - -static void -slide_effect_descriptor_instance_init (SlideEffectDescriptor * self) -{ -} - - -GType -slide_effect_descriptor_get_type (void) -{ - static volatile gsize slide_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&slide_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SlideEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) slide_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SlideEffectDescriptor), 0, (GInstanceInitFunc) slide_effect_descriptor_instance_init, NULL }; - GType slide_effect_descriptor_type_id; - slide_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "SlideEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&slide_effect_descriptor_type_id__volatile, slide_effect_descriptor_type_id); - } - return slide_effect_descriptor_type_id__volatile; -} - - -SlideEffect* -slide_effect_construct (GType object_type) -{ - SlideEffect * self = NULL; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = (SlideEffect*) g_object_new (object_type, NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return self; -#line 260 "SlideEffect.c" -} - - -SlideEffect* -slide_effect_new (void) -{ -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return slide_effect_construct (TYPE_SLIDE_EFFECT); -#line 269 "SlideEffect.c" -} - - -static void -slide_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - SlideEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _vala_desired_fps = SLIDE_EFFECT_DESIRED_FPS; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _vala_min_fps = SLIDE_EFFECT_MIN_FPS; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - if (desired_fps) { -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - *desired_fps = _vala_desired_fps; -#line 291 "SlideEffect.c" - } -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - if (min_fps) { -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - *min_fps = _vala_min_fps; -#line 297 "SlideEffect.c" - } -} - - -static void -slide_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - SlideEffect * self; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 314 "SlideEffect.c" -} - - -static gboolean -slide_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - SlideEffect * self; - gboolean result = FALSE; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - result = TRUE; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return result; -#line 329 "SlideEffect.c" -} - - -static void -slide_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - SlideEffect * self; - gdouble alpha = 0.0; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp21_; - GdkPixbuf* _tmp22_; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (ctx != NULL); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp0_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp1_ = _tmp0_; -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - if (_tmp1_ != NULL) { -#line 364 "SlideEffect.c" - gint _tmp2_ = 0; - SpitTransitionsDirection _tmp3_; - SpitTransitionsDirection _tmp4_; - gint from_target_x = 0; - gint from_current_x = 0; - GdkRectangle _tmp9_ = {0}; - GdkRectangle _tmp10_; - gint _tmp11_; - gdouble _tmp12_; - gint _tmp13_; - gdouble _tmp14_; - GdkPixbuf* _tmp15_; - GdkPixbuf* _tmp16_; - gint _tmp17_; - GdkRectangle _tmp18_ = {0}; - GdkRectangle _tmp19_; - gint _tmp20_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp3_ = spit_transitions_motion_get_direction (motion); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp4_ = _tmp3_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - if (_tmp4_ == SPIT_TRANSITIONS_DIRECTION_FORWARD) { -#line 388 "SlideEffect.c" - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; - gint _tmp7_; - gint _tmp8_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp5_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp6_ = _tmp5_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp7_ = gdk_pixbuf_get_width (_tmp6_); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp8_ = _tmp7_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp2_ = -_tmp8_; -#line 403 "SlideEffect.c" - } else { -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp2_ = width; -#line 407 "SlideEffect.c" - } -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - from_target_x = _tmp2_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp9_); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp10_ = _tmp9_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp11_ = _tmp10_.x; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp12_ = alpha; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp13_ = from_target_x; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp14_ = alpha; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - from_current_x = (gint) ((_tmp11_ * (1 - _tmp12_)) + (_tmp13_ * _tmp14_)); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp15_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp16_ = _tmp15_; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp17_ = from_current_x; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp18_); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp19_ = _tmp18_; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp20_ = _tmp19_.y; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp16_, (gdouble) _tmp17_, (gdouble) _tmp20_); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - cairo_paint (ctx); -#line 441 "SlideEffect.c" - } -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp21_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp22_ = _tmp21_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - if (_tmp22_ != NULL) { -#line 449 "SlideEffect.c" - gint to_target_x = 0; - GdkPixbuf* _tmp23_; - GdkPixbuf* _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _tmp27_ = 0; - SpitTransitionsDirection _tmp28_; - SpitTransitionsDirection _tmp29_; - gint from_x = 0; - gint to_current_x = 0; - gint _tmp34_; - gdouble _tmp35_; - gint _tmp36_; - gdouble _tmp37_; - GdkPixbuf* _tmp38_; - GdkPixbuf* _tmp39_; - gint _tmp40_; - GdkRectangle _tmp41_ = {0}; - GdkRectangle _tmp42_; - gint _tmp43_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp23_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp24_ = _tmp23_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp25_ = gdk_pixbuf_get_width (_tmp24_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp26_ = _tmp25_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - to_target_x = (width - _tmp26_) / 2; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp28_ = spit_transitions_motion_get_direction (motion); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp29_ = _tmp28_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - if (_tmp29_ == SPIT_TRANSITIONS_DIRECTION_FORWARD) { -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp27_ = width; -#line 488 "SlideEffect.c" - } else { - GdkPixbuf* _tmp30_; - GdkPixbuf* _tmp31_; - gint _tmp32_; - gint _tmp33_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp30_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp31_ = _tmp30_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp32_ = gdk_pixbuf_get_width (_tmp31_); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp33_ = _tmp32_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp27_ = -_tmp33_; -#line 504 "SlideEffect.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - from_x = _tmp27_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp34_ = from_x; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp35_ = alpha; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp36_ = to_target_x; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp37_ = alpha; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - to_current_x = (gint) ((_tmp34_ * (1 - _tmp35_)) + (_tmp36_ * _tmp37_)); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp38_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp39_ = _tmp38_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp40_ = to_current_x; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp41_); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp42_ = _tmp41_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp43_ = _tmp42_.y; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp39_, (gdouble) _tmp40_, (gdouble) _tmp43_); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - cairo_paint (ctx); -#line 534 "SlideEffect.c" - } -} - - -static void -slide_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - SlideEffect * self; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 552 "SlideEffect.c" -} - - -static void -slide_effect_real_cancel (SpitTransitionsEffect* base) -{ - SlideEffect * self; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect); -#line 562 "SlideEffect.c" -} - - -static void -slide_effect_class_init (SlideEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - slide_effect_parent_class = g_type_class_peek_parent (klass); -#line 571 "SlideEffect.c" -} - - -static void -slide_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - slide_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) slide_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) slide_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) slide_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) slide_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) slide_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) slide_effect_real_cancel; -#line 592 "SlideEffect.c" -} - - -static void -slide_effect_instance_init (SlideEffect * self) -{ -} - - -GType -slide_effect_get_type (void) -{ - static volatile gsize slide_effect_type_id__volatile = 0; - if (g_once_init_enter (&slide_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SlideEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) slide_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SlideEffect), 0, (GInstanceInitFunc) slide_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) slide_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType slide_effect_type_id; - slide_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "SlideEffect", &g_define_type_info, 0); - g_type_add_interface_static (slide_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&slide_effect_type_id__volatile, slide_effect_type_id); - } - return slide_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/SquaresEffect.c b/plugins/shotwell-transitions/SquaresEffect.c deleted file mode 100644 index 50bef64..0000000 --- a/plugins/shotwell-transitions/SquaresEffect.c +++ /dev/null @@ -1,707 +0,0 @@ -/* SquaresEffect.c generated by valac 0.40.4, the Vala compiler - * generated from SquaresEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * 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 -#include -#include - - -#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; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#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; -typedef struct _SquaresEffectDescriptorPrivate SquaresEffectDescriptorPrivate; -enum { - SQUARES_EFFECT_DESCRIPTOR_0_PROPERTY, - SQUARES_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* squares_effect_descriptor_properties[SQUARES_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_SQUARES_EFFECT (squares_effect_get_type ()) -#define SQUARES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SQUARES_EFFECT, SquaresEffect)) -#define SQUARES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SQUARES_EFFECT, SquaresEffectClass)) -#define IS_SQUARES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SQUARES_EFFECT)) -#define IS_SQUARES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SQUARES_EFFECT)) -#define SQUARES_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SQUARES_EFFECT, SquaresEffectClass)) - -typedef struct _SquaresEffect SquaresEffect; -typedef struct _SquaresEffectClass SquaresEffectClass; -typedef struct _SquaresEffectPrivate SquaresEffectPrivate; -enum { - SQUARES_EFFECT_0_PROPERTY, - SQUARES_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* squares_effect_properties[SQUARES_EFFECT_NUM_PROPERTIES]; - -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); -}; - -struct _SquaresEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - SquaresEffectDescriptorPrivate * priv; -}; - -struct _SquaresEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _SquaresEffect { - GObject parent_instance; - SquaresEffectPrivate * priv; -}; - -struct _SquaresEffectClass { - GObjectClass parent_class; -}; - -struct _SquaresEffectPrivate { - gdouble square_count_x; - gdouble square_count_y; -}; - - -static gpointer squares_effect_descriptor_parent_class = NULL; -static gpointer squares_effect_parent_class = NULL; -static SpitTransitionsEffectIface * squares_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType squares_effect_descriptor_get_type (void) G_GNUC_CONST; -SquaresEffectDescriptor* squares_effect_descriptor_new (GFile* resource_directory); -SquaresEffectDescriptor* squares_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* squares_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* squares_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* squares_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -SquaresEffect* squares_effect_new (void); -SquaresEffect* squares_effect_construct (GType object_type); -GType squares_effect_get_type (void) G_GNUC_CONST; -#define SQUARES_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SQUARES_EFFECT, SquaresEffectPrivate)) -#define SQUARES_EFFECT_DESIRED_FPS 25 -#define SQUARES_EFFECT_MIN_FPS 10 -#define SQUARES_EFFECT_SQUARE_SIZE 100 -static void squares_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void squares_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean squares_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void squares_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void squares_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void squares_effect_real_cancel (SpitTransitionsEffect* base); -static void squares_effect_finalize (GObject * obj); - - -SquaresEffectDescriptor* -squares_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - SquaresEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = (SquaresEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return self; -#line 160 "SquaresEffect.c" -} - - -SquaresEffectDescriptor* -squares_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return squares_effect_descriptor_construct (TYPE_SQUARES_EFFECT_DESCRIPTOR, resource_directory); -#line 169 "SquaresEffect.c" -} - - -static const gchar* -squares_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - SquaresEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - result = "org.yorba.shotwell.transitions.squares"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return result; -#line 184 "SquaresEffect.c" -} - - -static const gchar* -squares_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - SquaresEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - result = _ ("Squares"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return result; -#line 199 "SquaresEffect.c" -} - - -static SpitTransitionsEffect* -squares_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - SquaresEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - SquaresEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp0_ = squares_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return result; -#line 220 "SquaresEffect.c" -} - - -static void -squares_effect_descriptor_class_init (SquaresEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - squares_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) squares_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) squares_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) squares_effect_descriptor_real_create; -#line 235 "SquaresEffect.c" -} - - -static void -squares_effect_descriptor_instance_init (SquaresEffectDescriptor * self) -{ -} - - -GType -squares_effect_descriptor_get_type (void) -{ - static volatile gsize squares_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&squares_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SquaresEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) squares_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SquaresEffectDescriptor), 0, (GInstanceInitFunc) squares_effect_descriptor_instance_init, NULL }; - GType squares_effect_descriptor_type_id; - squares_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "SquaresEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&squares_effect_descriptor_type_id__volatile, squares_effect_descriptor_type_id); - } - return squares_effect_descriptor_type_id__volatile; -} - - -SquaresEffect* -squares_effect_construct (GType object_type) -{ - SquaresEffect * self = NULL; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = (SquaresEffect*) g_object_new (object_type, NULL); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return self; -#line 267 "SquaresEffect.c" -} - - -SquaresEffect* -squares_effect_new (void) -{ -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return squares_effect_construct (TYPE_SQUARES_EFFECT); -#line 276 "SquaresEffect.c" -} - - -static void -squares_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - SquaresEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _vala_desired_fps = SQUARES_EFFECT_DESIRED_FPS; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _vala_min_fps = SQUARES_EFFECT_MIN_FPS; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (desired_fps) { -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - *desired_fps = _vala_desired_fps; -#line 298 "SquaresEffect.c" - } -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (min_fps) { -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - *min_fps = _vala_min_fps; -#line 304 "SquaresEffect.c" - } -} - - -static void -squares_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - SquaresEffect * self; - GdkRectangle _tmp0_ = {0}; - GdkRectangle _tmp1_; - gint _tmp2_; - GdkRectangle _tmp3_ = {0}; - GdkRectangle _tmp4_; - gint _tmp5_; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp0_); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp1_ = _tmp0_; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp2_ = _tmp1_.width; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self->priv->square_count_x = (gdouble) ((_tmp2_ / SQUARES_EFFECT_SQUARE_SIZE) + 1); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp3_); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp4_ = _tmp3_; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp5_ = _tmp4_.height; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self->priv->square_count_y = (gdouble) ((_tmp5_ / SQUARES_EFFECT_SQUARE_SIZE) + 1); -#line 343 "SquaresEffect.c" -} - - -static gboolean -squares_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - SquaresEffect * self; - gboolean result = FALSE; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - result = TRUE; -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return result; -#line 358 "SquaresEffect.c" -} - - -static void -squares_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - SquaresEffect * self; - gdouble alpha = 0.0; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp11_; - GdkPixbuf* _tmp12_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (ctx != NULL); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp0_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp1_ = _tmp0_; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (_tmp1_ != NULL) { -#line 393 "SquaresEffect.c" - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - GdkRectangle _tmp4_ = {0}; - GdkRectangle _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_ = {0}; - GdkRectangle _tmp8_; - gint _tmp9_; - gdouble _tmp10_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp2_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp3_ = _tmp2_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp4_); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp5_ = _tmp4_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp6_ = _tmp5_.x; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp7_); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp8_ = _tmp7_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp9_ = _tmp8_.y; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp3_, (gdouble) _tmp6_, (gdouble) _tmp9_); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp10_ = alpha; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - cairo_paint_with_alpha (ctx, 1 - _tmp10_); -#line 425 "SquaresEffect.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp11_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp12_ = _tmp11_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (_tmp12_ != NULL) { -#line 433 "SquaresEffect.c" - GdkPixbuf* _tmp13_; - GdkPixbuf* _tmp14_; - GdkRectangle _tmp15_ = {0}; - GdkRectangle _tmp16_; - gint _tmp17_; - GdkRectangle _tmp18_ = {0}; - GdkRectangle _tmp19_; - gint _tmp20_; - gdouble _tmp46_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp13_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp14_ = _tmp13_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp15_); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp16_ = _tmp15_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp17_ = _tmp16_.x; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp18_); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp19_ = _tmp18_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp20_ = _tmp19_.y; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp14_, (gdouble) _tmp17_, (gdouble) _tmp20_); -#line 461 "SquaresEffect.c" - { - gdouble y = 0.0; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - y = (gdouble) 0; -#line 466 "SquaresEffect.c" - { - gboolean _tmp21_ = FALSE; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp21_ = TRUE; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - while (TRUE) { -#line 473 "SquaresEffect.c" - gdouble _tmp23_; - gdouble _tmp24_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (!_tmp21_) { -#line 478 "SquaresEffect.c" - gdouble _tmp22_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp22_ = y; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - y = _tmp22_ + 1; -#line 484 "SquaresEffect.c" - } -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp21_ = FALSE; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp23_ = y; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp24_ = self->priv->square_count_y; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (!(_tmp23_ <= _tmp24_)) { -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - break; -#line 496 "SquaresEffect.c" - } - { - gdouble x = 0.0; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - x = (gdouble) 0; -#line 502 "SquaresEffect.c" - { - gboolean _tmp25_ = FALSE; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp25_ = TRUE; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - while (TRUE) { -#line 509 "SquaresEffect.c" - gdouble _tmp27_; - gdouble _tmp28_; - gdouble size = 0.0; - gdouble _tmp29_; - gdouble _tmp30_; - gdouble _tmp31_; - gdouble _tmp32_; - gdouble _tmp33_; - gdouble _tmp34_; - gdouble _tmp35_; - GdkRectangle _tmp36_ = {0}; - GdkRectangle _tmp37_; - gint _tmp38_; - gdouble _tmp39_; - GdkRectangle _tmp40_ = {0}; - GdkRectangle _tmp41_; - gint _tmp42_; - gdouble _tmp43_; - gdouble _tmp44_; - gdouble _tmp45_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (!_tmp25_) { -#line 532 "SquaresEffect.c" - gdouble _tmp26_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp26_ = x; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - x = _tmp26_ + 1; -#line 538 "SquaresEffect.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp25_ = FALSE; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp27_ = x; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp28_ = self->priv->square_count_x; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (!(_tmp27_ <= _tmp28_)) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - break; -#line 550 "SquaresEffect.c" - } -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp29_ = alpha; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp30_ = self->priv->square_count_x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp31_ = x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp32_ = self->priv->square_count_x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp33_ = self->priv->square_count_y; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp34_ = y; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp35_ = self->priv->square_count_y; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - size = SQUARES_EFFECT_SQUARE_SIZE * fmin ((gdouble) 1, _tmp29_ + ((((_tmp30_ - _tmp31_) / _tmp32_) + ((_tmp33_ - _tmp34_) / _tmp35_)) / 2.5)); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp36_); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp37_ = _tmp36_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp38_ = _tmp37_.x; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp39_ = x; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp40_); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp41_ = _tmp40_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp42_ = _tmp41_.y; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp43_ = y; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp44_ = size; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp45_ = size; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - cairo_rectangle (ctx, _tmp38_ + (_tmp39_ * SQUARES_EFFECT_SQUARE_SIZE), _tmp42_ + (_tmp43_ * SQUARES_EFFECT_SQUARE_SIZE), _tmp44_, _tmp45_); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - cairo_fill (ctx); -#line 592 "SquaresEffect.c" - } - } - } - } - } - } -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - cairo_clip (ctx); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp46_ = alpha; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - cairo_paint_with_alpha (ctx, _tmp46_); -#line 605 "SquaresEffect.c" - } -} - - -static void -squares_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - SquaresEffect * self; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 623 "SquaresEffect.c" -} - - -static void -squares_effect_real_cancel (SpitTransitionsEffect* base) -{ - SquaresEffect * self; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 633 "SquaresEffect.c" -} - - -static void -squares_effect_class_init (SquaresEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - squares_effect_parent_class = g_type_class_peek_parent (klass); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_type_class_add_private (klass, sizeof (SquaresEffectPrivate)); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - G_OBJECT_CLASS (klass)->finalize = squares_effect_finalize; -#line 646 "SquaresEffect.c" -} - - -static void -squares_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - squares_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) squares_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) squares_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) squares_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) squares_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) squares_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) squares_effect_real_cancel; -#line 667 "SquaresEffect.c" -} - - -static void -squares_effect_instance_init (SquaresEffect * self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self->priv = SQUARES_EFFECT_GET_PRIVATE (self); -#line 676 "SquaresEffect.c" -} - - -static void -squares_effect_finalize (GObject * obj) -{ - SquaresEffect * self; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - G_OBJECT_CLASS (squares_effect_parent_class)->finalize (obj); -#line 688 "SquaresEffect.c" -} - - -GType -squares_effect_get_type (void) -{ - static volatile gsize squares_effect_type_id__volatile = 0; - if (g_once_init_enter (&squares_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SquaresEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) squares_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SquaresEffect), 0, (GInstanceInitFunc) squares_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) squares_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType squares_effect_type_id; - squares_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "SquaresEffect", &g_define_type_info, 0); - g_type_add_interface_static (squares_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&squares_effect_type_id__volatile, squares_effect_type_id); - } - return squares_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/StripesEffect.c b/plugins/shotwell-transitions/StripesEffect.c deleted file mode 100644 index d0bac4d..0000000 --- a/plugins/shotwell-transitions/StripesEffect.c +++ /dev/null @@ -1,704 +0,0 @@ -/* StripesEffect.c generated by valac 0.40.4, the Vala compiler - * generated from StripesEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * 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 -#include -#include - - -#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; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#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; -typedef struct _StripesEffectDescriptorPrivate StripesEffectDescriptorPrivate; -enum { - STRIPES_EFFECT_DESCRIPTOR_0_PROPERTY, - STRIPES_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* stripes_effect_descriptor_properties[STRIPES_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_STRIPES_EFFECT (stripes_effect_get_type ()) -#define STRIPES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STRIPES_EFFECT, StripesEffect)) -#define STRIPES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STRIPES_EFFECT, StripesEffectClass)) -#define IS_STRIPES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STRIPES_EFFECT)) -#define IS_STRIPES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STRIPES_EFFECT)) -#define STRIPES_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STRIPES_EFFECT, StripesEffectClass)) - -typedef struct _StripesEffect StripesEffect; -typedef struct _StripesEffectClass StripesEffectClass; -typedef struct _StripesEffectPrivate StripesEffectPrivate; -enum { - STRIPES_EFFECT_0_PROPERTY, - STRIPES_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* stripes_effect_properties[STRIPES_EFFECT_NUM_PROPERTIES]; - -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); -}; - -struct _StripesEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - StripesEffectDescriptorPrivate * priv; -}; - -struct _StripesEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _StripesEffect { - GObject parent_instance; - StripesEffectPrivate * priv; -}; - -struct _StripesEffectClass { - GObjectClass parent_class; -}; - -struct _StripesEffectPrivate { - gint stripe_count; -}; - - -static gpointer stripes_effect_descriptor_parent_class = NULL; -static gpointer stripes_effect_parent_class = NULL; -static SpitTransitionsEffectIface * stripes_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType stripes_effect_descriptor_get_type (void) G_GNUC_CONST; -StripesEffectDescriptor* stripes_effect_descriptor_new (GFile* resource_directory); -StripesEffectDescriptor* stripes_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* stripes_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* stripes_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* stripes_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -StripesEffect* stripes_effect_new (void); -StripesEffect* stripes_effect_construct (GType object_type); -GType stripes_effect_get_type (void) G_GNUC_CONST; -#define STRIPES_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_STRIPES_EFFECT, StripesEffectPrivate)) -#define STRIPES_EFFECT_DESIRED_FPS 25 -#define STRIPES_EFFECT_MIN_FPS 10 -#define STRIPES_EFFECT_STRIPE_HEIGHT 100 -static void stripes_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void stripes_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean stripes_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void stripes_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void stripes_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void stripes_effect_real_cancel (SpitTransitionsEffect* base); -static void stripes_effect_finalize (GObject * obj); - - -StripesEffectDescriptor* -stripes_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - StripesEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = (StripesEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return self; -#line 159 "StripesEffect.c" -} - - -StripesEffectDescriptor* -stripes_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return stripes_effect_descriptor_construct (TYPE_STRIPES_EFFECT_DESCRIPTOR, resource_directory); -#line 168 "StripesEffect.c" -} - - -static const gchar* -stripes_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - StripesEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - result = "org.yorba.shotwell.transitions.stripes"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return result; -#line 183 "StripesEffect.c" -} - - -static const gchar* -stripes_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - StripesEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - result = _ ("Stripes"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return result; -#line 198 "StripesEffect.c" -} - - -static SpitTransitionsEffect* -stripes_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - StripesEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - StripesEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp0_ = stripes_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return result; -#line 219 "StripesEffect.c" -} - - -static void -stripes_effect_descriptor_class_init (StripesEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - stripes_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) stripes_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) stripes_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) stripes_effect_descriptor_real_create; -#line 234 "StripesEffect.c" -} - - -static void -stripes_effect_descriptor_instance_init (StripesEffectDescriptor * self) -{ -} - - -GType -stripes_effect_descriptor_get_type (void) -{ - static volatile gsize stripes_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&stripes_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (StripesEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) stripes_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (StripesEffectDescriptor), 0, (GInstanceInitFunc) stripes_effect_descriptor_instance_init, NULL }; - GType stripes_effect_descriptor_type_id; - stripes_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "StripesEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&stripes_effect_descriptor_type_id__volatile, stripes_effect_descriptor_type_id); - } - return stripes_effect_descriptor_type_id__volatile; -} - - -StripesEffect* -stripes_effect_construct (GType object_type) -{ - StripesEffect * self = NULL; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = (StripesEffect*) g_object_new (object_type, NULL); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return self; -#line 266 "StripesEffect.c" -} - - -StripesEffect* -stripes_effect_new (void) -{ -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return stripes_effect_construct (TYPE_STRIPES_EFFECT); -#line 275 "StripesEffect.c" -} - - -static void -stripes_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - StripesEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect); -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _vala_desired_fps = STRIPES_EFFECT_DESIRED_FPS; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _vala_min_fps = STRIPES_EFFECT_MIN_FPS; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if (desired_fps) { -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - *desired_fps = _vala_desired_fps; -#line 297 "StripesEffect.c" - } -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if (min_fps) { -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - *min_fps = _vala_min_fps; -#line 303 "StripesEffect.c" - } -} - - -static void -stripes_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - StripesEffect * self; - GdkRectangle _tmp0_ = {0}; - GdkRectangle _tmp1_; - gint _tmp2_; -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp0_); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp1_ = _tmp0_; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp2_ = _tmp1_.height; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self->priv->stripe_count = (_tmp2_ / STRIPES_EFFECT_STRIPE_HEIGHT) + 1; -#line 331 "StripesEffect.c" -} - - -static gboolean -stripes_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - StripesEffect * self; - gboolean result = FALSE; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - result = TRUE; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return result; -#line 346 "StripesEffect.c" -} - - -static void -stripes_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - StripesEffect * self; - gdouble alpha = 0.0; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp11_; - GdkPixbuf* _tmp12_; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (ctx != NULL); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp0_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp1_ = _tmp0_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if (_tmp1_ != NULL) { -#line 381 "StripesEffect.c" - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - GdkRectangle _tmp4_ = {0}; - GdkRectangle _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_ = {0}; - GdkRectangle _tmp8_; - gint _tmp9_; - gdouble _tmp10_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp2_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp3_ = _tmp2_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp4_); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp5_ = _tmp4_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp6_ = _tmp5_.x; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp7_); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp8_ = _tmp7_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp9_ = _tmp8_.y; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp3_, (gdouble) _tmp6_, (gdouble) _tmp9_); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp10_ = alpha; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - cairo_paint_with_alpha (ctx, 1 - fmin ((gdouble) 1, _tmp10_ * 2)); -#line 413 "StripesEffect.c" - } -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp11_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp12_ = _tmp11_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if (_tmp12_ != NULL) { -#line 421 "StripesEffect.c" - GdkPixbuf* _tmp13_; - GdkPixbuf* _tmp14_; - GdkRectangle _tmp15_ = {0}; - GdkRectangle _tmp16_; - gint _tmp17_; - GdkRectangle _tmp18_ = {0}; - GdkRectangle _tmp19_; - gint _tmp20_; - gint x = 0; - GdkRectangle _tmp21_ = {0}; - GdkRectangle _tmp22_; - gint _tmp23_; - gint y = 0; - GdkRectangle _tmp24_ = {0}; - GdkRectangle _tmp25_; - gint _tmp26_; - gdouble _tmp55_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp13_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp14_ = _tmp13_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp15_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp16_ = _tmp15_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp17_ = _tmp16_.x; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp18_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp19_ = _tmp18_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp20_ = _tmp19_.y; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp14_, (gdouble) _tmp17_, (gdouble) _tmp20_); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp21_); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp22_ = _tmp21_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp23_ = _tmp22_.x; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - x = _tmp23_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp24_); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp25_ = _tmp24_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp26_ = _tmp25_.y; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - y = _tmp26_; -#line 473 "StripesEffect.c" - { - gint i = 0; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - i = 0; -#line 478 "StripesEffect.c" - { - gboolean _tmp27_ = FALSE; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp27_ = TRUE; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - while (TRUE) { -#line 485 "StripesEffect.c" - gint _tmp29_; - gint _tmp30_; - gint _tmp31_; - SpitTransitionsDirection _tmp32_; - SpitTransitionsDirection _tmp33_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if (!_tmp27_) { -#line 493 "StripesEffect.c" - gint _tmp28_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp28_ = i; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - i = _tmp28_ + 1; -#line 499 "StripesEffect.c" - } -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp27_ = FALSE; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp29_ = i; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp30_ = self->priv->stripe_count; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if (!(_tmp29_ <= _tmp30_)) { -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - break; -#line 511 "StripesEffect.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp31_ = i; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp32_ = spit_transitions_motion_get_direction (motion); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp33_ = _tmp32_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if ((_tmp31_ % 2) == ((gint) _tmp33_)) { -#line 521 "StripesEffect.c" - gint _tmp34_; - GdkRectangle _tmp35_ = {0}; - GdkRectangle _tmp36_; - gint _tmp37_; - gdouble _tmp38_; - GdkRectangle _tmp39_ = {0}; - GdkRectangle _tmp40_; - gint _tmp41_; - gint _tmp42_; - gint _tmp43_; - gint _tmp44_; - GdkRectangle _tmp45_ = {0}; - GdkRectangle _tmp46_; - gint _tmp47_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp34_ = x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp35_); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp36_ = _tmp35_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp37_ = _tmp36_.width; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp38_ = alpha; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp39_); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp40_ = _tmp39_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp41_ = _tmp40_.width; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp42_ = y; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp43_ = i; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp44_ = x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp45_); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp46_ = _tmp45_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp47_ = _tmp46_.width; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - cairo_rectangle (ctx, (_tmp34_ + _tmp37_) - (_tmp38_ * _tmp41_), (gdouble) (_tmp42_ + (_tmp43_ * STRIPES_EFFECT_STRIPE_HEIGHT)), (gdouble) (_tmp44_ + _tmp47_), (gdouble) STRIPES_EFFECT_STRIPE_HEIGHT); -#line 566 "StripesEffect.c" - } else { - gint _tmp48_; - gint _tmp49_; - gint _tmp50_; - GdkRectangle _tmp51_ = {0}; - GdkRectangle _tmp52_; - gint _tmp53_; - gdouble _tmp54_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp48_ = x; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp49_ = y; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp50_ = i; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp51_); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp52_ = _tmp51_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp53_ = _tmp52_.width; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp54_ = alpha; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - cairo_rectangle (ctx, (gdouble) _tmp48_, (gdouble) (_tmp49_ + (STRIPES_EFFECT_STRIPE_HEIGHT * _tmp50_)), _tmp53_ * _tmp54_, (gdouble) STRIPES_EFFECT_STRIPE_HEIGHT); -#line 591 "StripesEffect.c" - } - } - } - } -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - cairo_clip (ctx); -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp55_ = alpha; -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - cairo_paint_with_alpha (ctx, _tmp55_); -#line 602 "StripesEffect.c" - } -} - - -static void -stripes_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - StripesEffect * self; -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 620 "StripesEffect.c" -} - - -static void -stripes_effect_real_cancel (SpitTransitionsEffect* base) -{ - StripesEffect * self; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect); -#line 630 "StripesEffect.c" -} - - -static void -stripes_effect_class_init (StripesEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - stripes_effect_parent_class = g_type_class_peek_parent (klass); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_type_class_add_private (klass, sizeof (StripesEffectPrivate)); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - G_OBJECT_CLASS (klass)->finalize = stripes_effect_finalize; -#line 643 "StripesEffect.c" -} - - -static void -stripes_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - stripes_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) stripes_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) stripes_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) stripes_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) stripes_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) stripes_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) stripes_effect_real_cancel; -#line 664 "StripesEffect.c" -} - - -static void -stripes_effect_instance_init (StripesEffect * self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self->priv = STRIPES_EFFECT_GET_PRIVATE (self); -#line 673 "StripesEffect.c" -} - - -static void -stripes_effect_finalize (GObject * obj) -{ - StripesEffect * self; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_STRIPES_EFFECT, StripesEffect); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - G_OBJECT_CLASS (stripes_effect_parent_class)->finalize (obj); -#line 685 "StripesEffect.c" -} - - -GType -stripes_effect_get_type (void) -{ - static volatile gsize stripes_effect_type_id__volatile = 0; - if (g_once_init_enter (&stripes_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (StripesEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) stripes_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (StripesEffect), 0, (GInstanceInitFunc) stripes_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) stripes_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType stripes_effect_type_id; - stripes_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "StripesEffect", &g_define_type_info, 0); - g_type_add_interface_static (stripes_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&stripes_effect_type_id__volatile, stripes_effect_type_id); - } - return stripes_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/shotwell-transitions.c b/plugins/shotwell-transitions/shotwell-transitions.c deleted file mode 100644 index b8be39c..0000000 --- a/plugins/shotwell-transitions/shotwell-transitions.c +++ /dev/null @@ -1,1240 +0,0 @@ -/* shotwell-transitions.c generated by valac 0.40.4, the Vala compiler - * generated from shotwell-transitions.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * 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; -enum { - SHOTWELL_TRANSITIONS_0_PROPERTY, - SHOTWELL_TRANSITIONS_NUM_PROPERTIES -}; -static GParamSpec* shotwell_transitions_properties[SHOTWELL_TRANSITIONS_NUM_PROPERTIES]; - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#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; -enum { - SHOTWELL_TRANSITION_DESCRIPTOR_0_PROPERTY, - SHOTWELL_TRANSITION_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* shotwell_transition_descriptor_properties[SHOTWELL_TRANSITION_DESCRIPTOR_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -struct _ShotwellTransitions { - 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)) -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); -#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 330 "shotwell-transitions.c" - } -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 336 "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 352 "shotwell-transitions.c" - } -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 358 "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 374 "shotwell-transitions.c" - } -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 380 "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 396 "shotwell-transitions.c" - } -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 402 "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 418 "shotwell-transitions.c" - } -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 424 "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 440 "shotwell-transitions.c" - } -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 446 "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 462 "shotwell-transitions.c" - } -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 468 "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 484 "shotwell-transitions.c" - } -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 490 "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 506 "shotwell-transitions.c" - } -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 512 "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 528 "shotwell-transitions.c" - } -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 534 "shotwell-transitions.c" -} - - -ShotwellTransitions* -shotwell_transitions_construct (GType object_type, - GFile* module_file) -{ - ShotwellTransitions * self = NULL; - GFile* resource_directory = NULL; - GFile* _tmp0_; - SpitPluggable** _tmp1_; - gint _tmp1__length1; - FadeEffectDescriptor* _tmp2_; - SpitPluggable** _tmp3_; - gint _tmp3__length1; - SlideEffectDescriptor* _tmp4_; - SpitPluggable** _tmp5_; - gint _tmp5__length1; - CrumbleEffectDescriptor* _tmp6_; - SpitPluggable** _tmp7_; - gint _tmp7__length1; - BlindsEffectDescriptor* _tmp8_; - SpitPluggable** _tmp9_; - gint _tmp9__length1; - CircleEffectDescriptor* _tmp10_; - SpitPluggable** _tmp11_; - gint _tmp11__length1; - CirclesEffectDescriptor* _tmp12_; - SpitPluggable** _tmp13_; - gint _tmp13__length1; - ClockEffectDescriptor* _tmp14_; - SpitPluggable** _tmp15_; - gint _tmp15__length1; - SquaresEffectDescriptor* _tmp16_; - SpitPluggable** _tmp17_; - gint _tmp17__length1; - ChessEffectDescriptor* _tmp18_; - SpitPluggable** _tmp19_; - gint _tmp19__length1; - StripesEffectDescriptor* _tmp20_; -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_return_val_if_fail (G_IS_FILE (module_file), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = (ShotwellTransitions*) g_object_new (object_type, NULL); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = g_file_get_parent (module_file); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - resource_directory = _tmp0_; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp1_ = self->priv->pluggables; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp1__length1 = self->priv->pluggables_length1; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp2_ = fade_effect_descriptor_new (resource_directory); -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add1 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp3_ = self->priv->pluggables; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp3__length1 = self->priv->pluggables_length1; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp4_ = slide_effect_descriptor_new (resource_directory); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add2 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp5_ = self->priv->pluggables; -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp5__length1 = self->priv->pluggables_length1; -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp6_ = crumble_effect_descriptor_new (resource_directory); -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add3 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp7_ = self->priv->pluggables; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp7__length1 = self->priv->pluggables_length1; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp8_ = blinds_effect_descriptor_new (resource_directory); -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add4 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp9_ = self->priv->pluggables; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp9__length1 = self->priv->pluggables_length1; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp10_ = circle_effect_descriptor_new (resource_directory); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add5 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp11_ = self->priv->pluggables; -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp11__length1 = self->priv->pluggables_length1; -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp12_ = circles_effect_descriptor_new (resource_directory); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add6 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp13_ = self->priv->pluggables; -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp13__length1 = self->priv->pluggables_length1; -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp14_ = clock_effect_descriptor_new (resource_directory); -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add7 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp15_ = self->priv->pluggables; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp15__length1 = self->priv->pluggables_length1; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp16_ = squares_effect_descriptor_new (resource_directory); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add8 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp17_ = self->priv->pluggables; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp17__length1 = self->priv->pluggables_length1; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp18_ = chess_effect_descriptor_new (resource_directory); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add9 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp19_ = self->priv->pluggables; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp19__length1 = self->priv->pluggables_length1; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp20_ = stripes_effect_descriptor_new (resource_directory); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add10 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_object_unref0 (resource_directory); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return self; -#line 667 "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 676 "shotwell-transitions.c" -} - - -static const gchar* -shotwell_transitions_real_get_module_name (SpitModule* base) -{ - ShotwellTransitions * self; - const gchar* result = NULL; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = _ ("Core Slideshow Transitions"); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 691 "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 706 "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 721 "shotwell-transitions.c" -} - - -static SpitPluggable** -shotwell_transitions_real_get_pluggables (SpitModule* base, - int* result_length1) -{ - ShotwellTransitions * self; - SpitPluggable** result = NULL; - SpitPluggable** _tmp0_; - gint _tmp0__length1; - SpitPluggable** _tmp1_; - gint _tmp1__length1; -#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 749 "shotwell-transitions.c" - } -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = _tmp1_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 755 "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 768 "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 785 "shotwell-transitions.c" -} - - -static void -shotwell_transitions_instance_init (ShotwellTransitions * self) -{ - SpitPluggable** _tmp0_; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self->priv = SHOTWELL_TRANSITIONS_GET_PRIVATE (self); -#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 803 "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 817 "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; - gint _tmp0_; - gint _tmp1_; - ShotwellTransitions* _tmp2_ = NULL; - gint _tmp3_; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = (*params).host_min_spit_interface; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp1_ = (*params).host_max_spit_interface; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*params).module_spit_interface = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_CURRENT_INTERFACE); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp3_ = (*params).module_spit_interface; -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if (_tmp3_ != SPIT_UNSUPPORTED_INTERFACE) { -#line 855 "shotwell-transitions.c" - GFile* _tmp4_; - ShotwellTransitions* _tmp5_; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp4_ = (*params).module_file; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp5_ = shotwell_transitions_new (_tmp4_); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_object_unref0 (_tmp2_); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp2_ = _tmp5_; -#line 866 "shotwell-transitions.c" - } else { -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_object_unref0 (_tmp2_); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp2_ = NULL; -#line 872 "shotwell-transitions.c" - } -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_MODULE, SpitModule); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 878 "shotwell-transitions.c" -} - - -ShotwellTransitionDescriptor* -shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - ShotwellTransitionDescriptor * self = NULL; - GdkPixbuf** _tmp0_; - gint _tmp0__length1; -#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 899 "shotwell-transitions.c" - gint _tmp1_; - GdkPixbuf** _tmp2_; -#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 912 "shotwell-transitions.c" - } -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return self; -#line 916 "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; -#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" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_TRANSITIONS_CURRENT_INTERFACE); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 933 "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 944 "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 955 "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 966 "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 977 "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 986 "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 1000 "shotwell-transitions.c" - GdkPixbuf* _tmp0_; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result[i] = _tmp0_; -#line 1006 "shotwell-transitions.c" - } -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 1010 "shotwell-transitions.c" -} - - -static void -shotwell_transition_descriptor_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - ShotwellTransitionDescriptor * self; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GdkPixbuf** _tmp7_; - gint _tmp7__length1; - GdkPixbuf** _tmp8_; - gint _tmp8__length1; -#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_ = g_strdup (_ ("Copyright 2010 Maxim Kartashev, Copyright 2016 Software Freedom Conser" \ -"vancy Inc.")); -#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 = _tmp1_; -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp2_ = 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 = _tmp2_; -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp3_ = 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 = _tmp3_; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp4_ = 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 = _tmp4_; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp5_ = 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 = _tmp5_; -#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" - _tmp6_ = 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 = _tmp6_; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp7_ = shotwell_transition_descriptor_icon_pixbuf_set; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp7__length1 = shotwell_transition_descriptor_icon_pixbuf_set_length1; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup1 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp8__length1 = _tmp7__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 = _tmp8_; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).icons_length1 = _tmp8__length1; -#line 1092 "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 1103 "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 1115 "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 1127 "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 = (const gchar* (*) (ShotwellTransitionDescriptor *)) shotwell_transition_descriptor_real_get_id; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) shotwell_transition_descriptor_real_get_pluggable_name; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) shotwell_transition_descriptor_real_create; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - G_OBJECT_CLASS (klass)->finalize = shotwell_transition_descriptor_finalize; -#line 1144 "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 1163 "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 1174 "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 1192 "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