diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2018-09-30 14:09:20 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2018-09-30 14:09:20 +0200 |
commit | 5e9f4eea451a77ba3b93db3747841ed2bd969e9f (patch) | |
tree | 75046a38ca68975261d853a2e56ff7bf6b3e1daa /src/plugins | |
parent | 18b52c2983a1b3409011f72d27f15de576c5eb1c (diff) |
New upstream version 0.30.1upstream/0.30.1
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/DataImportsInterfaces.c | 2034 | ||||
-rw-r--r-- | src/plugins/ManifestWidget.c | 2049 | ||||
-rw-r--r-- | src/plugins/Plugins.c | 4582 | ||||
-rw-r--r-- | src/plugins/Plugins.vala | 4 | ||||
-rw-r--r-- | src/plugins/PublishingInterfaces.c | 2242 | ||||
-rw-r--r-- | src/plugins/SpitInterfaces.c | 1548 | ||||
-rw-r--r-- | src/plugins/StandardHostInterface.c | 737 | ||||
-rw-r--r-- | src/plugins/TransitionsInterfaces.c | 2249 |
8 files changed, 4 insertions, 15441 deletions
diff --git a/src/plugins/DataImportsInterfaces.c b/src/plugins/DataImportsInterfaces.c deleted file mode 100644 index eb06253..0000000 --- a/src/plugins/DataImportsInterfaces.c +++ /dev/null @@ -1,2034 +0,0 @@ -/* DataImportsInterfaces.c generated by valac 0.40.4, the Vala compiler - * generated from DataImportsInterfaces.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 <glib.h> -#include <glib-object.h> -#include <stdlib.h> -#include <string.h> -#include <gdk-pixbuf/gdk-pixbuf.h> -#include <gio/gio.h> -#include <float.h> -#include <math.h> -#include <gtk/gtk.h> -#include <time.h> - - -#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER (spit_data_imports_data_importer_get_type ()) -#define SPIT_DATA_IMPORTS_DATA_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, SpitDataImportsDataImporter)) -#define SPIT_DATA_IMPORTS_IS_DATA_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER)) -#define SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, SpitDataImportsDataImporterIface)) - -typedef struct _SpitDataImportsDataImporter SpitDataImportsDataImporter; -typedef struct _SpitDataImportsDataImporterIface SpitDataImportsDataImporterIface; - -#define SPIT_TYPE_PLUGGABLE (spit_pluggable_get_type ()) -#define SPIT_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggable)) -#define SPIT_IS_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_PLUGGABLE)) -#define SPIT_PLUGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggableIface)) - -typedef struct _SpitPluggable SpitPluggable; -typedef struct _SpitPluggableIface SpitPluggableIface; - -#define SPIT_TYPE_PLUGGABLE_INFO (spit_pluggable_info_get_type ()) -typedef struct _SpitPluggableInfo SpitPluggableInfo; - -#define SPIT_DATA_IMPORTS_TYPE_SERVICE (spit_data_imports_service_get_type ()) -#define SPIT_DATA_IMPORTS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_SERVICE, SpitDataImportsService)) -#define SPIT_DATA_IMPORTS_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_SERVICE)) -#define SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_SERVICE, SpitDataImportsServiceIface)) - -typedef struct _SpitDataImportsService SpitDataImportsService; -typedef struct _SpitDataImportsServiceIface SpitDataImportsServiceIface; - -#define SPIT_TYPE_HOST_INTERFACE (spit_host_interface_get_type ()) -#define SPIT_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterface)) -#define SPIT_IS_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_HOST_INTERFACE)) -#define SPIT_HOST_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterfaceIface)) - -typedef struct _SpitHostInterface SpitHostInterface; -typedef struct _SpitHostInterfaceIface SpitHostInterfaceIface; - -#define SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST (spit_data_imports_plugin_host_get_type ()) -#define SPIT_DATA_IMPORTS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)) -#define SPIT_DATA_IMPORTS_IS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST)) -#define SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHostIface)) - -typedef struct _SpitDataImportsPluginHost SpitDataImportsPluginHost; -typedef struct _SpitDataImportsPluginHostIface SpitDataImportsPluginHostIface; - -#define SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE (spit_data_imports_dialog_pane_get_type ()) -#define SPIT_DATA_IMPORTS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane)) -#define SPIT_DATA_IMPORTS_IS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE)) -#define SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPaneIface)) - -typedef struct _SpitDataImportsDialogPane SpitDataImportsDialogPane; -typedef struct _SpitDataImportsDialogPaneIface SpitDataImportsDialogPaneIface; - -#define SPIT_DATA_IMPORTS_DIALOG_PANE_TYPE_GEOMETRY_OPTIONS (spit_data_imports_dialog_pane_geometry_options_get_type ()) - -#define SPIT_DATA_IMPORTS_PLUGIN_HOST_TYPE_BUTTON_MODE (spit_data_imports_plugin_host_button_mode_get_type ()) - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY (spit_data_imports_importable_library_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_LIBRARY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY, SpitDataImportsImportableLibrary)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_LIBRARY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_LIBRARY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY, SpitDataImportsImportableLibraryIface)) - -typedef struct _SpitDataImportsImportableLibrary SpitDataImportsImportableLibrary; -typedef struct _SpitDataImportsImportableLibraryIface SpitDataImportsImportableLibraryIface; - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM (spit_data_imports_importable_media_item_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, SpitDataImportsImportableMediaItem)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, SpitDataImportsImportableMediaItemIface)) - -typedef struct _SpitDataImportsImportableMediaItem SpitDataImportsImportableMediaItem; -typedef struct _SpitDataImportsImportableMediaItemIface SpitDataImportsImportableMediaItemIface; - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG (spit_data_imports_importable_tag_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG, SpitDataImportsImportableTag)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_TAG_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG, SpitDataImportsImportableTagIface)) - -typedef struct _SpitDataImportsImportableTag SpitDataImportsImportableTag; -typedef struct _SpitDataImportsImportableTagIface SpitDataImportsImportableTagIface; - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT (spit_data_imports_importable_event_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT, SpitDataImportsImportableEvent)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_EVENT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT, SpitDataImportsImportableEventIface)) - -typedef struct _SpitDataImportsImportableEvent SpitDataImportsImportableEvent; -typedef struct _SpitDataImportsImportableEventIface SpitDataImportsImportableEventIface; - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING (spit_data_imports_importable_rating_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_RATING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING, SpitDataImportsImportableRating)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_RATING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_RATING_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING, SpitDataImportsImportableRatingIface)) - -typedef struct _SpitDataImportsImportableRating SpitDataImportsImportableRating; -typedef struct _SpitDataImportsImportableRatingIface SpitDataImportsImportableRatingIface; - -/** - * The error domain for alien databases - */ -typedef enum { - SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR_UNSUPPORTED_VERSION -} SpitDataImportsDataImportError; -#define SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR spit_data_imports_data_import_error_quark () -struct _SpitPluggableInfo { - gchar* version; - gchar* brief_description; - gchar* authors; - gchar* copyright; - gchar* license; - gboolean is_license_wordwrapped; - gchar* website_url; - gchar* website_name; - gchar* translators; - GdkPixbuf** icons; - gint icons_length1; -}; - -struct _SpitPluggableIface { - GTypeInterface parent_iface; - gint (*get_pluggable_interface) (SpitPluggable* self, gint min_host_interface, gint max_host_interface); - const gchar* (*get_id) (SpitPluggable* self); - const gchar* (*get_pluggable_name) (SpitPluggable* self); - void (*get_info) (SpitPluggable* self, SpitPluggableInfo* info); - void (*activation) (SpitPluggable* self, gboolean enabled); - void (*reserved0) (SpitPluggable* self); - void (*reserved1) (SpitPluggable* self); - void (*reserved2) (SpitPluggable* self); - void (*reserved3) (SpitPluggable* self); - void (*reserved4) (SpitPluggable* self); - void (*reserved5) (SpitPluggable* self); - void (*reserved6) (SpitPluggable* self); - void (*reserved7) (SpitPluggable* self); -}; - -struct _SpitHostInterfaceIface { - GTypeInterface parent_iface; - GFile* (*get_module_file) (SpitHostInterface* self); - gboolean (*get_config_bool) (SpitHostInterface* self, const gchar* key, gboolean def); - void (*set_config_bool) (SpitHostInterface* self, const gchar* key, gboolean val); - gint (*get_config_int) (SpitHostInterface* self, const gchar* key, gint def); - void (*set_config_int) (SpitHostInterface* self, const gchar* key, gint val); - gchar* (*get_config_string) (SpitHostInterface* self, const gchar* key, const gchar* def); - void (*set_config_string) (SpitHostInterface* self, const gchar* key, const gchar* val); - gdouble (*get_config_double) (SpitHostInterface* self, const gchar* key, gdouble def); - void (*set_config_double) (SpitHostInterface* self, const gchar* key, gdouble val); - void (*unset_config_key) (SpitHostInterface* self, const gchar* key); - void (*reserved0) (SpitHostInterface* self); - void (*reserved1) (SpitHostInterface* self); - void (*reserved2) (SpitHostInterface* self); - void (*reserved3) (SpitHostInterface* self); - void (*reserved4) (SpitHostInterface* self); - void (*reserved5) (SpitHostInterface* self); - void (*reserved6) (SpitHostInterface* self); - void (*reserved7) (SpitHostInterface* self); -}; - -typedef enum { - SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_NONE = 0, - SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE = 1 << 0, - SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE = 1 << 1, - SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE = 1 << 2 -} SpitDataImportsDialogPaneGeometryOptions; - -struct _SpitDataImportsDialogPaneIface { - GTypeInterface parent_iface; - GtkWidget* (*get_widget) (SpitDataImportsDialogPane* self); - SpitDataImportsDialogPaneGeometryOptions (*get_preferred_geometry) (SpitDataImportsDialogPane* self); - void (*on_pane_installed) (SpitDataImportsDialogPane* self); - void (*on_pane_uninstalled) (SpitDataImportsDialogPane* self); - void (*reserved0) (SpitDataImportsDialogPane* self); - void (*reserved1) (SpitDataImportsDialogPane* self); - void (*reserved2) (SpitDataImportsDialogPane* self); - void (*reserved3) (SpitDataImportsDialogPane* self); - void (*reserved4) (SpitDataImportsDialogPane* self); - void (*reserved5) (SpitDataImportsDialogPane* self); - void (*reserved6) (SpitDataImportsDialogPane* self); - void (*reserved7) (SpitDataImportsDialogPane* self); -}; - -typedef enum { - SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE = 0, - SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL = 1 -} SpitDataImportsPluginHostButtonMode; - -struct _SpitDataImportsImportableLibraryIface { - GTypeInterface parent_iface; - gchar* (*get_display_name) (SpitDataImportsImportableLibrary* self); -}; - -struct _SpitDataImportsImportableTagIface { - GTypeInterface parent_iface; - gchar* (*get_name) (SpitDataImportsImportableTag* self); - SpitDataImportsImportableTag* (*get_parent) (SpitDataImportsImportableTag* self); -}; - -struct _SpitDataImportsImportableEventIface { - GTypeInterface parent_iface; - gchar* (*get_name) (SpitDataImportsImportableEvent* self); -}; - -struct _SpitDataImportsImportableRatingIface { - GTypeInterface parent_iface; - gboolean (*is_unrated) (SpitDataImportsImportableRating* self); - gboolean (*is_rejected) (SpitDataImportsImportableRating* self); - gint (*get_value) (SpitDataImportsImportableRating* self); -}; - -struct _SpitDataImportsImportableMediaItemIface { - GTypeInterface parent_iface; - SpitDataImportsImportableTag** (*get_tags) (SpitDataImportsImportableMediaItem* self, int* result_length1); - SpitDataImportsImportableEvent* (*get_event) (SpitDataImportsImportableMediaItem* self); - SpitDataImportsImportableRating* (*get_rating) (SpitDataImportsImportableMediaItem* self); - gchar* (*get_title) (SpitDataImportsImportableMediaItem* self); - gchar* (*get_folder_path) (SpitDataImportsImportableMediaItem* self); - gchar* (*get_filename) (SpitDataImportsImportableMediaItem* self); - time_t* (*get_exposure_time) (SpitDataImportsImportableMediaItem* self); -}; - -typedef void (*SpitDataImportsImportedItemsCountCallback) (gint imported_items_count, void* user_data); -struct _SpitDataImportsPluginHostIface { - GTypeInterface parent_iface; - void (*post_error) (SpitDataImportsPluginHost* self, GError* err); - void (*post_error_message) (SpitDataImportsPluginHost* self, const gchar* msg); - void (*start_importing) (SpitDataImportsPluginHost* self); - void (*stop_importing) (SpitDataImportsPluginHost* self); - SpitDataImportsDataImporter* (*get_data_importer) (SpitDataImportsPluginHost* self); - void (*install_dialog_pane) (SpitDataImportsPluginHost* self, SpitDataImportsDialogPane* pane, SpitDataImportsPluginHostButtonMode mode); - void (*install_static_message_pane) (SpitDataImportsPluginHost* self, const gchar* message, SpitDataImportsPluginHostButtonMode mode); - void (*install_library_selection_pane) (SpitDataImportsPluginHost* self, const gchar* welcome_message, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1, const gchar* file_select_label); - void (*install_import_progress_pane) (SpitDataImportsPluginHost* self, const gchar* message); - void (*update_import_progress_pane) (SpitDataImportsPluginHost* self, gdouble progress, const gchar* progress_message); - void (*prepare_media_items_for_import) (SpitDataImportsPluginHost* self, SpitDataImportsImportableMediaItem** items, int items_length1, gdouble progress, gdouble host_progress_delta, const gchar* progress_message); - void (*finalize_import) (SpitDataImportsPluginHost* self, SpitDataImportsImportedItemsCountCallback report_imported_items_count, void* report_imported_items_count_target, const gchar* finalize_message); - void (*reserved0) (SpitDataImportsPluginHost* self); - void (*reserved1) (SpitDataImportsPluginHost* self); - void (*reserved2) (SpitDataImportsPluginHost* self); - void (*reserved3) (SpitDataImportsPluginHost* self); - void (*reserved4) (SpitDataImportsPluginHost* self); - void (*reserved5) (SpitDataImportsPluginHost* self); - void (*reserved6) (SpitDataImportsPluginHost* self); - void (*reserved7) (SpitDataImportsPluginHost* self); -}; - -struct _SpitDataImportsServiceIface { - GTypeInterface parent_iface; - SpitDataImportsDataImporter* (*create_data_importer) (SpitDataImportsService* self, SpitDataImportsPluginHost* host); - void (*reserved0) (SpitDataImportsService* self); - void (*reserved1) (SpitDataImportsService* self); - void (*reserved2) (SpitDataImportsService* self); - void (*reserved3) (SpitDataImportsService* self); - void (*reserved4) (SpitDataImportsService* self); - void (*reserved5) (SpitDataImportsService* self); - void (*reserved6) (SpitDataImportsService* self); - void (*reserved7) (SpitDataImportsService* self); -}; - -struct _SpitDataImportsDataImporterIface { - GTypeInterface parent_iface; - SpitDataImportsService* (*get_service) (SpitDataImportsDataImporter* self); - void (*start) (SpitDataImportsDataImporter* self); - gboolean (*is_running) (SpitDataImportsDataImporter* self); - void (*stop) (SpitDataImportsDataImporter* self); - void (*on_library_selected) (SpitDataImportsDataImporter* self, SpitDataImportsImportableLibrary* library); - void (*on_file_selected) (SpitDataImportsDataImporter* self, GFile* file); - void (*reserved0) (SpitDataImportsDataImporter* self); - void (*reserved1) (SpitDataImportsDataImporter* self); - void (*reserved2) (SpitDataImportsDataImporter* self); - void (*reserved3) (SpitDataImportsDataImporter* self); - void (*reserved4) (SpitDataImportsDataImporter* self); - void (*reserved5) (SpitDataImportsDataImporter* self); - void (*reserved6) (SpitDataImportsDataImporter* self); - void (*reserved7) (SpitDataImportsDataImporter* self); -}; - - - -#define SPIT_DATA_IMPORTS_CURRENT_INTERFACE 0 -GQuark spit_data_imports_data_import_error_quark (void); -GType spit_pluggable_info_get_type (void) G_GNUC_CONST; -SpitPluggableInfo* spit_pluggable_info_dup (const SpitPluggableInfo* self); -void spit_pluggable_info_free (SpitPluggableInfo* self); -void spit_pluggable_info_copy (const SpitPluggableInfo* self, - SpitPluggableInfo* dest); -void spit_pluggable_info_destroy (SpitPluggableInfo* self); -GType spit_pluggable_get_type (void) G_GNUC_CONST; -GType spit_host_interface_get_type (void) G_GNUC_CONST; -GType spit_data_imports_dialog_pane_geometry_options_get_type (void) G_GNUC_CONST; -GType spit_data_imports_dialog_pane_get_type (void) G_GNUC_CONST; -GType spit_data_imports_plugin_host_button_mode_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_library_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_tag_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_event_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_rating_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_media_item_get_type (void) G_GNUC_CONST; -GType spit_data_imports_plugin_host_get_type (void) G_GNUC_CONST; -GType spit_data_imports_service_get_type (void) G_GNUC_CONST; -GType spit_data_imports_data_importer_get_type (void) G_GNUC_CONST; -SpitDataImportsService* spit_data_imports_data_importer_get_service (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_start (SpitDataImportsDataImporter* self); -gboolean spit_data_imports_data_importer_is_running (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_stop (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_on_library_selected (SpitDataImportsDataImporter* self, - SpitDataImportsImportableLibrary* library); -void spit_data_imports_data_importer_on_file_selected (SpitDataImportsDataImporter* self, - GFile* file); -void spit_data_imports_data_importer_reserved0 (SpitDataImportsDataImporter* self); -static void spit_data_imports_data_importer_real_reserved0 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved1 (SpitDataImportsDataImporter* self); -static void spit_data_imports_data_importer_real_reserved1 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved2 (SpitDataImportsDataImporter* self); -static void spit_data_imports_data_importer_real_reserved2 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved3 (SpitDataImportsDataImporter* self); -static void spit_data_imports_data_importer_real_reserved3 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved4 (SpitDataImportsDataImporter* self); -static void spit_data_imports_data_importer_real_reserved4 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved5 (SpitDataImportsDataImporter* self); -static void spit_data_imports_data_importer_real_reserved5 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved6 (SpitDataImportsDataImporter* self); -static void spit_data_imports_data_importer_real_reserved6 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved7 (SpitDataImportsDataImporter* self); -static void spit_data_imports_data_importer_real_reserved7 (SpitDataImportsDataImporter* self); -gchar* spit_data_imports_importable_library_get_display_name (SpitDataImportsImportableLibrary* self); -SpitDataImportsImportableTag** spit_data_imports_importable_media_item_get_tags (SpitDataImportsImportableMediaItem* self, - int* result_length1); -SpitDataImportsImportableEvent* spit_data_imports_importable_media_item_get_event (SpitDataImportsImportableMediaItem* self); -SpitDataImportsImportableRating* spit_data_imports_importable_media_item_get_rating (SpitDataImportsImportableMediaItem* self); -gchar* spit_data_imports_importable_media_item_get_title (SpitDataImportsImportableMediaItem* self); -gchar* spit_data_imports_importable_media_item_get_folder_path (SpitDataImportsImportableMediaItem* self); -gchar* spit_data_imports_importable_media_item_get_filename (SpitDataImportsImportableMediaItem* self); -time_t* spit_data_imports_importable_media_item_get_exposure_time (SpitDataImportsImportableMediaItem* self); -gchar* spit_data_imports_importable_tag_get_name (SpitDataImportsImportableTag* self); -SpitDataImportsImportableTag* spit_data_imports_importable_tag_get_parent (SpitDataImportsImportableTag* self); -gchar* spit_data_imports_importable_event_get_name (SpitDataImportsImportableEvent* self); -gboolean spit_data_imports_importable_rating_is_unrated (SpitDataImportsImportableRating* self); -gboolean spit_data_imports_importable_rating_is_rejected (SpitDataImportsImportableRating* self); -gint spit_data_imports_importable_rating_get_value (SpitDataImportsImportableRating* self); -GtkWidget* spit_data_imports_dialog_pane_get_widget (SpitDataImportsDialogPane* self); -SpitDataImportsDialogPaneGeometryOptions spit_data_imports_dialog_pane_get_preferred_geometry (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_on_pane_installed (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_on_pane_uninstalled (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved0 (SpitDataImportsDialogPane* self); -static void spit_data_imports_dialog_pane_real_reserved0 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved1 (SpitDataImportsDialogPane* self); -static void spit_data_imports_dialog_pane_real_reserved1 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved2 (SpitDataImportsDialogPane* self); -static void spit_data_imports_dialog_pane_real_reserved2 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved3 (SpitDataImportsDialogPane* self); -static void spit_data_imports_dialog_pane_real_reserved3 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved4 (SpitDataImportsDialogPane* self); -static void spit_data_imports_dialog_pane_real_reserved4 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved5 (SpitDataImportsDialogPane* self); -static void spit_data_imports_dialog_pane_real_reserved5 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved6 (SpitDataImportsDialogPane* self); -static void spit_data_imports_dialog_pane_real_reserved6 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved7 (SpitDataImportsDialogPane* self); -static void spit_data_imports_dialog_pane_real_reserved7 (SpitDataImportsDialogPane* self); -void spit_data_imports_plugin_host_post_error (SpitDataImportsPluginHost* self, - GError* err); -void spit_data_imports_plugin_host_post_error_message (SpitDataImportsPluginHost* self, - const gchar* msg); -void spit_data_imports_plugin_host_start_importing (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_stop_importing (SpitDataImportsPluginHost* self); -SpitDataImportsDataImporter* spit_data_imports_plugin_host_get_data_importer (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_install_dialog_pane (SpitDataImportsPluginHost* self, - SpitDataImportsDialogPane* pane, - SpitDataImportsPluginHostButtonMode mode); -void spit_data_imports_plugin_host_install_static_message_pane (SpitDataImportsPluginHost* self, - const gchar* message, - SpitDataImportsPluginHostButtonMode mode); -void spit_data_imports_plugin_host_install_library_selection_pane (SpitDataImportsPluginHost* self, - const gchar* welcome_message, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1, - const gchar* file_select_label); -void spit_data_imports_plugin_host_install_import_progress_pane (SpitDataImportsPluginHost* self, - const gchar* message); -void spit_data_imports_plugin_host_update_import_progress_pane (SpitDataImportsPluginHost* self, - gdouble progress, - const gchar* progress_message); -void spit_data_imports_plugin_host_prepare_media_items_for_import (SpitDataImportsPluginHost* self, - SpitDataImportsImportableMediaItem** items, - int items_length1, - gdouble progress, - gdouble host_progress_delta, - const gchar* progress_message); -void spit_data_imports_plugin_host_finalize_import (SpitDataImportsPluginHost* self, - SpitDataImportsImportedItemsCountCallback report_imported_items_count, - void* report_imported_items_count_target, - const gchar* finalize_message); -void spit_data_imports_plugin_host_reserved0 (SpitDataImportsPluginHost* self); -static void spit_data_imports_plugin_host_real_reserved0 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved1 (SpitDataImportsPluginHost* self); -static void spit_data_imports_plugin_host_real_reserved1 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved2 (SpitDataImportsPluginHost* self); -static void spit_data_imports_plugin_host_real_reserved2 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved3 (SpitDataImportsPluginHost* self); -static void spit_data_imports_plugin_host_real_reserved3 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved4 (SpitDataImportsPluginHost* self); -static void spit_data_imports_plugin_host_real_reserved4 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved5 (SpitDataImportsPluginHost* self); -static void spit_data_imports_plugin_host_real_reserved5 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved6 (SpitDataImportsPluginHost* self); -static void spit_data_imports_plugin_host_real_reserved6 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved7 (SpitDataImportsPluginHost* self); -static void spit_data_imports_plugin_host_real_reserved7 (SpitDataImportsPluginHost* self); -SpitDataImportsDataImporter* spit_data_imports_service_create_data_importer (SpitDataImportsService* self, - SpitDataImportsPluginHost* host); -void spit_data_imports_service_reserved0 (SpitDataImportsService* self); -static void spit_data_imports_service_real_reserved0 (SpitDataImportsService* self); -void spit_data_imports_service_reserved1 (SpitDataImportsService* self); -static void spit_data_imports_service_real_reserved1 (SpitDataImportsService* self); -void spit_data_imports_service_reserved2 (SpitDataImportsService* self); -static void spit_data_imports_service_real_reserved2 (SpitDataImportsService* self); -void spit_data_imports_service_reserved3 (SpitDataImportsService* self); -static void spit_data_imports_service_real_reserved3 (SpitDataImportsService* self); -void spit_data_imports_service_reserved4 (SpitDataImportsService* self); -static void spit_data_imports_service_real_reserved4 (SpitDataImportsService* self); -void spit_data_imports_service_reserved5 (SpitDataImportsService* self); -static void spit_data_imports_service_real_reserved5 (SpitDataImportsService* self); -void spit_data_imports_service_reserved6 (SpitDataImportsService* self); -static void spit_data_imports_service_real_reserved6 (SpitDataImportsService* self); -void spit_data_imports_service_reserved7 (SpitDataImportsService* self); -static void spit_data_imports_service_real_reserved7 (SpitDataImportsService* self); - - -GQuark -spit_data_imports_data_import_error_quark (void) -{ - return g_quark_from_static_string ("spit_data_imports_data_import_error-quark"); -} - - -/** - * Returns a {@link Service} object describing the service to which this connects. - */ -SpitDataImportsService* -spit_data_imports_data_importer_get_service (SpitDataImportsDataImporter* self) -{ -#line 53 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self), NULL); -#line 53 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->get_service (self); -#line 465 "DataImportsInterfaces.c" -} - - -/** - * Makes this data importer enter the running state and endows it with exclusive access - * to the shared services provided by the {@link PluginHost}. Through the host’s interface, - * this data importer can install user interface panes and query configuration information. - */ -void -spit_data_imports_data_importer_start (SpitDataImportsDataImporter* self) -{ -#line 60 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 60 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->start (self); -#line 481 "DataImportsInterfaces.c" -} - - -/** - * Returns true if this data importer is in the running state; false otherwise. - */ -gboolean -spit_data_imports_data_importer_is_running (SpitDataImportsDataImporter* self) -{ -#line 65 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self), FALSE); -#line 65 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->is_running (self); -#line 495 "DataImportsInterfaces.c" -} - - -/** - * Causes this data importer to enter a non-running state. This data importer should stop all - * data access operations and cease use of the shared services provided by the {@link PluginHost}. - */ -void -spit_data_imports_data_importer_stop (SpitDataImportsDataImporter* self) -{ -#line 71 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 71 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->stop (self); -#line 510 "DataImportsInterfaces.c" -} - - -/** - * Causes this data importer to enter start the import of a library. - */ -void -spit_data_imports_data_importer_on_library_selected (SpitDataImportsDataImporter* self, - SpitDataImportsImportableLibrary* library) -{ -#line 76 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 76 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->on_library_selected (self, library); -#line 525 "DataImportsInterfaces.c" -} - - -/** - * Causes this data importer to enter start the import of a library file. - */ -void -spit_data_imports_data_importer_on_file_selected (SpitDataImportsDataImporter* self, - GFile* file) -{ -#line 81 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 81 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->on_file_selected (self, file); -#line 540 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_data_importer_real_reserved0 (SpitDataImportsDataImporter* self) -{ -} - - -void -spit_data_imports_data_importer_reserved0 (SpitDataImportsDataImporter* self) -{ -#line 86 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 86 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved0 (self); -#line 557 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_data_importer_real_reserved1 (SpitDataImportsDataImporter* self) -{ -} - - -void -spit_data_imports_data_importer_reserved1 (SpitDataImportsDataImporter* self) -{ -#line 87 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 87 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved1 (self); -#line 574 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_data_importer_real_reserved2 (SpitDataImportsDataImporter* self) -{ -} - - -void -spit_data_imports_data_importer_reserved2 (SpitDataImportsDataImporter* self) -{ -#line 88 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 88 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved2 (self); -#line 591 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_data_importer_real_reserved3 (SpitDataImportsDataImporter* self) -{ -} - - -void -spit_data_imports_data_importer_reserved3 (SpitDataImportsDataImporter* self) -{ -#line 89 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 89 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved3 (self); -#line 608 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_data_importer_real_reserved4 (SpitDataImportsDataImporter* self) -{ -} - - -void -spit_data_imports_data_importer_reserved4 (SpitDataImportsDataImporter* self) -{ -#line 90 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 90 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved4 (self); -#line 625 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_data_importer_real_reserved5 (SpitDataImportsDataImporter* self) -{ -} - - -void -spit_data_imports_data_importer_reserved5 (SpitDataImportsDataImporter* self) -{ -#line 91 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 91 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved5 (self); -#line 642 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_data_importer_real_reserved6 (SpitDataImportsDataImporter* self) -{ -} - - -void -spit_data_imports_data_importer_reserved6 (SpitDataImportsDataImporter* self) -{ -#line 92 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 92 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved6 (self); -#line 659 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_data_importer_real_reserved7 (SpitDataImportsDataImporter* self) -{ -} - - -void -spit_data_imports_data_importer_reserved7 (SpitDataImportsDataImporter* self) -{ -#line 93 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 93 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved7 (self); -#line 676 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_data_importer_base_init (SpitDataImportsDataImporterIface * iface) -{ -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - static gboolean initialized = FALSE; -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - if (!initialized) { -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - initialized = TRUE; -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved0 = spit_data_imports_data_importer_real_reserved0; -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved1 = spit_data_imports_data_importer_real_reserved1; -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved2 = spit_data_imports_data_importer_real_reserved2; -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved3 = spit_data_imports_data_importer_real_reserved3; -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved4 = spit_data_imports_data_importer_real_reserved4; -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved5 = spit_data_imports_data_importer_real_reserved5; -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved6 = spit_data_imports_data_importer_real_reserved6; -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved7 = spit_data_imports_data_importer_real_reserved7; -#line 705 "DataImportsInterfaces.c" - } -} - - -/** - * Represents a module that is able to import data from a specific database format. - * - * Developers of data import plugins provide a class that implements this interface. At - * any given time, only one DataImporter can be running. When a data importer is running, it - * has exclusive use of the shared user-interface and - * configuration services provided by the {@link PluginHost}. Data importers are created in - * a non-running state and do not begin running until start( ) is invoked. Data importers - * run until stop( ) is invoked. - */ -GType -spit_data_imports_data_importer_get_type (void) -{ - static volatile gsize spit_data_imports_data_importer_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_data_importer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsDataImporterIface), (GBaseInitFunc) spit_data_imports_data_importer_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_data_imports_data_importer_type_id; - spit_data_imports_data_importer_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsDataImporter", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_data_imports_data_importer_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_data_imports_data_importer_type_id__volatile, spit_data_imports_data_importer_type_id); - } - return spit_data_imports_data_importer_type_id__volatile; -} - - -gchar* -spit_data_imports_importable_library_get_display_name (SpitDataImportsImportableLibrary* self) -{ -#line 102 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_LIBRARY (self), NULL); -#line 102 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_LIBRARY_GET_INTERFACE (self)->get_display_name (self); -#line 742 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_importable_library_base_init (SpitDataImportsImportableLibraryIface * iface) -{ -#line 101 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - static gboolean initialized = FALSE; -#line 101 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - if (!initialized) { -#line 101 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - initialized = TRUE; -#line 755 "DataImportsInterfaces.c" - } -} - - -/** - * Represents a library of importable media items. - * - * Developers of data import plugins provide a class that implements this interface. - */ -GType -spit_data_imports_importable_library_get_type (void) -{ - static volatile gsize spit_data_imports_importable_library_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_importable_library_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsImportableLibraryIface), (GBaseInitFunc) spit_data_imports_importable_library_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_data_imports_importable_library_type_id; - spit_data_imports_importable_library_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsImportableLibrary", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_data_imports_importable_library_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_data_imports_importable_library_type_id__volatile, spit_data_imports_importable_library_type_id); - } - return spit_data_imports_importable_library_type_id__volatile; -} - - -SpitDataImportsImportableTag** -spit_data_imports_importable_media_item_get_tags (SpitDataImportsImportableMediaItem* self, - int* result_length1) -{ -#line 111 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL); -#line 111 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_tags (self, result_length1); -#line 788 "DataImportsInterfaces.c" -} - - -SpitDataImportsImportableEvent* -spit_data_imports_importable_media_item_get_event (SpitDataImportsImportableMediaItem* self) -{ -#line 113 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL); -#line 113 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_event (self); -#line 799 "DataImportsInterfaces.c" -} - - -SpitDataImportsImportableRating* -spit_data_imports_importable_media_item_get_rating (SpitDataImportsImportableMediaItem* self) -{ -#line 115 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL); -#line 115 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_rating (self); -#line 810 "DataImportsInterfaces.c" -} - - -gchar* -spit_data_imports_importable_media_item_get_title (SpitDataImportsImportableMediaItem* self) -{ -#line 117 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL); -#line 117 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_title (self); -#line 821 "DataImportsInterfaces.c" -} - - -gchar* -spit_data_imports_importable_media_item_get_folder_path (SpitDataImportsImportableMediaItem* self) -{ -#line 119 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL); -#line 119 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_folder_path (self); -#line 832 "DataImportsInterfaces.c" -} - - -gchar* -spit_data_imports_importable_media_item_get_filename (SpitDataImportsImportableMediaItem* self) -{ -#line 121 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL); -#line 121 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_filename (self); -#line 843 "DataImportsInterfaces.c" -} - - -time_t* -spit_data_imports_importable_media_item_get_exposure_time (SpitDataImportsImportableMediaItem* self) -{ -#line 123 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL); -#line 123 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_exposure_time (self); -#line 854 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_importable_media_item_base_init (SpitDataImportsImportableMediaItemIface * iface) -{ -#line 110 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - static gboolean initialized = FALSE; -#line 110 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - if (!initialized) { -#line 110 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - initialized = TRUE; -#line 867 "DataImportsInterfaces.c" - } -} - - -/** - * Represents an importable media item such as a photo or a video file. - * - * Developers of data import plugins provide a class that implements this interface. - */ -GType -spit_data_imports_importable_media_item_get_type (void) -{ - static volatile gsize spit_data_imports_importable_media_item_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_importable_media_item_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsImportableMediaItemIface), (GBaseInitFunc) spit_data_imports_importable_media_item_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_data_imports_importable_media_item_type_id; - spit_data_imports_importable_media_item_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsImportableMediaItem", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_data_imports_importable_media_item_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_data_imports_importable_media_item_type_id__volatile, spit_data_imports_importable_media_item_type_id); - } - return spit_data_imports_importable_media_item_type_id__volatile; -} - - -gchar* -spit_data_imports_importable_tag_get_name (SpitDataImportsImportableTag* self) -{ -#line 132 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_TAG (self), NULL); -#line 132 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_TAG_GET_INTERFACE (self)->get_name (self); -#line 899 "DataImportsInterfaces.c" -} - - -SpitDataImportsImportableTag* -spit_data_imports_importable_tag_get_parent (SpitDataImportsImportableTag* self) -{ -#line 134 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_TAG (self), NULL); -#line 134 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_TAG_GET_INTERFACE (self)->get_parent (self); -#line 910 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_importable_tag_base_init (SpitDataImportsImportableTagIface * iface) -{ -#line 131 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - static gboolean initialized = FALSE; -#line 131 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - if (!initialized) { -#line 131 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - initialized = TRUE; -#line 923 "DataImportsInterfaces.c" - } -} - - -/** - * Represents an importable tag. - * - * Developers of data import plugins provide a class that implements this interface. - */ -GType -spit_data_imports_importable_tag_get_type (void) -{ - static volatile gsize spit_data_imports_importable_tag_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_importable_tag_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsImportableTagIface), (GBaseInitFunc) spit_data_imports_importable_tag_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_data_imports_importable_tag_type_id; - spit_data_imports_importable_tag_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsImportableTag", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_data_imports_importable_tag_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_data_imports_importable_tag_type_id__volatile, spit_data_imports_importable_tag_type_id); - } - return spit_data_imports_importable_tag_type_id__volatile; -} - - -gchar* -spit_data_imports_importable_event_get_name (SpitDataImportsImportableEvent* self) -{ -#line 143 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_EVENT (self), NULL); -#line 143 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_EVENT_GET_INTERFACE (self)->get_name (self); -#line 955 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_importable_event_base_init (SpitDataImportsImportableEventIface * iface) -{ -#line 142 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - static gboolean initialized = FALSE; -#line 142 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - if (!initialized) { -#line 142 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - initialized = TRUE; -#line 968 "DataImportsInterfaces.c" - } -} - - -/** - * Represents an importable event. - * - * Developers of data import plugins provide a class that implements this interface. - */ -GType -spit_data_imports_importable_event_get_type (void) -{ - static volatile gsize spit_data_imports_importable_event_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_importable_event_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsImportableEventIface), (GBaseInitFunc) spit_data_imports_importable_event_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_data_imports_importable_event_type_id; - spit_data_imports_importable_event_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsImportableEvent", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_data_imports_importable_event_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_data_imports_importable_event_type_id__volatile, spit_data_imports_importable_event_type_id); - } - return spit_data_imports_importable_event_type_id__volatile; -} - - -gboolean -spit_data_imports_importable_rating_is_unrated (SpitDataImportsImportableRating* self) -{ -#line 155 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_RATING (self), FALSE); -#line 155 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_RATING_GET_INTERFACE (self)->is_unrated (self); -#line 1000 "DataImportsInterfaces.c" -} - - -gboolean -spit_data_imports_importable_rating_is_rejected (SpitDataImportsImportableRating* self) -{ -#line 157 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_RATING (self), FALSE); -#line 157 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_RATING_GET_INTERFACE (self)->is_rejected (self); -#line 1011 "DataImportsInterfaces.c" -} - - -gint -spit_data_imports_importable_rating_get_value (SpitDataImportsImportableRating* self) -{ -#line 159 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_RATING (self), 0); -#line 159 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_RATING_GET_INTERFACE (self)->get_value (self); -#line 1022 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_importable_rating_base_init (SpitDataImportsImportableRatingIface * iface) -{ -#line 154 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - static gboolean initialized = FALSE; -#line 154 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - if (!initialized) { -#line 154 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - initialized = TRUE; -#line 1035 "DataImportsInterfaces.c" - } -} - - -/** - * Represents an importable rating value. - * - * Developers of data import plugins provide a class that implements this interface. - * Note that the value returned by the get_value method should be a value between - * 1 and 5, unless the rating object is unrated or rejected, in which case the - * value is unspecified. - */ -GType -spit_data_imports_importable_rating_get_type (void) -{ - static volatile gsize spit_data_imports_importable_rating_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_importable_rating_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsImportableRatingIface), (GBaseInitFunc) spit_data_imports_importable_rating_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_data_imports_importable_rating_type_id; - spit_data_imports_importable_rating_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsImportableRating", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_data_imports_importable_rating_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_data_imports_importable_rating_type_id__volatile, spit_data_imports_importable_rating_type_id); - } - return spit_data_imports_importable_rating_type_id__volatile; -} - - -/** - * Describes how the on-screen publishing dialog box should look and behave when an associated - * pane is installed in the on-screen publishing dialog box. - */ -GType -spit_data_imports_dialog_pane_geometry_options_get_type (void) -{ - static volatile gsize spit_data_imports_dialog_pane_geometry_options_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_dialog_pane_geometry_options_type_id__volatile)) { - static const GEnumValue values[] = {{SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_NONE, "SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_NONE", "none"}, {SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE, "SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE", "extended-size"}, {SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE, "SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE", "resizable"}, {SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE, "SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE", "colossal-size"}, {0, NULL, NULL}}; - GType spit_data_imports_dialog_pane_geometry_options_type_id; - spit_data_imports_dialog_pane_geometry_options_type_id = g_enum_register_static ("SpitDataImportsDialogPaneGeometryOptions", values); - g_once_init_leave (&spit_data_imports_dialog_pane_geometry_options_type_id__volatile, spit_data_imports_dialog_pane_geometry_options_type_id); - } - return spit_data_imports_dialog_pane_geometry_options_type_id__volatile; -} - - -/** - * Returns the Gtk.Widget that is this pane's on-screen representation. - */ -GtkWidget* -spit_data_imports_dialog_pane_get_widget (SpitDataImportsDialogPane* self) -{ -#line 204 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self), NULL); -#line 204 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->get_widget (self); -#line 1091 "DataImportsInterfaces.c" -} - - -/** - * Returns a {@link GeometryOptions} bitfield describing how the on-screen publishing dialog - * box should look and behave when this pane is installed. - */ -SpitDataImportsDialogPaneGeometryOptions -spit_data_imports_dialog_pane_get_preferred_geometry (SpitDataImportsDialogPane* self) -{ -#line 210 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self), 0); -#line 210 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->get_preferred_geometry (self); -#line 1106 "DataImportsInterfaces.c" -} - - -/** - * Invoked automatically by Shotwell when this pane has been installed into the on-screen - * publishing dialog box and become visible to the user. - */ -void -spit_data_imports_dialog_pane_on_pane_installed (SpitDataImportsDialogPane* self) -{ -#line 216 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 216 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->on_pane_installed (self); -#line 1121 "DataImportsInterfaces.c" -} - - -/** - * Invoked automatically by Shotwell when this pane has been removed from the on-screen - * publishing dialog box and is no longer visible to the user. - */ -void -spit_data_imports_dialog_pane_on_pane_uninstalled (SpitDataImportsDialogPane* self) -{ -#line 222 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 222 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->on_pane_uninstalled (self); -#line 1136 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_dialog_pane_real_reserved0 (SpitDataImportsDialogPane* self) -{ -} - - -void -spit_data_imports_dialog_pane_reserved0 (SpitDataImportsDialogPane* self) -{ -#line 227 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 227 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved0 (self); -#line 1153 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_dialog_pane_real_reserved1 (SpitDataImportsDialogPane* self) -{ -} - - -void -spit_data_imports_dialog_pane_reserved1 (SpitDataImportsDialogPane* self) -{ -#line 228 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 228 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved1 (self); -#line 1170 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_dialog_pane_real_reserved2 (SpitDataImportsDialogPane* self) -{ -} - - -void -spit_data_imports_dialog_pane_reserved2 (SpitDataImportsDialogPane* self) -{ -#line 229 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 229 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved2 (self); -#line 1187 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_dialog_pane_real_reserved3 (SpitDataImportsDialogPane* self) -{ -} - - -void -spit_data_imports_dialog_pane_reserved3 (SpitDataImportsDialogPane* self) -{ -#line 230 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 230 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved3 (self); -#line 1204 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_dialog_pane_real_reserved4 (SpitDataImportsDialogPane* self) -{ -} - - -void -spit_data_imports_dialog_pane_reserved4 (SpitDataImportsDialogPane* self) -{ -#line 231 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 231 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved4 (self); -#line 1221 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_dialog_pane_real_reserved5 (SpitDataImportsDialogPane* self) -{ -} - - -void -spit_data_imports_dialog_pane_reserved5 (SpitDataImportsDialogPane* self) -{ -#line 232 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 232 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved5 (self); -#line 1238 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_dialog_pane_real_reserved6 (SpitDataImportsDialogPane* self) -{ -} - - -void -spit_data_imports_dialog_pane_reserved6 (SpitDataImportsDialogPane* self) -{ -#line 233 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 233 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved6 (self); -#line 1255 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_dialog_pane_real_reserved7 (SpitDataImportsDialogPane* self) -{ -} - - -void -spit_data_imports_dialog_pane_reserved7 (SpitDataImportsDialogPane* self) -{ -#line 234 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 234 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved7 (self); -#line 1272 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_dialog_pane_base_init (SpitDataImportsDialogPaneIface * iface) -{ -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - static gboolean initialized = FALSE; -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - if (!initialized) { -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - initialized = TRUE; -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved0 = spit_data_imports_dialog_pane_real_reserved0; -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved1 = spit_data_imports_dialog_pane_real_reserved1; -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved2 = spit_data_imports_dialog_pane_real_reserved2; -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved3 = spit_data_imports_dialog_pane_real_reserved3; -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved4 = spit_data_imports_dialog_pane_real_reserved4; -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved5 = spit_data_imports_dialog_pane_real_reserved5; -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved6 = spit_data_imports_dialog_pane_real_reserved6; -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved7 = spit_data_imports_dialog_pane_real_reserved7; -#line 1301 "DataImportsInterfaces.c" - } -} - - -/** - * Encapsulates a pane that can be installed in the on-screen import dialog box to - * communicate status to and to get information from the user. - * - */ -GType -spit_data_imports_dialog_pane_get_type (void) -{ - static volatile gsize spit_data_imports_dialog_pane_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_dialog_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsDialogPaneIface), (GBaseInitFunc) spit_data_imports_dialog_pane_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_data_imports_dialog_pane_type_id; - spit_data_imports_dialog_pane_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsDialogPane", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_data_imports_dialog_pane_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_data_imports_dialog_pane_type_id__volatile, spit_data_imports_dialog_pane_type_id); - } - return spit_data_imports_dialog_pane_type_id__volatile; -} - - -/** - * Specifies the label text on the push button control that appears in the - * lower-right-hand corner of the on-screen publishing dialog box. - */ -GType -spit_data_imports_plugin_host_button_mode_get_type (void) -{ - static volatile gsize spit_data_imports_plugin_host_button_mode_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_plugin_host_button_mode_type_id__volatile)) { - static const GEnumValue values[] = {{SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE, "SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE", "close"}, {SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL, "SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL", "cancel"}, {0, NULL, NULL}}; - GType spit_data_imports_plugin_host_button_mode_type_id; - spit_data_imports_plugin_host_button_mode_type_id = g_enum_register_static ("SpitDataImportsPluginHostButtonMode", values); - g_once_init_leave (&spit_data_imports_plugin_host_button_mode_type_id__volatile, spit_data_imports_plugin_host_button_mode_type_id); - } - return spit_data_imports_plugin_host_button_mode_type_id__volatile; -} - - -/** - * Notifies the user that an unrecoverable import error has occurred and halts - * the import process. - * - * @param err An error object that describes the kind of error that occurred. - */ -void -spit_data_imports_plugin_host_post_error (SpitDataImportsPluginHost* self, - GError* err) -{ -#line 271 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 271 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->post_error (self, err); -#line 1358 "DataImportsInterfaces.c" -} - - -/** - * Notifies the user that an unrecoverable import error has occurred and halts - * the import process. - * - * @param msg A message that describes the kind of error that occurred. - */ -void -spit_data_imports_plugin_host_post_error_message (SpitDataImportsPluginHost* self, - const gchar* msg) -{ -#line 279 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 279 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->post_error_message (self, msg); -#line 1376 "DataImportsInterfaces.c" -} - - -/** - * Starts the import process. - * - * Calling this method starts the import activity for this host. - */ -void -spit_data_imports_plugin_host_start_importing (SpitDataImportsPluginHost* self) -{ -#line 286 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 286 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->start_importing (self); -#line 1392 "DataImportsInterfaces.c" -} - - -/** - * Halts the import process. - * - * Calling this method stops all import activity and hides the on-screen import - * dialog box. - */ -void -spit_data_imports_plugin_host_stop_importing (SpitDataImportsPluginHost* self) -{ -#line 294 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 294 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->stop_importing (self); -#line 1409 "DataImportsInterfaces.c" -} - - -/** - * Returns a reference to the {@link DataImporter} object that this is currently hosting. - */ -SpitDataImportsDataImporter* -spit_data_imports_plugin_host_get_data_importer (SpitDataImportsPluginHost* self) -{ -#line 299 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self), NULL); -#line 299 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->get_data_importer (self); -#line 1423 "DataImportsInterfaces.c" -} - - -/** - * Attempts to install a pane in the on-screen data import dialog box, making the pane visible - * and allowing it to interact with the user. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param pane the pane to install - * - * @param mode allows you to set the text displayed on the close/cancel button in the - * lower-right-hand corner of the on-screen data import dialog box when pane is installed. - * If mode is ButtonMode.CLOSE, the button will have the title "Close." If mode is - * ButtonMode.CANCEL, the button will be titled "Cancel." You should set mode depending on - * whether a cancellable action is in progress. For example, if your importer is in the - * middle of processing 3 of 8 videos, then mode should be ButtonMode.CANCEL. However, if - * the processing operation has completed and the success pane is displayed, then mode - * should be ButtonMode.CLOSE, because all cancellable actions have already - * occurred. - */ -void -spit_data_imports_plugin_host_install_dialog_pane (SpitDataImportsPluginHost* self, - SpitDataImportsDialogPane* pane, - SpitDataImportsPluginHostButtonMode mode) -{ -#line 319 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 319 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->install_dialog_pane (self, pane, mode); -#line 1454 "DataImportsInterfaces.c" -} - - -/** - * Attempts to install a pane in the on-screen data import dialog box that contains - * static text. - * - * The text appears centered in the data import dialog box and is drawn in - * the system font. This is a convenience method only; similar results could be - * achieved by manually constructing a Gtk.Label widget, wrapping it inside a - * {@link DialogPane}, and installing it manually with a call to - * install_dialog_pane( ). To provide visual consistency across data import services, - * however, always use this convenience method instead of constructing label panes when - * you need to display static text to the user. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param message the text to show in the pane - * - * @param mode allows you to set the text displayed on the close/cancel button in the - * lower-right-hand corner of the on-screen data import dialog box when pane is installed. - * If mode is ButtonMode.CLOSE, the button will have the title "Close." If mode is - * ButtonMode.CANCEL, the button will be titled "Cancel." You should set mode depending on - * whether a cancellable action is in progress. For example, if your importer is in the - * middle of processing 3 of 8 videos, then mode should be ButtonMode.CANCEL. However, if - * the processing operation has completed and the success pane is displayed, then mode - * should be ButtonMode.CLOSE, because all cancellable actions have already - * occurred. - */ -void -spit_data_imports_plugin_host_install_static_message_pane (SpitDataImportsPluginHost* self, - const gchar* message, - SpitDataImportsPluginHostButtonMode mode) -{ -#line 348 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 348 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->install_static_message_pane (self, message, mode); -#line 1493 "DataImportsInterfaces.c" -} - - -/** - * Attempts to install a library selection pane that presents a list of - * discovered libraries to the user. - * - * When the user clicks the “OK” button, you’ll be notified of the user’s action through - * the 'on_library_selected' callback if a discovered library was selected or through - * the 'on_file_selected' callback if a file was selected. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param welcome_message the text to be displayed above the list of discovered - * libraries. - * - * @param discovered_libraries the list of importable libraries that the plugin - * has discovered in well known locations. - * - * @param file_select_label the label to display for the file selection - * option. If this label is null, the - * user will not be presented with a file selection option. - */ -void -spit_data_imports_plugin_host_install_library_selection_pane (SpitDataImportsPluginHost* self, - const gchar* welcome_message, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1, - const gchar* file_select_label) -{ -#line 371 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 371 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->install_library_selection_pane (self, welcome_message, discovered_libraries, discovered_libraries_length1, file_select_label); -#line 1528 "DataImportsInterfaces.c" -} - - -/** - * Attempts to install a progress pane that provides the user with feedback - * on import preparation. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param message the text to be displayed above the progress bar. - */ -void -spit_data_imports_plugin_host_install_import_progress_pane (SpitDataImportsPluginHost* self, - const gchar* message) -{ -#line 385 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 385 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->install_import_progress_pane (self, message); -#line 1548 "DataImportsInterfaces.c" -} - - -/** - * Update the progress bar installed by install_import_progress_pane. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param progress a value between 0.0 and 1.0 identifying progress for the - * plugin. - * - * @param progress_label the text to be displayed below the progress bar. If that - * parameter is null, the message will be left unchanged. - */ -void -spit_data_imports_plugin_host_update_import_progress_pane (SpitDataImportsPluginHost* self, - gdouble progress, - const gchar* progress_message) -{ -#line 400 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 400 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->update_import_progress_pane (self, progress, progress_message); -#line 1572 "DataImportsInterfaces.c" -} - - -/** - * Sends an importable media item to the host in order to prepare it for import - * and update the progress bar installed by install_import_progress_pane. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param item the importable media item to prepare for import. - * - * @param progress a value between 0.0 and 1.0 identifying progress for the - * plugin. - * - * @param host_progress_delta the amount of progress the host should update - * the progress bar during import preparation. Plugins should ensure that - * a proportion of progress for each media item is set aside for the host - * in oder to ensure a smoother update to the progress bar. - * - * @param progress_message the text to be displayed below the progress bar. If that - * parameter is null, the message will be left unchanged. - */ -void -spit_data_imports_plugin_host_prepare_media_items_for_import (SpitDataImportsPluginHost* self, - SpitDataImportsImportableMediaItem** items, - int items_length1, - gdouble progress, - gdouble host_progress_delta, - const gchar* progress_message) -{ -#line 424 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 424 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->prepare_media_items_for_import (self, items, items_length1, progress, host_progress_delta, progress_message); -#line 1607 "DataImportsInterfaces.c" -} - - -/** - * Finalize the import sequence for the plugin. This tells the host that - * all media items have been processed and that the plugin has finished all - * import work. Once this method has been called, all resources used by the - * plugin for import should be released and the plugin should be back to the - * state it had just after running the start method. The host will then display - * the final message and show progress as fully complete. In a standard import - * scenario, the user is expected to click the Close button to dismiss the - * dialog. On first run, the host may call the LibrarySelectedCallback again - * to import another library handled by the same plugin. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param finalize_message the text to be displayed below the progress bar. If that - * parameter is null, the message will be left unchanged. - */ -void -spit_data_imports_plugin_host_finalize_import (SpitDataImportsPluginHost* self, - SpitDataImportsImportedItemsCountCallback report_imported_items_count, - void* report_imported_items_count_target, - const gchar* finalize_message) -{ -#line 447 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 447 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->finalize_import (self, report_imported_items_count, report_imported_items_count_target, finalize_message); -#line 1637 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_plugin_host_real_reserved0 (SpitDataImportsPluginHost* self) -{ -} - - -void -spit_data_imports_plugin_host_reserved0 (SpitDataImportsPluginHost* self) -{ -#line 455 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 455 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved0 (self); -#line 1654 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_plugin_host_real_reserved1 (SpitDataImportsPluginHost* self) -{ -} - - -void -spit_data_imports_plugin_host_reserved1 (SpitDataImportsPluginHost* self) -{ -#line 456 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 456 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved1 (self); -#line 1671 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_plugin_host_real_reserved2 (SpitDataImportsPluginHost* self) -{ -} - - -void -spit_data_imports_plugin_host_reserved2 (SpitDataImportsPluginHost* self) -{ -#line 457 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 457 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved2 (self); -#line 1688 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_plugin_host_real_reserved3 (SpitDataImportsPluginHost* self) -{ -} - - -void -spit_data_imports_plugin_host_reserved3 (SpitDataImportsPluginHost* self) -{ -#line 458 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 458 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved3 (self); -#line 1705 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_plugin_host_real_reserved4 (SpitDataImportsPluginHost* self) -{ -} - - -void -spit_data_imports_plugin_host_reserved4 (SpitDataImportsPluginHost* self) -{ -#line 459 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 459 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved4 (self); -#line 1722 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_plugin_host_real_reserved5 (SpitDataImportsPluginHost* self) -{ -} - - -void -spit_data_imports_plugin_host_reserved5 (SpitDataImportsPluginHost* self) -{ -#line 460 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 460 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved5 (self); -#line 1739 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_plugin_host_real_reserved6 (SpitDataImportsPluginHost* self) -{ -} - - -void -spit_data_imports_plugin_host_reserved6 (SpitDataImportsPluginHost* self) -{ -#line 461 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 461 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved6 (self); -#line 1756 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_plugin_host_real_reserved7 (SpitDataImportsPluginHost* self) -{ -} - - -void -spit_data_imports_plugin_host_reserved7 (SpitDataImportsPluginHost* self) -{ -#line 462 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 462 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved7 (self); -#line 1773 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_plugin_host_base_init (SpitDataImportsPluginHostIface * iface) -{ -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - static gboolean initialized = FALSE; -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - if (!initialized) { -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - initialized = TRUE; -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved0 = spit_data_imports_plugin_host_real_reserved0; -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved1 = spit_data_imports_plugin_host_real_reserved1; -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved2 = spit_data_imports_plugin_host_real_reserved2; -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved3 = spit_data_imports_plugin_host_real_reserved3; -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved4 = spit_data_imports_plugin_host_real_reserved4; -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved5 = spit_data_imports_plugin_host_real_reserved5; -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved6 = spit_data_imports_plugin_host_real_reserved6; -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved7 = spit_data_imports_plugin_host_real_reserved7; -#line 1802 "DataImportsInterfaces.c" - } -} - - -/** - * Manages and provides services for data import plugins. - * - * Implemented inside Shotwell, the PluginHost provides an interface through which the - * developers of data import plugins can query and make changes to the import - * environment. Plugins can use the services of the PluginHost only when their - * {@link DataImporter} is in the running state. This ensures that non-running data importers - * don’t destructively interfere with the actively running importer. - */ -GType -spit_data_imports_plugin_host_get_type (void) -{ - static volatile gsize spit_data_imports_plugin_host_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_plugin_host_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsPluginHostIface), (GBaseInitFunc) spit_data_imports_plugin_host_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_data_imports_plugin_host_type_id; - spit_data_imports_plugin_host_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsPluginHost", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_data_imports_plugin_host_type_id, G_TYPE_OBJECT); - g_type_interface_add_prerequisite (spit_data_imports_plugin_host_type_id, SPIT_TYPE_HOST_INTERFACE); - g_once_init_leave (&spit_data_imports_plugin_host_type_id__volatile, spit_data_imports_plugin_host_type_id); - } - return spit_data_imports_plugin_host_type_id__volatile; -} - - -/** - * A factory method that instantiates and returns a new {@link DataImporter} object - * that this Service describes. - */ -SpitDataImportsDataImporter* -spit_data_imports_service_create_data_importer (SpitDataImportsService* self, - SpitDataImportsPluginHost* host) -{ -#line 475 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self), NULL); -#line 475 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->create_data_importer (self, host); -#line 1844 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_service_real_reserved0 (SpitDataImportsService* self) -{ -} - - -void -spit_data_imports_service_reserved0 (SpitDataImportsService* self) -{ -#line 480 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self)); -#line 480 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved0 (self); -#line 1861 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_service_real_reserved1 (SpitDataImportsService* self) -{ -} - - -void -spit_data_imports_service_reserved1 (SpitDataImportsService* self) -{ -#line 481 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self)); -#line 481 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved1 (self); -#line 1878 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_service_real_reserved2 (SpitDataImportsService* self) -{ -} - - -void -spit_data_imports_service_reserved2 (SpitDataImportsService* self) -{ -#line 482 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self)); -#line 482 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved2 (self); -#line 1895 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_service_real_reserved3 (SpitDataImportsService* self) -{ -} - - -void -spit_data_imports_service_reserved3 (SpitDataImportsService* self) -{ -#line 483 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self)); -#line 483 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved3 (self); -#line 1912 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_service_real_reserved4 (SpitDataImportsService* self) -{ -} - - -void -spit_data_imports_service_reserved4 (SpitDataImportsService* self) -{ -#line 484 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self)); -#line 484 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved4 (self); -#line 1929 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_service_real_reserved5 (SpitDataImportsService* self) -{ -} - - -void -spit_data_imports_service_reserved5 (SpitDataImportsService* self) -{ -#line 485 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self)); -#line 485 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved5 (self); -#line 1946 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_service_real_reserved6 (SpitDataImportsService* self) -{ -} - - -void -spit_data_imports_service_reserved6 (SpitDataImportsService* self) -{ -#line 486 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self)); -#line 486 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved6 (self); -#line 1963 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_service_real_reserved7 (SpitDataImportsService* self) -{ -} - - -void -spit_data_imports_service_reserved7 (SpitDataImportsService* self) -{ -#line 487 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self)); -#line 487 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved7 (self); -#line 1980 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_service_base_init (SpitDataImportsServiceIface * iface) -{ -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - static gboolean initialized = FALSE; -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - if (!initialized) { -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - initialized = TRUE; -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved0 = spit_data_imports_service_real_reserved0; -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved1 = spit_data_imports_service_real_reserved1; -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved2 = spit_data_imports_service_real_reserved2; -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved3 = spit_data_imports_service_real_reserved3; -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved4 = spit_data_imports_service_real_reserved4; -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved5 = spit_data_imports_service_real_reserved5; -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved6 = spit_data_imports_service_real_reserved6; -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved7 = spit_data_imports_service_real_reserved7; -#line 2009 "DataImportsInterfaces.c" - } -} - - -/** - * Describes the features and capabilities of a data import service. - * - * Developers of data import plugins provide a class that implements this interface. - */ -GType -spit_data_imports_service_get_type (void) -{ - static volatile gsize spit_data_imports_service_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsServiceIface), (GBaseInitFunc) spit_data_imports_service_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_data_imports_service_type_id; - spit_data_imports_service_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsService", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_data_imports_service_type_id, G_TYPE_OBJECT); - g_type_interface_add_prerequisite (spit_data_imports_service_type_id, SPIT_TYPE_PLUGGABLE); - g_once_init_leave (&spit_data_imports_service_type_id__volatile, spit_data_imports_service_type_id); - } - return spit_data_imports_service_type_id__volatile; -} - - - diff --git a/src/plugins/ManifestWidget.c b/src/plugins/ManifestWidget.c deleted file mode 100644 index e5bad34..0000000 --- a/src/plugins/ManifestWidget.c +++ /dev/null @@ -1,2049 +0,0 @@ -/* ManifestWidget.c generated by valac 0.40.4, the Vala compiler - * generated from ManifestWidget.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 <glib.h> -#include <glib-object.h> -#include <gtk/gtk.h> -#include <stdlib.h> -#include <string.h> -#include "shotwell-plugin-dev-1.0.h" -#include <gdk-pixbuf/gdk-pixbuf.h> -#include <gdk/gdk.h> -#include <gee.h> -#include <gio/gio.h> - - -#define PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR (plugins_manifest_widget_mediator_get_type ()) -#define PLUGINS_MANIFEST_WIDGET_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediator)) -#define PLUGINS_MANIFEST_WIDGET_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediatorClass)) -#define PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR)) -#define PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR)) -#define PLUGINS_MANIFEST_WIDGET_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediatorClass)) - -typedef struct _PluginsManifestWidgetMediator PluginsManifestWidgetMediator; -typedef struct _PluginsManifestWidgetMediatorClass PluginsManifestWidgetMediatorClass; -typedef struct _PluginsManifestWidgetMediatorPrivate PluginsManifestWidgetMediatorPrivate; - -#define PLUGINS_TYPE_MANIFEST_LIST_VIEW (plugins_manifest_list_view_get_type ()) -#define PLUGINS_MANIFEST_LIST_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_MANIFEST_LIST_VIEW, PluginsManifestListView)) -#define PLUGINS_MANIFEST_LIST_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_MANIFEST_LIST_VIEW, PluginsManifestListViewClass)) -#define PLUGINS_IS_MANIFEST_LIST_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_MANIFEST_LIST_VIEW)) -#define PLUGINS_IS_MANIFEST_LIST_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_MANIFEST_LIST_VIEW)) -#define PLUGINS_MANIFEST_LIST_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_MANIFEST_LIST_VIEW, PluginsManifestListViewClass)) - -typedef struct _PluginsManifestListView PluginsManifestListView; -typedef struct _PluginsManifestListViewClass PluginsManifestListViewClass; -enum { - PLUGINS_MANIFEST_WIDGET_MEDIATOR_0_PROPERTY, - PLUGINS_MANIFEST_WIDGET_MEDIATOR_NUM_PROPERTIES -}; -static GParamSpec* plugins_manifest_widget_mediator_properties[PLUGINS_MANIFEST_WIDGET_MEDIATOR_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _PluginsManifestListViewPrivate PluginsManifestListViewPrivate; -enum { - PLUGINS_MANIFEST_LIST_VIEW_0_PROPERTY, - PLUGINS_MANIFEST_LIST_VIEW_NUM_PROPERTIES -}; -static GParamSpec* plugins_manifest_list_view_properties[PLUGINS_MANIFEST_LIST_VIEW_NUM_PROPERTIES]; - -#define PLUGINS_MANIFEST_LIST_VIEW_TYPE_COLUMN (plugins_manifest_list_view_column_get_type ()) - -#define PLUGINS_TYPE_EXTENSION_POINT (plugins_extension_point_get_type ()) -#define PLUGINS_EXTENSION_POINT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPoint)) -#define PLUGINS_EXTENSION_POINT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPointClass)) -#define PLUGINS_IS_EXTENSION_POINT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_EXTENSION_POINT)) -#define PLUGINS_IS_EXTENSION_POINT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_EXTENSION_POINT)) -#define PLUGINS_EXTENSION_POINT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPointClass)) - -typedef struct _PluginsExtensionPoint PluginsExtensionPoint; -typedef struct _PluginsExtensionPointClass PluginsExtensionPointClass; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _gtk_icon_info_free0(var) ((var == NULL) ? NULL : (var = (gtk_icon_info_free (var), NULL))) -#define _plugins_extension_point_unref0(var) ((var == NULL) ? NULL : (var = (plugins_extension_point_unref (var), NULL))) -#define __vala_GtkTreePath_free0(var) ((var == NULL) ? NULL : (var = (_vala_GtkTreePath_free (var), NULL))) -#define __g_list_free___vala_GtkTreePath_free0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free___vala_GtkTreePath_free0_ (var), NULL))) - -struct _PluginsManifestWidgetMediator { - GtkBox parent_instance; - PluginsManifestWidgetMediatorPrivate * priv; -}; - -struct _PluginsManifestWidgetMediatorClass { - GtkBoxClass parent_class; -}; - -struct _PluginsManifestWidgetMediatorPrivate { - GtkButton* about_button; - GtkScrolledWindow* list_bin; - PluginsManifestListView* list; -}; - -struct _PluginsManifestListView { - GtkTreeView parent_instance; - PluginsManifestListViewPrivate * priv; -}; - -struct _PluginsManifestListViewClass { - GtkTreeViewClass parent_class; -}; - -struct _PluginsManifestListViewPrivate { - GtkTreeStore* store; -}; - -typedef enum { - PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ENABLED, - PLUGINS_MANIFEST_LIST_VIEW_COLUMN_CAN_ENABLE, - PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ICON, - PLUGINS_MANIFEST_LIST_VIEW_COLUMN_NAME, - PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ID, - PLUGINS_MANIFEST_LIST_VIEW_COLUMN_N_COLUMNS -} PluginsManifestListViewColumn; - - -static gpointer plugins_manifest_widget_mediator_parent_class = NULL; -static gpointer plugins_manifest_list_view_parent_class = NULL; - -GType plugins_manifest_widget_mediator_get_type (void) G_GNUC_CONST; -GType plugins_manifest_list_view_get_type (void) G_GNUC_CONST; -#define PLUGINS_MANIFEST_WIDGET_MEDIATOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediatorPrivate)) -PluginsManifestListView* plugins_manifest_list_view_new (void); -PluginsManifestListView* plugins_manifest_list_view_construct (GType object_type); -PluginsManifestWidgetMediator* plugins_manifest_widget_mediator_new (void); -PluginsManifestWidgetMediator* plugins_manifest_widget_mediator_construct (GType object_type); -static void plugins_manifest_widget_mediator_on_about (PluginsManifestWidgetMediator* self); -static void _plugins_manifest_widget_mediator_on_about_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void plugins_manifest_widget_mediator_on_selection_changed (PluginsManifestWidgetMediator* self); -static void _plugins_manifest_widget_mediator_on_selection_changed_gtk_tree_selection_changed (GtkTreeSelection* _sender, - gpointer self); -static void plugins_manifest_widget_mediator_set_about_button_sensitivity (PluginsManifestWidgetMediator* self); -gchar** plugins_manifest_list_view_get_selected_ids (PluginsManifestListView* self, - int* result_length1); -gboolean plugins_get_pluggable_info (const gchar* id, - SpitPluggableInfo* info); -gboolean is_string_empty (const gchar* s); -static void _vala_array_add52 (gchar** * array, - int* length, - int* size, - gchar* value); -GdkPixbuf* resources_get_icon (const gchar* name, - gint scale); -#define RESOURCES_ICON_GENERIC_PLUGIN "generic-plugin.png" -#define RESOURCES_DEFAULT_ICON_SCALE 24 -gchar* plugins_get_pluggable_name (const gchar* id); -static void plugins_manifest_widget_mediator_finalize (GObject * obj); -#define PLUGINS_MANIFEST_LIST_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PLUGINS_TYPE_MANIFEST_LIST_VIEW, PluginsManifestListViewPrivate)) -static GType plugins_manifest_list_view_column_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define PLUGINS_MANIFEST_LIST_VIEW_ICON_SIZE 24 -#define PLUGINS_MANIFEST_LIST_VIEW_ICON_X_PADDING 6 -#define PLUGINS_MANIFEST_LIST_VIEW_ICON_Y_PADDING 2 -GtkIconTheme* resources_get_icon_theme_engine (void); -gpointer plugins_extension_point_ref (gpointer instance); -void plugins_extension_point_unref (gpointer instance); -GParamSpec* plugins_param_spec_extension_point (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void plugins_value_set_extension_point (GValue* value, - gpointer v_object); -void plugins_value_take_extension_point (GValue* value, - gpointer v_object); -gpointer plugins_value_get_extension_point (const GValue* value); -GType plugins_extension_point_get_type (void) G_GNUC_CONST; -GeeCollection* plugins_get_extension_points (GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify); -gint plugins_compare_extension_point_names (void* a, - void* b); -static gint _plugins_compare_extension_point_names_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -const gchar* plugins_extension_point_get_icon_name (PluginsExtensionPoint* self); -const gchar* plugins_extension_point_get_name (PluginsExtensionPoint* self); -GeeCollection* plugins_get_pluggables_for_type (GType type, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify, - gboolean include_disabled); -GType plugins_extension_point_get_pluggable_type (PluginsExtensionPoint* self); -gint plugins_compare_pluggable_names (void* a, - void* b); -static gint _plugins_compare_pluggable_names_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -gboolean plugins_get_pluggable_enabled (const gchar* id, - gboolean* enabled); -static GtkTreePath* _vala_GtkTreePath_copy (GtkTreePath* self); -static gchar* plugins_manifest_list_view_get_id_at_path (PluginsManifestListView* self, - GtkTreePath* path, - GtkTreeIter* iter); -static void _vala_array_add53 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_GtkTreePath_free (GtkTreePath* self); -static void __vala_GtkTreePath_free0_ (gpointer var); -static inline void _g_list_free___vala_GtkTreePath_free0_ (GList* self); -static gboolean plugins_manifest_list_view_real_button_press_event (GtkWidget* base, - GdkEventButton* event); -void plugins_set_pluggable_enabled (const gchar* id, - gboolean enabled); -static void plugins_manifest_list_view_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 gint _vala_array_length (gpointer array); - - -static void -_plugins_manifest_widget_mediator_on_about_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 25 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - plugins_manifest_widget_mediator_on_about ((PluginsManifestWidgetMediator*) self); -#line 218 "ManifestWidget.c" -} - - -static void -_plugins_manifest_widget_mediator_on_selection_changed_gtk_tree_selection_changed (GtkTreeSelection* _sender, - gpointer self) -{ -#line 26 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - plugins_manifest_widget_mediator_on_selection_changed ((PluginsManifestWidgetMediator*) self); -#line 228 "ManifestWidget.c" -} - - -PluginsManifestWidgetMediator* -plugins_manifest_widget_mediator_construct (GType object_type) -{ - PluginsManifestWidgetMediator * self = NULL; - GtkScrolledWindow* _tmp0_; - PluginsManifestListView* _tmp1_; - GtkButton* _tmp2_; - PluginsManifestListView* _tmp3_; - GtkTreeSelection* _tmp4_; -#line 21 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - self = (PluginsManifestWidgetMediator*) g_object_new (object_type, NULL); -#line 23 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = self->priv->list_bin; -#line 23 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp1_ = self->priv->list; -#line 23 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 25 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp2_ = self->priv->about_button; -#line 25 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_signal_connect_object (_tmp2_, "clicked", (GCallback) _plugins_manifest_widget_mediator_on_about_gtk_button_clicked, self, 0); -#line 26 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp3_ = self->priv->list; -#line 26 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp4_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_tree_view_get_type (), GtkTreeView)); -#line 26 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_signal_connect_object (_tmp4_, "changed", (GCallback) _plugins_manifest_widget_mediator_on_selection_changed_gtk_tree_selection_changed, self, 0); -#line 28 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - plugins_manifest_widget_mediator_set_about_button_sensitivity (self); -#line 20 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return self; -#line 263 "ManifestWidget.c" -} - - -PluginsManifestWidgetMediator* -plugins_manifest_widget_mediator_new (void) -{ -#line 20 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return plugins_manifest_widget_mediator_construct (PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR); -#line 272 "ManifestWidget.c" -} - - -static gchar* -string_strip (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strstrip (_tmp1_); -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 297 "ManifestWidget.c" -} - - -static void -_vala_array_add52 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if ((*length) == (*size)) { -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 313 "ManifestWidget.c" - } -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - (*array)[(*length)++] = value; -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - (*array)[*length] = NULL; -#line 319 "ManifestWidget.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return self ? g_object_ref (self) : NULL; -#line 328 "ManifestWidget.c" -} - - -static void -plugins_manifest_widget_mediator_on_about (PluginsManifestWidgetMediator* self) -{ - gchar** ids = NULL; - PluginsManifestListView* _tmp0_; - gint _tmp1_; - gchar** _tmp2_; - gint ids_length1; - gint _ids_size_; - gchar** _tmp3_; - gint _tmp3__length1; - gchar* id = NULL; - gchar** _tmp4_; - gint _tmp4__length1; - const gchar* _tmp5_; - gchar* _tmp6_; - SpitPluggableInfo info = {0}; - const gchar* _tmp7_; - gboolean _tmp8_; - gchar** authors = NULL; - gint authors_length1; - gint _authors_size_; - SpitPluggableInfo _tmp10_; - const gchar* _tmp11_; - GtkAboutDialog* about_dialog = NULL; - GtkAboutDialog* _tmp30_; - GtkAboutDialog* _tmp31_; - gchar** _tmp32_; - gint _tmp32__length1; - GtkAboutDialog* _tmp33_; - SpitPluggableInfo _tmp34_; - const gchar* _tmp35_; - GtkAboutDialog* _tmp36_; - SpitPluggableInfo _tmp37_; - const gchar* _tmp38_; - GtkAboutDialog* _tmp39_; - SpitPluggableInfo _tmp40_; - const gchar* _tmp41_; - GtkAboutDialog* _tmp42_; - SpitPluggableInfo _tmp43_; - gboolean _tmp44_; - GdkPixbuf* _tmp45_ = NULL; - gboolean _tmp46_ = FALSE; - SpitPluggableInfo _tmp47_; - GdkPixbuf** _tmp48_; - gint _tmp48__length1; - GtkAboutDialog* _tmp56_; - GtkAboutDialog* _tmp57_; - const gchar* _tmp58_; - gchar* _tmp59_; - gchar* _tmp60_; - GtkAboutDialog* _tmp61_; - SpitPluggableInfo _tmp62_; - const gchar* _tmp63_; - GtkAboutDialog* _tmp64_; - SpitPluggableInfo _tmp65_; - const gchar* _tmp66_; - GtkAboutDialog* _tmp67_; - SpitPluggableInfo _tmp68_; - const gchar* _tmp69_; - GtkAboutDialog* _tmp70_; - SpitPluggableInfo _tmp71_; - const gchar* _tmp72_; - GtkAboutDialog* _tmp73_; - GtkAboutDialog* _tmp74_; -#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_return_if_fail (PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR (self)); -#line 32 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = self->priv->list; -#line 32 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp2_ = plugins_manifest_list_view_get_selected_ids (_tmp0_, &_tmp1_); -#line 32 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids = _tmp2_; -#line 32 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids_length1 = _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _ids_size_ = ids_length1; -#line 33 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp3_ = ids; -#line 33 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp3__length1 = ids_length1; -#line 33 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp3__length1 == 0) { -#line 34 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids = (_vala_array_free (ids, ids_length1, (GDestroyNotify) g_free), NULL); -#line 34 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return; -#line 419 "ManifestWidget.c" - } -#line 36 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp4_ = ids; -#line 36 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp4__length1 = ids_length1; -#line 36 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp5_ = _tmp4_[0]; -#line 36 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 36 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - id = _tmp6_; -#line 38 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - memset (&info, 0, sizeof (SpitPluggableInfo)); -#line 39 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp7_ = id; -#line 39 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp8_ = plugins_get_pluggable_info (_tmp7_, &info); -#line 39 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!_tmp8_) { -#line 439 "ManifestWidget.c" - const gchar* _tmp9_; -#line 40 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp9_ = id; -#line 40 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_warning ("ManifestWidget.vala:40: Unable to retrieve information for plugin %s", _tmp9_); -#line 42 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - spit_pluggable_info_destroy (&info); -#line 42 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_free0 (id); -#line 42 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids = (_vala_array_free (ids, ids_length1, (GDestroyNotify) g_free), NULL); -#line 42 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return; -#line 453 "ManifestWidget.c" - } -#line 47 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - authors = NULL; -#line 47 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - authors_length1 = 0; -#line 47 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _authors_size_ = authors_length1; -#line 48 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp10_ = info; -#line 48 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp11_ = _tmp10_.authors; -#line 48 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp11_ != NULL) { -#line 467 "ManifestWidget.c" - gchar** split = NULL; - SpitPluggableInfo _tmp12_; - const gchar* _tmp13_; - gchar** _tmp14_; - gchar** _tmp15_; - gint split_length1; - gint _split_size_; -#line 49 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp12_ = info; -#line 49 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp13_ = _tmp12_.authors; -#line 49 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp15_ = _tmp14_ = g_strsplit (_tmp13_, ",", 0); -#line 49 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - split = _tmp15_; -#line 49 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - split_length1 = _vala_array_length (_tmp14_); -#line 49 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _split_size_ = split_length1; -#line 487 "ManifestWidget.c" - { - gint ctr = 0; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ctr = 0; -#line 492 "ManifestWidget.c" - { - gboolean _tmp16_ = FALSE; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp16_ = TRUE; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - while (TRUE) { -#line 499 "ManifestWidget.c" - gint _tmp18_; - gchar** _tmp19_; - gint _tmp19__length1; - gchar* stripped = NULL; - gchar** _tmp20_; - gint _tmp20__length1; - gint _tmp21_; - const gchar* _tmp22_; - gchar* _tmp23_; - const gchar* _tmp24_; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!_tmp16_) { -#line 512 "ManifestWidget.c" - gint _tmp17_; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp17_ = ctr; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ctr = _tmp17_ + 1; -#line 518 "ManifestWidget.c" - } -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp16_ = FALSE; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp18_ = ctr; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp19_ = split; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp19__length1 = split_length1; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!(_tmp18_ < _tmp19__length1)) { -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - break; -#line 532 "ManifestWidget.c" - } -#line 51 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp20_ = split; -#line 51 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp20__length1 = split_length1; -#line 51 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp21_ = ctr; -#line 51 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp22_ = _tmp20_[_tmp21_]; -#line 51 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp23_ = string_strip (_tmp22_); -#line 51 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - stripped = _tmp23_; -#line 52 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp24_ = stripped; -#line 52 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!is_string_empty (_tmp24_)) { -#line 550 "ManifestWidget.c" - gchar** _tmp25_; - gint _tmp25__length1; - gchar** _tmp27_; - gint _tmp27__length1; - const gchar* _tmp28_; - gchar* _tmp29_; -#line 53 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp25_ = authors; -#line 53 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp25__length1 = authors_length1; -#line 53 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp25_ == NULL) { -#line 563 "ManifestWidget.c" - gchar** _tmp26_; -#line 54 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp26_ = g_new0 (gchar*, 0 + 1); -#line 54 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - authors = (_vala_array_free (authors, authors_length1, (GDestroyNotify) g_free), NULL); -#line 54 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - authors = _tmp26_; -#line 54 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - authors_length1 = 0; -#line 54 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _authors_size_ = authors_length1; -#line 575 "ManifestWidget.c" - } -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp27_ = authors; -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp27__length1 = authors_length1; -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp28_ = stripped; -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp29_ = g_strdup (_tmp28_); -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _vala_array_add52 (&authors, &authors_length1, &_authors_size_, _tmp29_); -#line 587 "ManifestWidget.c" - } -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_free0 (stripped); -#line 591 "ManifestWidget.c" - } - } - } -#line 48 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - split = (_vala_array_free (split, split_length1, (GDestroyNotify) g_free), NULL); -#line 597 "ManifestWidget.c" - } -#line 61 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp30_ = (GtkAboutDialog*) gtk_about_dialog_new (); -#line 61 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_object_ref_sink (_tmp30_); -#line 61 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - about_dialog = _tmp30_; -#line 62 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp31_ = about_dialog; -#line 62 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp32_ = authors; -#line 62 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp32__length1 = authors_length1; -#line 62 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_authors (_tmp31_, _tmp32_); -#line 63 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp33_ = about_dialog; -#line 63 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp34_ = info; -#line 63 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp35_ = _tmp34_.brief_description; -#line 63 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_comments (_tmp33_, _tmp35_); -#line 64 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp36_ = about_dialog; -#line 64 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp37_ = info; -#line 64 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp38_ = _tmp37_.copyright; -#line 64 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_copyright (_tmp36_, _tmp38_); -#line 65 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp39_ = about_dialog; -#line 65 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp40_ = info; -#line 65 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp41_ = _tmp40_.license; -#line 65 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_license (_tmp39_, _tmp41_); -#line 66 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp42_ = about_dialog; -#line 66 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp43_ = info; -#line 66 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp44_ = _tmp43_.is_license_wordwrapped; -#line 66 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_wrap_license (_tmp42_, _tmp44_); -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp47_ = info; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp48_ = _tmp47_.icons; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp48__length1 = _tmp47_.icons_length1; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp48_ != NULL) { -#line 653 "ManifestWidget.c" - SpitPluggableInfo _tmp49_; - GdkPixbuf** _tmp50_; - gint _tmp50__length1; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp49_ = info; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp50_ = _tmp49_.icons; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp50__length1 = _tmp49_.icons_length1; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp46_ = _tmp50__length1 > 0; -#line 665 "ManifestWidget.c" - } else { -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp46_ = FALSE; -#line 669 "ManifestWidget.c" - } -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp46_) { -#line 673 "ManifestWidget.c" - SpitPluggableInfo _tmp51_; - GdkPixbuf** _tmp52_; - gint _tmp52__length1; - GdkPixbuf* _tmp53_; - GdkPixbuf* _tmp54_; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp51_ = info; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp52_ = _tmp51_.icons; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp52__length1 = _tmp51_.icons_length1; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp53_ = _tmp52_[0]; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp54_ = _g_object_ref0 (_tmp53_); -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_tmp45_); -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp45_ = _tmp54_; -#line 693 "ManifestWidget.c" - } else { - GdkPixbuf* _tmp55_; -#line 68 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp55_ = resources_get_icon (RESOURCES_ICON_GENERIC_PLUGIN, RESOURCES_DEFAULT_ICON_SCALE); -#line 68 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_tmp45_); -#line 68 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp45_ = _tmp55_; -#line 702 "ManifestWidget.c" - } -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp56_ = about_dialog; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_logo (_tmp56_, _tmp45_); -#line 69 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp57_ = about_dialog; -#line 69 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp58_ = id; -#line 69 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp59_ = plugins_get_pluggable_name (_tmp58_); -#line 69 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp60_ = _tmp59_; -#line 69 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_program_name (_tmp57_, _tmp60_); -#line 69 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_free0 (_tmp60_); -#line 70 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp61_ = about_dialog; -#line 70 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp62_ = info; -#line 70 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp63_ = _tmp62_.translators; -#line 70 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_translator_credits (_tmp61_, _tmp63_); -#line 71 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp64_ = about_dialog; -#line 71 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp65_ = info; -#line 71 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp66_ = _tmp65_.version; -#line 71 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_version (_tmp64_, _tmp66_); -#line 72 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp67_ = about_dialog; -#line 72 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp68_ = info; -#line 72 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp69_ = _tmp68_.website_url; -#line 72 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_website (_tmp67_, _tmp69_); -#line 73 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp70_ = about_dialog; -#line 73 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp71_ = info; -#line 73 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp72_ = _tmp71_.website_name; -#line 73 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_website_label (_tmp70_, _tmp72_); -#line 75 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp73_ = about_dialog; -#line 75 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, gtk_dialog_get_type (), GtkDialog)); -#line 77 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp74_ = about_dialog; -#line 77 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, gtk_widget_get_type (), GtkWidget)); -#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_tmp45_); -#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (about_dialog); -#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - authors = (_vala_array_free (authors, authors_length1, (GDestroyNotify) g_free), NULL); -#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - spit_pluggable_info_destroy (&info); -#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_free0 (id); -#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids = (_vala_array_free (ids, ids_length1, (GDestroyNotify) g_free), NULL); -#line 772 "ManifestWidget.c" -} - - -static void -plugins_manifest_widget_mediator_on_selection_changed (PluginsManifestWidgetMediator* self) -{ -#line 80 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_return_if_fail (PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR (self)); -#line 81 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - plugins_manifest_widget_mediator_set_about_button_sensitivity (self); -#line 783 "ManifestWidget.c" -} - - -static void -plugins_manifest_widget_mediator_set_about_button_sensitivity (PluginsManifestWidgetMediator* self) -{ - gchar** ids = NULL; - PluginsManifestListView* _tmp0_; - gint _tmp1_; - gchar** _tmp2_; - gint ids_length1; - gint _ids_size_; - GtkButton* _tmp3_; -#line 84 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_return_if_fail (PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR (self)); -#line 89 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = self->priv->list; -#line 89 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp2_ = plugins_manifest_list_view_get_selected_ids (_tmp0_, &_tmp1_); -#line 89 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids = _tmp2_; -#line 89 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids_length1 = _tmp1_; -#line 89 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _ids_size_ = ids_length1; -#line 90 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp3_ = self->priv->about_button; -#line 90 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), ids_length1 == 1); -#line 84 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids = (_vala_array_free (ids, ids_length1, (GDestroyNotify) g_free), NULL); -#line 815 "ManifestWidget.c" -} - - -static void -plugins_manifest_widget_mediator_class_init (PluginsManifestWidgetMediatorClass * klass) -{ - gint PluginsManifestWidgetMediator_private_offset; -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - plugins_manifest_widget_mediator_parent_class = g_type_class_peek_parent (klass); -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_type_class_add_private (klass, sizeof (PluginsManifestWidgetMediatorPrivate)); -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - G_OBJECT_CLASS (klass)->finalize = plugins_manifest_widget_mediator_finalize; -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - PluginsManifestWidgetMediator_private_offset = g_type_class_get_instance_private_offset (klass); -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/manifest_widget.ui"); -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "about_button", FALSE, PluginsManifestWidgetMediator_private_offset + G_STRUCT_OFFSET (PluginsManifestWidgetMediatorPrivate, about_button)); -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "list_bin", FALSE, PluginsManifestWidgetMediator_private_offset + G_STRUCT_OFFSET (PluginsManifestWidgetMediatorPrivate, list_bin)); -#line 837 "ManifestWidget.c" -} - - -static void -plugins_manifest_widget_mediator_instance_init (PluginsManifestWidgetMediator * self) -{ - PluginsManifestListView* _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - self->priv = PLUGINS_MANIFEST_WIDGET_MEDIATOR_GET_PRIVATE (self); -#line 18 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = plugins_manifest_list_view_new (); -#line 18 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_object_ref_sink (_tmp0_); -#line 18 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - self->priv->list = _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_widget_init_template (GTK_WIDGET (self)); -#line 855 "ManifestWidget.c" -} - - -static void -plugins_manifest_widget_mediator_finalize (GObject * obj) -{ - PluginsManifestWidgetMediator * self; -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediator); -#line 13 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (self->priv->about_button); -#line 16 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (self->priv->list_bin); -#line 18 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (self->priv->list); -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - G_OBJECT_CLASS (plugins_manifest_widget_mediator_parent_class)->finalize (obj); -#line 873 "ManifestWidget.c" -} - - -GType -plugins_manifest_widget_mediator_get_type (void) -{ - static volatile gsize plugins_manifest_widget_mediator_type_id__volatile = 0; - if (g_once_init_enter (&plugins_manifest_widget_mediator_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PluginsManifestWidgetMediatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_manifest_widget_mediator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsManifestWidgetMediator), 0, (GInstanceInitFunc) plugins_manifest_widget_mediator_instance_init, NULL }; - GType plugins_manifest_widget_mediator_type_id; - plugins_manifest_widget_mediator_type_id = g_type_register_static (gtk_box_get_type (), "PluginsManifestWidgetMediator", &g_define_type_info, 0); - g_once_init_leave (&plugins_manifest_widget_mediator_type_id__volatile, plugins_manifest_widget_mediator_type_id); - } - return plugins_manifest_widget_mediator_type_id__volatile; -} - - -static GType -plugins_manifest_list_view_column_get_type (void) -{ - static volatile gsize plugins_manifest_list_view_column_type_id__volatile = 0; - if (g_once_init_enter (&plugins_manifest_list_view_column_type_id__volatile)) { - static const GEnumValue values[] = {{PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ENABLED, "PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ENABLED", "enabled"}, {PLUGINS_MANIFEST_LIST_VIEW_COLUMN_CAN_ENABLE, "PLUGINS_MANIFEST_LIST_VIEW_COLUMN_CAN_ENABLE", "can-enable"}, {PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ICON, "PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ICON", "icon"}, {PLUGINS_MANIFEST_LIST_VIEW_COLUMN_NAME, "PLUGINS_MANIFEST_LIST_VIEW_COLUMN_NAME", "name"}, {PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ID, "PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ID", "id"}, {PLUGINS_MANIFEST_LIST_VIEW_COLUMN_N_COLUMNS, "PLUGINS_MANIFEST_LIST_VIEW_COLUMN_N_COLUMNS", "n-columns"}, {0, NULL, NULL}}; - GType plugins_manifest_list_view_column_type_id; - plugins_manifest_list_view_column_type_id = g_enum_register_static ("PluginsManifestListViewColumn", values); - g_once_init_leave (&plugins_manifest_list_view_column_type_id__volatile, plugins_manifest_list_view_column_type_id); - } - return plugins_manifest_list_view_column_type_id__volatile; -} - - -static gint -_plugins_compare_extension_point_names_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = plugins_compare_extension_point_names (a, b); -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 914 "ManifestWidget.c" -} - - -static gint -_plugins_compare_pluggable_names_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = plugins_compare_pluggable_names (a, b); -#line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 927 "ManifestWidget.c" -} - - -PluginsManifestListView* -plugins_manifest_list_view_construct (GType object_type) -{ - PluginsManifestListView * self = NULL; - GtkTreeStore* _tmp0_; - GtkCellRendererToggle* checkbox_renderer = NULL; - GtkCellRendererToggle* _tmp1_; - GtkCellRendererToggle* _tmp2_; - GtkCellRendererToggle* _tmp3_; - GtkCellRendererPixbuf* icon_renderer = NULL; - GtkCellRendererPixbuf* _tmp4_; - GtkCellRendererPixbuf* _tmp5_; - GtkCellRendererPixbuf* _tmp6_; - GtkCellRendererPixbuf* _tmp7_; - GtkCellRendererText* text_renderer = NULL; - GtkCellRendererText* _tmp8_; - GtkTreeViewColumn* column = NULL; - GtkTreeViewColumn* _tmp9_; - GtkTreeViewColumn* _tmp10_; - GtkTreeViewColumn* _tmp11_; - GtkCellRendererToggle* _tmp12_; - GtkTreeViewColumn* _tmp13_; - GtkCellRendererPixbuf* _tmp14_; - GtkTreeViewColumn* _tmp15_; - GtkCellRendererText* _tmp16_; - GtkTreeViewColumn* _tmp17_; - GtkCellRendererToggle* _tmp18_; - GtkTreeViewColumn* _tmp19_; - GtkCellRendererToggle* _tmp20_; - GtkTreeViewColumn* _tmp21_; - GtkCellRendererPixbuf* _tmp22_; - GtkTreeViewColumn* _tmp23_; - GtkCellRendererText* _tmp24_; - GtkTreeViewColumn* _tmp25_; - GtkTreeSelection* _tmp26_; - GtkIconTheme* icon_theme = NULL; - GtkIconTheme* _tmp27_; - GError * _inner_error_ = NULL; -#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - self = (PluginsManifestListView*) g_object_new (object_type, NULL); -#line 117 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = self->priv->store; -#line 117 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_set_model (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_tree_model_get_type (), GtkTreeModel)); -#line 119 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp1_ = (GtkCellRendererToggle*) gtk_cell_renderer_toggle_new (); -#line 119 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_object_ref_sink (_tmp1_); -#line 119 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - checkbox_renderer = _tmp1_; -#line 120 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp2_ = checkbox_renderer; -#line 120 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_cell_renderer_toggle_set_radio (_tmp2_, FALSE); -#line 121 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp3_ = checkbox_renderer; -#line 121 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_cell_renderer_toggle_set_activatable (_tmp3_, TRUE); -#line 123 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp4_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new (); -#line 123 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_object_ref_sink (_tmp4_); -#line 123 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - icon_renderer = _tmp4_; -#line 124 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp5_ = icon_renderer; -#line 124 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_object_set (_tmp5_, "stock-size", (guint) GTK_ICON_SIZE_MENU, NULL); -#line 125 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp6_ = icon_renderer; -#line 125 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_object_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_cell_renderer_get_type (), GtkCellRenderer), "xpad", (guint) PLUGINS_MANIFEST_LIST_VIEW_ICON_X_PADDING, NULL); -#line 126 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp7_ = icon_renderer; -#line 126 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_object_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_cell_renderer_get_type (), GtkCellRenderer), "ypad", (guint) PLUGINS_MANIFEST_LIST_VIEW_ICON_Y_PADDING, NULL); -#line 128 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp8_ = (GtkCellRendererText*) gtk_cell_renderer_text_new (); -#line 128 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_object_ref_sink (_tmp8_); -#line 128 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - text_renderer = _tmp8_; -#line 130 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp9_ = gtk_tree_view_column_new (); -#line 130 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_object_ref_sink (_tmp9_); -#line 130 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - column = _tmp9_; -#line 131 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp10_ = column; -#line 131 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_column_set_sizing (_tmp10_, GTK_TREE_VIEW_COLUMN_AUTOSIZE); -#line 132 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp11_ = column; -#line 132 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp12_ = checkbox_renderer; -#line 132 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_cell_renderer_get_type (), GtkCellRenderer), FALSE); -#line 133 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp13_ = column; -#line 133 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp14_ = icon_renderer; -#line 133 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_cell_renderer_get_type (), GtkCellRenderer), FALSE); -#line 134 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp15_ = column; -#line 134 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp16_ = text_renderer; -#line 134 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_cell_layout_pack_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_cell_renderer_get_type (), GtkCellRenderer), TRUE); -#line 136 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp17_ = column; -#line 136 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp18_ = checkbox_renderer; -#line 136 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_cell_renderer_get_type (), GtkCellRenderer), "active", (gint) PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ENABLED); -#line 137 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp19_ = column; -#line 137 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp20_ = checkbox_renderer; -#line 137 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_cell_renderer_get_type (), GtkCellRenderer), "visible", (gint) PLUGINS_MANIFEST_LIST_VIEW_COLUMN_CAN_ENABLE); -#line 138 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp21_ = column; -#line 138 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp22_ = icon_renderer; -#line 138 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_cell_renderer_get_type (), GtkCellRenderer), "pixbuf", (gint) PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ICON); -#line 139 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp23_ = column; -#line 139 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp24_ = text_renderer; -#line 139 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_cell_renderer_get_type (), GtkCellRenderer), "text", (gint) PLUGINS_MANIFEST_LIST_VIEW_COLUMN_NAME); -#line 141 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp25_ = column; -#line 141 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_append_column (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp25_); -#line 143 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_set_headers_visible (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE); -#line 144 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_set_enable_search (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE); -#line 145 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_set_show_expanders (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), TRUE); -#line 146 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_set_reorderable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE); -#line 147 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_set_enable_tree_lines (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE); -#line 148 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_set_grid_lines (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), GTK_TREE_VIEW_GRID_LINES_NONE); -#line 149 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp26_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView)); -#line 149 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_selection_set_mode (_tmp26_, GTK_SELECTION_BROWSE); -#line 151 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp27_ = resources_get_icon_theme_engine (); -#line 151 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - icon_theme = _tmp27_; -#line 1089 "ManifestWidget.c" - { - GeeIterator* _extension_point_it = NULL; - GeeCollection* _tmp28_; - GeeCollection* _tmp29_; - GeeIterator* _tmp30_; - GeeIterator* _tmp31_; -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp28_ = plugins_get_extension_points (_plugins_compare_extension_point_names_gcompare_data_func, NULL, NULL); -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp29_ = _tmp28_; -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp30_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp31_ = _tmp30_; -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_tmp29_); -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _extension_point_it = _tmp31_; -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - while (TRUE) { -#line 1110 "ManifestWidget.c" - GeeIterator* _tmp32_; - PluginsExtensionPoint* extension_point = NULL; - GeeIterator* _tmp33_; - gpointer _tmp34_; - GtkTreeIter category_iter = {0}; - GtkTreeStore* _tmp35_; - GtkTreeIter _tmp36_ = {0}; - GdkPixbuf* icon = NULL; - PluginsExtensionPoint* _tmp37_; - const gchar* _tmp38_; - const gchar* _tmp39_; - GtkTreeStore* _tmp58_; - GtkTreeIter _tmp59_; - PluginsExtensionPoint* _tmp60_; - const gchar* _tmp61_; - const gchar* _tmp62_; - GdkPixbuf* _tmp63_; - GeeCollection* pluggables = NULL; - PluginsExtensionPoint* _tmp64_; - GType _tmp65_; - GType _tmp66_; - GeeCollection* _tmp67_; -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp32_ = _extension_point_it; -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!gee_iterator_next (_tmp32_)) { -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - break; -#line 1139 "ManifestWidget.c" - } -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp33_ = _extension_point_it; -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp34_ = gee_iterator_get (_tmp33_); -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - extension_point = (PluginsExtensionPoint*) _tmp34_; -#line 157 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp35_ = self->priv->store; -#line 157 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_store_append (_tmp35_, &_tmp36_, NULL); -#line 157 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - category_iter = _tmp36_; -#line 159 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - icon = NULL; -#line 160 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp37_ = extension_point; -#line 160 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp38_ = plugins_extension_point_get_icon_name (_tmp37_); -#line 160 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp39_ = _tmp38_; -#line 160 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp39_ != NULL) { -#line 1163 "ManifestWidget.c" - GtkIconInfo* icon_info = NULL; - GtkIconTheme* _tmp40_; - PluginsExtensionPoint* _tmp41_; - const gchar* _tmp42_; - const gchar* _tmp43_; - GThemedIcon* _tmp44_; - GThemedIcon* _tmp45_; - GtkIconInfo* _tmp46_; - GtkIconInfo* _tmp47_; - GtkIconInfo* _tmp48_; -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp40_ = icon_theme; -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp41_ = extension_point; -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp42_ = plugins_extension_point_get_icon_name (_tmp41_); -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp43_ = _tmp42_; -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp44_ = (GThemedIcon*) g_themed_icon_new (_tmp43_); -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp45_ = _tmp44_; -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp46_ = gtk_icon_theme_lookup_by_gicon (_tmp40_, G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, g_icon_get_type (), GIcon), PLUGINS_MANIFEST_LIST_VIEW_ICON_SIZE, 0); -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp47_ = _tmp46_; -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_tmp45_); -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - icon_info = _tmp47_; -#line 163 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp48_ = icon_info; -#line 163 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp48_ != NULL) { -#line 1198 "ManifestWidget.c" - { - GdkPixbuf* _tmp49_ = NULL; - GtkIconInfo* _tmp50_; - GdkPixbuf* _tmp51_; - GdkPixbuf* _tmp52_; -#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp50_ = icon_info; -#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp51_ = gtk_icon_info_load_icon (_tmp50_, &_inner_error_); -#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp49_ = _tmp51_; -#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1212 "ManifestWidget.c" - goto __catch41_g_error; - } -#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp52_ = _tmp49_; -#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp49_ = NULL; -#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (icon); -#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - icon = _tmp52_; -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_tmp49_); -#line 1225 "ManifestWidget.c" - } - goto __finally41; - __catch41_g_error: - { - GError* err = NULL; - PluginsExtensionPoint* _tmp53_; - const gchar* _tmp54_; - const gchar* _tmp55_; - GError* _tmp56_; - const gchar* _tmp57_; -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - err = _inner_error_; -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _inner_error_ = NULL; -#line 167 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp53_ = extension_point; -#line 167 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp54_ = plugins_extension_point_get_icon_name (_tmp53_); -#line 167 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp55_ = _tmp54_; -#line 167 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp56_ = err; -#line 167 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp57_ = _tmp56_->message; -#line 167 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_warning ("ManifestWidget.vala:167: Unable to load icon %s: %s", _tmp55_, _tmp57_); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_error_free0 (err); -#line 1254 "ManifestWidget.c" - } - __finally41: -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _gtk_icon_info_free0 (icon_info); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (icon); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _plugins_extension_point_unref0 (extension_point); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_extension_point_it); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (icon_theme); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (column); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (text_renderer); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (icon_renderer); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (checkbox_renderer); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_clear_error (&_inner_error_); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return NULL; -#line 1283 "ManifestWidget.c" - } - } -#line 160 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _gtk_icon_info_free0 (icon_info); -#line 1288 "ManifestWidget.c" - } -#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp58_ = self->priv->store; -#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp59_ = category_iter; -#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp60_ = extension_point; -#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp61_ = plugins_extension_point_get_name (_tmp60_); -#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp62_ = _tmp61_; -#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp63_ = icon; -#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_store_set (_tmp58_, &_tmp59_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_NAME, _tmp62_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_CAN_ENABLE, FALSE, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ICON, _tmp63_, -1); -#line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp64_ = extension_point; -#line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp65_ = plugins_extension_point_get_pluggable_type (_tmp64_); -#line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp66_ = _tmp65_; -#line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp67_ = plugins_get_pluggables_for_type (_tmp66_, _plugins_compare_pluggable_names_gcompare_data_func, NULL, NULL, TRUE); -#line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - pluggables = _tmp67_; -#line 1314 "ManifestWidget.c" - { - GeeIterator* _pluggable_it = NULL; - GeeCollection* _tmp68_; - GeeIterator* _tmp69_; -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp68_ = pluggables; -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp69_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _pluggable_it = _tmp69_; -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - while (TRUE) { -#line 1327 "ManifestWidget.c" - GeeIterator* _tmp70_; - SpitPluggable* pluggable = NULL; - GeeIterator* _tmp71_; - gpointer _tmp72_; - gboolean enabled = FALSE; - SpitPluggable* _tmp73_; - const gchar* _tmp74_; - gboolean _tmp75_ = FALSE; - gboolean _tmp76_; - SpitPluggableInfo info = {0}; - SpitPluggable* _tmp77_; - GdkPixbuf* _tmp78_ = NULL; - gboolean _tmp79_ = FALSE; - SpitPluggableInfo _tmp80_; - GdkPixbuf** _tmp81_; - gint _tmp81__length1; - GdkPixbuf* _tmp89_; - GtkTreeIter plugin_iter = {0}; - GtkTreeStore* _tmp90_; - GtkTreeIter _tmp91_; - GtkTreeIter _tmp92_ = {0}; - GtkTreeStore* _tmp93_; - GtkTreeIter _tmp94_; - gboolean _tmp95_; - SpitPluggable* _tmp96_; - const gchar* _tmp97_; - SpitPluggable* _tmp98_; - const gchar* _tmp99_; - GdkPixbuf* _tmp100_; -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp70_ = _pluggable_it; -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!gee_iterator_next (_tmp70_)) { -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - break; -#line 1363 "ManifestWidget.c" - } -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp71_ = _pluggable_it; -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp72_ = gee_iterator_get (_tmp71_); -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - pluggable = (SpitPluggable*) _tmp72_; -#line 179 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp73_ = pluggable; -#line 179 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp74_ = spit_pluggable_get_id (_tmp73_); -#line 179 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp76_ = plugins_get_pluggable_enabled (_tmp74_, &_tmp75_); -#line 179 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - enabled = _tmp75_; -#line 179 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!_tmp76_) { -#line 180 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (pluggable); -#line 180 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - continue; -#line 1385 "ManifestWidget.c" - } -#line 182 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - memset (&info, 0, sizeof (SpitPluggableInfo)); -#line 183 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp77_ = pluggable; -#line 183 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - spit_pluggable_get_info (_tmp77_, &info); -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp80_ = info; -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp81_ = _tmp80_.icons; -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp81__length1 = _tmp80_.icons_length1; -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp81_ != NULL) { -#line 1401 "ManifestWidget.c" - SpitPluggableInfo _tmp82_; - GdkPixbuf** _tmp83_; - gint _tmp83__length1; -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp82_ = info; -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp83_ = _tmp82_.icons; -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp83__length1 = _tmp82_.icons_length1; -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp79_ = _tmp83__length1 > 0; -#line 1413 "ManifestWidget.c" - } else { -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp79_ = FALSE; -#line 1417 "ManifestWidget.c" - } -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp79_) { -#line 1421 "ManifestWidget.c" - SpitPluggableInfo _tmp84_; - GdkPixbuf** _tmp85_; - gint _tmp85__length1; - GdkPixbuf* _tmp86_; - GdkPixbuf* _tmp87_; -#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp84_ = info; -#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp85_ = _tmp84_.icons; -#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp85__length1 = _tmp84_.icons_length1; -#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp86_ = _tmp85_[0]; -#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp87_ = _g_object_ref0 (_tmp86_); -#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_tmp78_); -#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp78_ = _tmp87_; -#line 1441 "ManifestWidget.c" - } else { - GdkPixbuf* _tmp88_; -#line 187 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp88_ = resources_get_icon (RESOURCES_ICON_GENERIC_PLUGIN, PLUGINS_MANIFEST_LIST_VIEW_ICON_SIZE); -#line 187 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_tmp78_); -#line 187 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp78_ = _tmp88_; -#line 1450 "ManifestWidget.c" - } -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp89_ = _g_object_ref0 (_tmp78_); -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (icon); -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - icon = _tmp89_; -#line 190 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp90_ = self->priv->store; -#line 190 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp91_ = category_iter; -#line 190 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_store_append (_tmp90_, &_tmp92_, &_tmp91_); -#line 190 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - plugin_iter = _tmp92_; -#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp93_ = self->priv->store; -#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp94_ = plugin_iter; -#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp95_ = enabled; -#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp96_ = pluggable; -#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp97_ = spit_pluggable_get_pluggable_name (_tmp96_); -#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp98_ = pluggable; -#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp99_ = spit_pluggable_get_id (_tmp98_); -#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp100_ = icon; -#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_store_set (_tmp93_, &_tmp94_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ENABLED, _tmp95_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_NAME, _tmp97_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ID, _tmp99_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_CAN_ENABLE, TRUE, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ICON, _tmp100_, -1); -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_tmp78_); -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - spit_pluggable_info_destroy (&info); -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (pluggable); -#line 1490 "ManifestWidget.c" - } -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_pluggable_it); -#line 1494 "ManifestWidget.c" - } -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (pluggables); -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (icon); -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _plugins_extension_point_unref0 (extension_point); -#line 1502 "ManifestWidget.c" - } -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_extension_point_it); -#line 1506 "ManifestWidget.c" - } -#line 197 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_expand_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView)); -#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (icon_theme); -#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (column); -#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (text_renderer); -#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (icon_renderer); -#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (checkbox_renderer); -#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return self; -#line 1522 "ManifestWidget.c" -} - - -PluginsManifestListView* -plugins_manifest_list_view_new (void) -{ -#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return plugins_manifest_list_view_construct (PLUGINS_TYPE_MANIFEST_LIST_VIEW); -#line 1531 "ManifestWidget.c" -} - - -static GtkTreePath* -_vala_GtkTreePath_copy (GtkTreePath* self) -{ -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return g_boxed_copy (gtk_tree_path_get_type (), self); -#line 1540 "ManifestWidget.c" -} - - -static gpointer -__vala_GtkTreePath_copy0 (gpointer self) -{ -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return self ? _vala_GtkTreePath_copy (self) : NULL; -#line 1549 "ManifestWidget.c" -} - - -static void -_vala_array_add53 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if ((*length) == (*size)) { -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 1565 "ManifestWidget.c" - } -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - (*array)[(*length)++] = value; -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - (*array)[*length] = NULL; -#line 1571 "ManifestWidget.c" -} - - -static void -_vala_GtkTreePath_free (GtkTreePath* self) -{ -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_boxed_free (gtk_tree_path_get_type (), self); -#line 1580 "ManifestWidget.c" -} - - -static void -__vala_GtkTreePath_free0_ (gpointer var) -{ -#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - (var == NULL) ? NULL : (var = (_vala_GtkTreePath_free (var), NULL)); -#line 1589 "ManifestWidget.c" -} - - -static inline void -_g_list_free___vala_GtkTreePath_free0_ (GList* self) -{ -#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_list_free_full (self, (GDestroyNotify) __vala_GtkTreePath_free0_); -#line 1598 "ManifestWidget.c" -} - - -gchar** -plugins_manifest_list_view_get_selected_ids (PluginsManifestListView* self, - int* result_length1) -{ - gchar** result = NULL; - gchar** ids = NULL; - gchar** _tmp0_; - gint ids_length1; - gint _ids_size_; - GList* selected = NULL; - GtkTreeSelection* _tmp1_; - GList* _tmp2_; - GList* _tmp3_; - gchar** _tmp12_; - gint _tmp12__length1; -#line 200 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_return_val_if_fail (PLUGINS_IS_MANIFEST_LIST_VIEW (self), NULL); -#line 201 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = g_new0 (gchar*, 0 + 1); -#line 201 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids = _tmp0_; -#line 201 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids_length1 = 0; -#line 201 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _ids_size_ = ids_length1; -#line 203 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp1_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView)); -#line 203 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp2_ = gtk_tree_selection_get_selected_rows (_tmp1_, NULL); -#line 203 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - selected = _tmp2_; -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp3_ = selected; -#line 1635 "ManifestWidget.c" - { - GList* path_collection = NULL; - GList* path_it = NULL; -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - path_collection = _tmp3_; -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - for (path_it = path_collection; path_it != NULL; path_it = path_it->next) { -#line 1643 "ManifestWidget.c" - GtkTreePath* _tmp4_; - GtkTreePath* path = NULL; -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp4_ = __vala_GtkTreePath_copy0 ((GtkTreePath*) path_it->data); -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - path = _tmp4_; -#line 1650 "ManifestWidget.c" - { - GtkTreeIter iter = {0}; - gchar* id = NULL; - GtkTreePath* _tmp5_; - GtkTreeIter _tmp6_ = {0}; - gchar* _tmp7_; - const gchar* _tmp8_; -#line 206 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp5_ = path; -#line 206 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp7_ = plugins_manifest_list_view_get_id_at_path (self, _tmp5_, &_tmp6_); -#line 206 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - iter = _tmp6_; -#line 206 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - id = _tmp7_; -#line 207 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp8_ = id; -#line 207 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp8_ != NULL) { -#line 1670 "ManifestWidget.c" - gchar** _tmp9_; - gint _tmp9__length1; - const gchar* _tmp10_; - gchar* _tmp11_; -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp9_ = ids; -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp9__length1 = ids_length1; -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp10_ = id; -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp11_ = g_strdup (_tmp10_); -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _vala_array_add53 (&ids, &ids_length1, &_ids_size_, _tmp11_); -#line 1685 "ManifestWidget.c" - } -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_free0 (id); -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - __vala_GtkTreePath_free0 (path); -#line 1691 "ManifestWidget.c" - } - } - } -#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp12_ = ids; -#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp12__length1 = ids_length1; -#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (result_length1) { -#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - *result_length1 = _tmp12__length1; -#line 1703 "ManifestWidget.c" - } -#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - result = _tmp12_; -#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - __g_list_free___vala_GtkTreePath_free0_0 (selected); -#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 1711 "ManifestWidget.c" -} - - -static gchar* -plugins_manifest_list_view_get_id_at_path (PluginsManifestListView* self, - GtkTreePath* path, - GtkTreeIter* iter) -{ - GtkTreeIter _vala_iter = {0}; - gchar* result = NULL; - GtkTreeStore* _tmp0_; - GtkTreeIter _tmp1_ = {0}; - gboolean _tmp2_; - const gchar* id = NULL; - GtkTreeStore* _tmp3_; - GtkTreeIter _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; -#line 214 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_return_val_if_fail (PLUGINS_IS_MANIFEST_LIST_VIEW (self), NULL); -#line 214 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_return_val_if_fail (path != NULL, NULL); -#line 215 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = self->priv->store; -#line 215 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp2_ = gtk_tree_model_get_iter (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp1_, path); -#line 215 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _vala_iter = _tmp1_; -#line 215 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!_tmp2_) { -#line 216 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - result = NULL; -#line 216 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (iter) { -#line 216 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - *iter = _vala_iter; -#line 1748 "ManifestWidget.c" - } -#line 216 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 1752 "ManifestWidget.c" - } -#line 219 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp3_ = self->priv->store; -#line 219 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp4_ = _vala_iter; -#line 219 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_model_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp4_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ID, &id, -1); -#line 221 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp5_ = id; -#line 221 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 221 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - result = _tmp6_; -#line 221 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (iter) { -#line 221 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - *iter = _vala_iter; -#line 1770 "ManifestWidget.c" - } -#line 221 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 1774 "ManifestWidget.c" -} - - -static gboolean -plugins_manifest_list_view_real_button_press_event (GtkWidget* base, - GdkEventButton* event) -{ - PluginsManifestListView * self; - gboolean result = FALSE; - GtkTreePath* path = NULL; - GtkTreeViewColumn* col = NULL; - gint cellx = 0; - gint celly = 0; - gdouble _tmp0_; - gdouble _tmp1_; - GtkTreePath* _tmp2_ = NULL; - GtkTreeViewColumn* _tmp3_ = NULL; - gint _tmp4_ = 0; - gint _tmp5_ = 0; - gboolean _tmp6_; - GtkTreeViewColumn* _tmp7_; - gboolean _tmp8_ = FALSE; - gint _tmp9_; - GtkTreeIter iter = {0}; - gchar* id = NULL; - GtkTreePath* _tmp11_; - GtkTreeIter _tmp12_ = {0}; - gchar* _tmp13_; - const gchar* _tmp14_; - gboolean enabled = FALSE; - const gchar* _tmp15_; - gboolean _tmp16_ = FALSE; - gboolean _tmp17_; - gboolean _tmp18_; - const gchar* _tmp19_; - gboolean _tmp20_; - GtkTreeStore* _tmp21_; - GtkTreeIter _tmp22_; - gboolean _tmp23_; -#line 232 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_MANIFEST_LIST_VIEW, PluginsManifestListView); -#line 232 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = event->x; -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp1_ = event->y; -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp6_ = gtk_tree_view_get_path_at_pos (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), (gint) _tmp0_, (gint) _tmp1_, &_tmp2_, &_tmp3_, &_tmp4_, &_tmp5_); -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - __vala_GtkTreePath_free0 (path); -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - path = _tmp2_; -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (col); -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp7_ = _g_object_ref0 (_tmp3_); -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - col = _tmp7_; -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - cellx = _tmp4_; -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - celly = _tmp5_; -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!_tmp6_) { -#line 239 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - result = GTK_WIDGET_CLASS (plugins_manifest_list_view_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), event); -#line 239 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (col); -#line 239 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - __vala_GtkTreePath_free0 (path); -#line 239 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 1848 "ManifestWidget.c" - } -#line 244 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp9_ = cellx; -#line 244 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp9_ < (PLUGINS_MANIFEST_LIST_VIEW_ICON_SIZE + PLUGINS_MANIFEST_LIST_VIEW_ICON_X_PADDING)) { -#line 244 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp8_ = TRUE; -#line 1856 "ManifestWidget.c" - } else { - gint _tmp10_; -#line 244 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp10_ = cellx; -#line 244 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp8_ = _tmp10_ > (2 * (PLUGINS_MANIFEST_LIST_VIEW_ICON_X_PADDING + PLUGINS_MANIFEST_LIST_VIEW_ICON_SIZE)); -#line 1863 "ManifestWidget.c" - } -#line 244 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp8_) { -#line 245 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - result = GTK_WIDGET_CLASS (plugins_manifest_list_view_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), event); -#line 245 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (col); -#line 245 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - __vala_GtkTreePath_free0 (path); -#line 245 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 1875 "ManifestWidget.c" - } -#line 248 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp11_ = path; -#line 248 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp13_ = plugins_manifest_list_view_get_id_at_path (self, _tmp11_, &_tmp12_); -#line 248 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - iter = _tmp12_; -#line 248 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - id = _tmp13_; -#line 249 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp14_ = id; -#line 249 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp14_ == NULL) { -#line 250 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - result = GTK_WIDGET_CLASS (plugins_manifest_list_view_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), event); -#line 250 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_free0 (id); -#line 250 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (col); -#line 250 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - __vala_GtkTreePath_free0 (path); -#line 250 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 1899 "ManifestWidget.c" - } -#line 253 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp15_ = id; -#line 253 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp17_ = plugins_get_pluggable_enabled (_tmp15_, &_tmp16_); -#line 253 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - enabled = _tmp16_; -#line 253 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!_tmp17_) { -#line 254 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - result = GTK_WIDGET_CLASS (plugins_manifest_list_view_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), event); -#line 254 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_free0 (id); -#line 254 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (col); -#line 254 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - __vala_GtkTreePath_free0 (path); -#line 254 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 1919 "ManifestWidget.c" - } -#line 257 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp18_ = enabled; -#line 257 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - enabled = !_tmp18_; -#line 258 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp19_ = id; -#line 258 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp20_ = enabled; -#line 258 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - plugins_set_pluggable_enabled (_tmp19_, _tmp20_); -#line 260 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp21_ = self->priv->store; -#line 260 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp22_ = iter; -#line 260 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp23_ = enabled; -#line 260 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_store_set (_tmp21_, &_tmp22_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ENABLED, _tmp23_, -1); -#line 262 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - result = TRUE; -#line 262 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_free0 (id); -#line 262 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (col); -#line 262 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - __vala_GtkTreePath_free0 (path); -#line 262 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 1949 "ManifestWidget.c" -} - - -static void -plugins_manifest_list_view_class_init (PluginsManifestListViewClass * klass) -{ -#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - plugins_manifest_list_view_parent_class = g_type_class_peek_parent (klass); -#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_type_class_add_private (klass, sizeof (PluginsManifestListViewPrivate)); -#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ((GtkWidgetClass *) klass)->button_press_event = (gboolean (*) (GtkWidget *, GdkEventButton*)) plugins_manifest_list_view_real_button_press_event; -#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - G_OBJECT_CLASS (klass)->finalize = plugins_manifest_list_view_finalize; -#line 1964 "ManifestWidget.c" -} - - -static void -plugins_manifest_list_view_instance_init (PluginsManifestListView * self) -{ - GtkTreeStore* _tmp0_; -#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - self->priv = PLUGINS_MANIFEST_LIST_VIEW_GET_PRIVATE (self); -#line 108 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = gtk_tree_store_new ((gint) PLUGINS_MANIFEST_LIST_VIEW_COLUMN_N_COLUMNS, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, gdk_pixbuf_get_type (), G_TYPE_STRING, G_TYPE_STRING); -#line 108 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - self->priv->store = _tmp0_; -#line 1978 "ManifestWidget.c" -} - - -static void -plugins_manifest_list_view_finalize (GObject * obj) -{ - PluginsManifestListView * self; -#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_MANIFEST_LIST_VIEW, PluginsManifestListView); -#line 108 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (self->priv->store); -#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - G_OBJECT_CLASS (plugins_manifest_list_view_parent_class)->finalize (obj); -#line 1992 "ManifestWidget.c" -} - - -GType -plugins_manifest_list_view_get_type (void) -{ - static volatile gsize plugins_manifest_list_view_type_id__volatile = 0; - if (g_once_init_enter (&plugins_manifest_list_view_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PluginsManifestListViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_manifest_list_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsManifestListView), 0, (GInstanceInitFunc) plugins_manifest_list_view_instance_init, NULL }; - GType plugins_manifest_list_view_type_id; - plugins_manifest_list_view_type_id = g_type_register_static (gtk_tree_view_get_type (), "PluginsManifestListView", &g_define_type_info, 0); - g_once_init_leave (&plugins_manifest_list_view_type_id__volatile, plugins_manifest_list_view_type_id); - } - return plugins_manifest_list_view_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); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/src/plugins/Plugins.c b/src/plugins/Plugins.c deleted file mode 100644 index 55b8513..0000000 --- a/src/plugins/Plugins.c +++ /dev/null @@ -1,4582 +0,0 @@ -/* Plugins.c generated by valac 0.40.4, the Vala compiler - * generated from Plugins.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 <glib.h> -#include <glib-object.h> -#include <stdlib.h> -#include <string.h> -#include <gio/gio.h> -#include <gmodule.h> -#include "shotwell-plugin-dev-1.0.h" -#include <gee.h> -#include <gobject/gvaluecollector.h> - - -#define PLUGINS_TYPE_EXTENSION_POINT (plugins_extension_point_get_type ()) -#define PLUGINS_EXTENSION_POINT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPoint)) -#define PLUGINS_EXTENSION_POINT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPointClass)) -#define PLUGINS_IS_EXTENSION_POINT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_EXTENSION_POINT)) -#define PLUGINS_IS_EXTENSION_POINT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_EXTENSION_POINT)) -#define PLUGINS_EXTENSION_POINT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPointClass)) - -typedef struct _PluginsExtensionPoint PluginsExtensionPoint; -typedef struct _PluginsExtensionPointClass PluginsExtensionPointClass; -typedef struct _PluginsExtensionPointPrivate PluginsExtensionPointPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _PluginsParamSpecExtensionPoint PluginsParamSpecExtensionPoint; - -#define PLUGINS_TYPE_MODULE_REP (plugins_module_rep_get_type ()) -#define PLUGINS_MODULE_REP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_MODULE_REP, PluginsModuleRep)) -#define PLUGINS_MODULE_REP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_MODULE_REP, PluginsModuleRepClass)) -#define PLUGINS_IS_MODULE_REP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_MODULE_REP)) -#define PLUGINS_IS_MODULE_REP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_MODULE_REP)) -#define PLUGINS_MODULE_REP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_MODULE_REP, PluginsModuleRepClass)) - -typedef struct _PluginsModuleRep PluginsModuleRep; -typedef struct _PluginsModuleRepClass PluginsModuleRepClass; -typedef struct _PluginsModuleRepPrivate PluginsModuleRepPrivate; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_module_close0(var) ((var == NULL) ? NULL : (var = (g_module_close (var), NULL))) -#define _plugins_module_rep_unref0(var) ((var == NULL) ? NULL : (var = (plugins_module_rep_unref (var), NULL))) -typedef struct _PluginsParamSpecModuleRep PluginsParamSpecModuleRep; - -#define PLUGINS_TYPE_PLUGGABLE_REP (plugins_pluggable_rep_get_type ()) -#define PLUGINS_PLUGGABLE_REP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_PLUGGABLE_REP, PluginsPluggableRep)) -#define PLUGINS_PLUGGABLE_REP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_PLUGGABLE_REP, PluginsPluggableRepClass)) -#define PLUGINS_IS_PLUGGABLE_REP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_PLUGGABLE_REP)) -#define PLUGINS_IS_PLUGGABLE_REP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_PLUGGABLE_REP)) -#define PLUGINS_PLUGGABLE_REP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_PLUGGABLE_REP, PluginsPluggableRepClass)) - -typedef struct _PluginsPluggableRep PluginsPluggableRep; -typedef struct _PluginsPluggableRepClass PluginsPluggableRepClass; -typedef struct _PluginsPluggableRepPrivate PluginsPluggableRepPrivate; - -#define TYPE_FUZZY_PROPERTY_STATE (fuzzy_property_state_get_type ()) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -typedef struct _PluginsParamSpecPluggableRep PluginsParamSpecPluggableRep; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define PLUGINS_TYPE_NOTIFIER (plugins_notifier_get_type ()) -#define PLUGINS_NOTIFIER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_NOTIFIER, PluginsNotifier)) -#define PLUGINS_NOTIFIER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_NOTIFIER, PluginsNotifierClass)) -#define PLUGINS_IS_NOTIFIER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_NOTIFIER)) -#define PLUGINS_IS_NOTIFIER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_NOTIFIER)) -#define PLUGINS_NOTIFIER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_NOTIFIER, PluginsNotifierClass)) - -typedef struct _PluginsNotifier PluginsNotifier; -typedef struct _PluginsNotifierClass PluginsNotifierClass; -typedef struct _PluginsNotifierPrivate PluginsNotifierPrivate; -#define _plugins_notifier_unref0(var) ((var == NULL) ? NULL : (var = (plugins_notifier_unref (var), NULL))) -typedef struct _PluginsParamSpecNotifier PluginsParamSpecNotifier; -enum { - PLUGINS_NOTIFIER_PLUGGABLE_ACTIVATION_SIGNAL, - PLUGINS_NOTIFIER_NUM_SIGNALS -}; -static guint plugins_notifier_signals[PLUGINS_NOTIFIER_NUM_SIGNALS] = {0}; -#define _plugins_extension_point_unref0(var) ((var == NULL) ? NULL : (var = (plugins_extension_point_unref (var), NULL))) -#define _plugins_pluggable_rep_unref0(var) ((var == NULL) ? NULL : (var = (plugins_pluggable_rep_unref (var), NULL))) - -#define TYPE_PREPARE_INPUT_TEXT_OPTIONS (prepare_input_text_options_get_type ()) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PluginsExtensionPoint { - GTypeInstance parent_instance; - volatile int ref_count; - PluginsExtensionPointPrivate * priv; -}; - -struct _PluginsExtensionPointClass { - GTypeClass parent_class; - void (*finalize) (PluginsExtensionPoint *self); -}; - -struct _PluginsExtensionPointPrivate { - GType _pluggable_type; - gchar* _name; - gchar* _icon_name; - gchar** _core_ids; - gint _core_ids_length1; - gint __core_ids_size_; -}; - -struct _PluginsParamSpecExtensionPoint { - GParamSpec parent_instance; -}; - -struct _PluginsModuleRep { - GTypeInstance parent_instance; - volatile int ref_count; - PluginsModuleRepPrivate * priv; - GFile* file; - GModule* module; - SpitModule* spit_module; - gint spit_interface; - gchar* id; -}; - -struct _PluginsModuleRepClass { - GTypeClass parent_class; - void (*finalize) (PluginsModuleRep *self); -}; - -struct _PluginsParamSpecModuleRep { - GParamSpec parent_instance; -}; - -struct _PluginsPluggableRep { - GTypeInstance parent_instance; - volatile int ref_count; - PluginsPluggableRepPrivate * priv; -}; - -struct _PluginsPluggableRepClass { - GTypeClass parent_class; - void (*finalize) (PluginsPluggableRep *self); -}; - -struct _PluginsPluggableRepPrivate { - SpitPluggable* _pluggable; - gchar* _id; - gboolean _is_core; - gboolean _activated; - gboolean enabled; -}; - -typedef enum { - FUZZY_PROPERTY_STATE_ENABLED, - FUZZY_PROPERTY_STATE_DISABLED, - FUZZY_PROPERTY_STATE_UNKNOWN -} FuzzyPropertyState; - -struct _PluginsParamSpecPluggableRep { - GParamSpec parent_instance; -}; - -struct _PluginsNotifier { - GTypeInstance parent_instance; - volatile int ref_count; - PluginsNotifierPrivate * priv; -}; - -struct _PluginsNotifierClass { - GTypeClass parent_class; - void (*finalize) (PluginsNotifier *self); -}; - -struct _PluginsParamSpecNotifier { - GParamSpec parent_instance; -}; - -typedef enum { - PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL = 1 << 0, - PREPARE_INPUT_TEXT_OPTIONS_VALIDATE = 1 << 1, - PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL = 1 << 2, - PREPARE_INPUT_TEXT_OPTIONS_STRIP = 1 << 3, - PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF = 1 << 4, - PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE = 1 << 5, - PREPARE_INPUT_TEXT_OPTIONS_DEFAULT = ((((PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE -} PrepareInputTextOptions; - - -static gpointer plugins_extension_point_parent_class = NULL; -static gpointer plugins_module_rep_parent_class = NULL; -static gpointer plugins_pluggable_rep_parent_class = NULL; -extern GFile** plugins_search_dirs; -extern gint plugins_search_dirs_length1; -GFile** plugins_search_dirs = NULL; -gint plugins_search_dirs_length1 = 0; -static gint _plugins_search_dirs_size_ = 0; -extern GeeHashMap* plugins_module_table; -GeeHashMap* plugins_module_table = NULL; -extern GeeHashMap* plugins_pluggable_table; -GeeHashMap* plugins_pluggable_table = NULL; -extern GeeHashMap* plugins_extension_points; -GeeHashMap* plugins_extension_points = NULL; -extern GeeHashSet* plugins_core_ids; -GeeHashSet* plugins_core_ids = NULL; -static gpointer plugins_notifier_parent_class = NULL; -static PluginsNotifier* plugins_notifier_instance; -static PluginsNotifier* plugins_notifier_instance = NULL; - -#define PLUGINS_MIN_SPIT_INTERFACE 0 -#define PLUGINS_MAX_SPIT_INTERFACE 0 -gpointer plugins_extension_point_ref (gpointer instance); -void plugins_extension_point_unref (gpointer instance); -GParamSpec* plugins_param_spec_extension_point (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void plugins_value_set_extension_point (GValue* value, - gpointer v_object); -void plugins_value_take_extension_point (GValue* value, - gpointer v_object); -gpointer plugins_value_get_extension_point (const GValue* value); -GType plugins_extension_point_get_type (void) G_GNUC_CONST; -#define PLUGINS_EXTENSION_POINT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPointPrivate)) -PluginsExtensionPoint* plugins_extension_point_new (GType pluggable_type, - const gchar* name, - const gchar* icon_name, - gchar** core_ids, - int core_ids_length1); -PluginsExtensionPoint* plugins_extension_point_construct (GType object_type, - GType pluggable_type, - const gchar* name, - const gchar* icon_name, - gchar** core_ids, - int core_ids_length1); -static void plugins_extension_point_set_pluggable_type (PluginsExtensionPoint* self, - GType value); -static void plugins_extension_point_set_name (PluginsExtensionPoint* self, - const gchar* value); -static void plugins_extension_point_set_icon_name (PluginsExtensionPoint* self, - const gchar* value); -static void plugins_extension_point_set_core_ids (PluginsExtensionPoint* self, - gchar** value, - int value_length1); -GType plugins_extension_point_get_pluggable_type (PluginsExtensionPoint* self); -const gchar* plugins_extension_point_get_name (PluginsExtensionPoint* self); -const gchar* plugins_extension_point_get_icon_name (PluginsExtensionPoint* self); -gchar** plugins_extension_point_get_core_ids (PluginsExtensionPoint* self, - int* result_length1); -static gchar** _vala_array_dup16 (gchar** self, - int length); -static void plugins_extension_point_finalize (PluginsExtensionPoint * obj); -gpointer plugins_module_rep_ref (gpointer instance); -void plugins_module_rep_unref (gpointer instance); -GParamSpec* plugins_param_spec_module_rep (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void plugins_value_set_module_rep (GValue* value, - gpointer v_object); -void plugins_value_take_module_rep (GValue* value, - gpointer v_object); -gpointer plugins_value_get_module_rep (const GValue* value); -GType plugins_module_rep_get_type (void) G_GNUC_CONST; -static PluginsModuleRep* plugins_module_rep_new (GFile* file); -static PluginsModuleRep* plugins_module_rep_construct (GType object_type, - GFile* file); -PluginsModuleRep* plugins_module_rep_open (GFile* file); -static void plugins_module_rep_finalize (PluginsModuleRep * obj); -gpointer plugins_pluggable_rep_ref (gpointer instance); -void plugins_pluggable_rep_unref (gpointer instance); -GParamSpec* plugins_param_spec_pluggable_rep (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void plugins_value_set_pluggable_rep (GValue* value, - gpointer v_object); -void plugins_value_take_pluggable_rep (GValue* value, - gpointer v_object); -gpointer plugins_value_get_pluggable_rep (const GValue* value); -GType plugins_pluggable_rep_get_type (void) G_GNUC_CONST; -#define PLUGINS_PLUGGABLE_REP_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PLUGINS_TYPE_PLUGGABLE_REP, PluginsPluggableRepPrivate)) -PluginsPluggableRep* plugins_pluggable_rep_new (SpitPluggable* pluggable); -PluginsPluggableRep* plugins_pluggable_rep_construct (GType object_type, - SpitPluggable* pluggable); -static void plugins_pluggable_rep_set_pluggable (PluginsPluggableRep* self, - SpitPluggable* value); -static void plugins_pluggable_rep_set_id (PluginsPluggableRep* self, - const gchar* value); -void plugins_pluggable_rep_activate (PluginsPluggableRep* self); -gboolean plugins_is_core_pluggable (SpitPluggable* pluggable); -SpitPluggable* plugins_pluggable_rep_get_pluggable (PluginsPluggableRep* self); -static void plugins_pluggable_rep_set_is_core (PluginsPluggableRep* self, - gboolean value); -GType fuzzy_property_state_get_type (void) G_GNUC_CONST; -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -FuzzyPropertyState configuration_facade_is_plugin_enabled (ConfigurationFacade* self, - const gchar* id); -const gchar* plugins_pluggable_rep_get_id (PluginsPluggableRep* self); -gboolean plugins_pluggable_rep_get_is_core (PluginsPluggableRep* self); -static void plugins_pluggable_rep_set_activated (PluginsPluggableRep* self, - gboolean value); -gboolean plugins_pluggable_rep_is_enabled (PluginsPluggableRep* self); -gboolean plugins_pluggable_rep_set_enabled (PluginsPluggableRep* self, - gboolean enabled); -void configuration_facade_set_plugin_enabled (ConfigurationFacade* self, - const gchar* id, - gboolean enabled); -gboolean plugins_pluggable_rep_get_activated (PluginsPluggableRep* self); -static void plugins_pluggable_rep_finalize (PluginsPluggableRep * obj); -void plugins_init (GError** error); -GFile* app_dirs_get_user_plugins_dir (void); -static void _vala_array_add50 (GFile** * array, - int* length, - int* size, - GFile* value); -GFile* app_dirs_get_system_plugins_dir (void); -static void _vala_array_add51 (GFile** * array, - int* length, - int* size, - GFile* value); -void plugins_search_for_plugins (GFile* dir, - GError** error); -void plugins_terminate (void); -gpointer plugins_notifier_ref (gpointer instance); -void plugins_notifier_unref (gpointer instance); -GParamSpec* plugins_param_spec_notifier (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void plugins_value_set_notifier (GValue* value, - gpointer v_object); -void plugins_value_take_notifier (GValue* value, - gpointer v_object); -gpointer plugins_value_get_notifier (const GValue* value); -GType plugins_notifier_get_type (void) G_GNUC_CONST; -static PluginsNotifier* plugins_notifier_new (void); -static PluginsNotifier* plugins_notifier_construct (GType object_type); -PluginsNotifier* plugins_notifier_get_instance (void); -static void g_cclosure_user_marshal_VOID__OBJECT_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void plugins_notifier_finalize (PluginsNotifier * obj); -void plugins_register_extension_point (GType type, - const gchar* name, - const gchar* icon_name, - gchar** core_ids, - int core_ids_length1); -GeeCollection* plugins_get_pluggables (gboolean include_disabled); -PluginsModuleRep* plugins_get_module_for_pluggable (SpitPluggable* needle); -static SpitPluggable** _vala_array_dup17 (SpitPluggable** self, - int length); -gchar* plugins_get_pluggable_module_id (SpitPluggable* needle); -GeeCollection* plugins_get_extension_points (GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify); -GeeCollection* plugins_get_pluggables_for_type (GType type, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify, - gboolean include_disabled); -gchar* plugins_get_pluggable_name (const gchar* id); -gboolean plugins_get_pluggable_info (const gchar* id, - SpitPluggableInfo* info); -gboolean plugins_get_pluggable_enabled (const gchar* id, - gboolean* enabled); -void plugins_set_pluggable_enabled (const gchar* id, - gboolean enabled); -GFile* plugins_get_pluggable_module_file (SpitPluggable* pluggable); -gint plugins_compare_pluggable_names (void* a, - void* b); -gint plugins_compare_extension_point_names (void* a, - void* b); -gboolean plugins_is_shared_library (GFile* file); -void disassemble_filename (const gchar* basename, - gchar* * name, - gchar* * ext); -#define UTIL_FILE_ATTRIBUTES "standard::*,time::*,id::file,id::filesystem,etag::value" -void plugins_load_module (GFile* file); -GType prepare_input_text_options_get_type (void) G_GNUC_CONST; -gchar* prepare_input_text (const gchar* text, - PrepareInputTextOptions options, - gint dest_length); -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); - -const gchar* PLUGINS_SHARED_LIB_EXTS[2] = {"so", "la"}; - -PluginsExtensionPoint* -plugins_extension_point_construct (GType object_type, - GType pluggable_type, - const gchar* name, - const gchar* icon_name, - gchar** core_ids, - int core_ids_length1) -{ - PluginsExtensionPoint* self = NULL; -#line 25 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 25 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self = (PluginsExtensionPoint*) g_type_create_instance (object_type); -#line 26 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_point_set_pluggable_type (self, pluggable_type); -#line 27 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_point_set_name (self, name); -#line 28 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_point_set_icon_name (self, icon_name); -#line 29 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_point_set_core_ids (self, core_ids, core_ids_length1); -#line 25 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return self; -#line 446 "Plugins.c" -} - - -PluginsExtensionPoint* -plugins_extension_point_new (GType pluggable_type, - const gchar* name, - const gchar* icon_name, - gchar** core_ids, - int core_ids_length1) -{ -#line 25 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return plugins_extension_point_construct (PLUGINS_TYPE_EXTENSION_POINT, pluggable_type, name, icon_name, core_ids, core_ids_length1); -#line 459 "Plugins.c" -} - - -GType -plugins_extension_point_get_pluggable_type (PluginsExtensionPoint* self) -{ - GType result; - GType _tmp0_; -#line 19 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_EXTENSION_POINT (self), 0UL); -#line 19 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->_pluggable_type; -#line 19 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp0_; -#line 19 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 476 "Plugins.c" -} - - -static void -plugins_extension_point_set_pluggable_type (PluginsExtensionPoint* self, - GType value) -{ -#line 19 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (PLUGINS_IS_EXTENSION_POINT (self)); -#line 19 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_pluggable_type = value; -#line 488 "Plugins.c" -} - - -const gchar* -plugins_extension_point_get_name (PluginsExtensionPoint* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_EXTENSION_POINT (self), NULL); -#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->_name; -#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 505 "Plugins.c" -} - - -static void -plugins_extension_point_set_name (PluginsExtensionPoint* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (PLUGINS_IS_EXTENSION_POINT (self)); -#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = g_strdup (value); -#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (self->priv->_name); -#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_name = _tmp0_; -#line 522 "Plugins.c" -} - - -const gchar* -plugins_extension_point_get_icon_name (PluginsExtensionPoint* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_EXTENSION_POINT (self), NULL); -#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->_icon_name; -#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp0_; -#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 539 "Plugins.c" -} - - -static void -plugins_extension_point_set_icon_name (PluginsExtensionPoint* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (PLUGINS_IS_EXTENSION_POINT (self)); -#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = g_strdup (value); -#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (self->priv->_icon_name); -#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_icon_name = _tmp0_; -#line 556 "Plugins.c" -} - - -gchar** -plugins_extension_point_get_core_ids (PluginsExtensionPoint* self, - int* result_length1) -{ - gchar** result; - gchar** _tmp0_; - gint _tmp0__length1; - gchar** _tmp1_; - gint _tmp1__length1; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_EXTENSION_POINT (self), NULL); -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->_core_ids; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0__length1 = self->priv->_core_ids_length1; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = _tmp0_; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1__length1 = _tmp0__length1; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (result_length1) { -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *result_length1 = _tmp1__length1; -#line 583 "Plugins.c" - } -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 589 "Plugins.c" -} - - -static gchar** -_vala_array_dup16 (gchar** self, - int length) -{ - gchar** result; - int i; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = g_new0 (gchar*, length + 1); -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - for (i = 0; i < length; i++) { -#line 603 "Plugins.c" - gchar* _tmp0_; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = g_strdup (self[i]); -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result[i] = _tmp0_; -#line 609 "Plugins.c" - } -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 613 "Plugins.c" -} - - -static void -plugins_extension_point_set_core_ids (PluginsExtensionPoint* self, - gchar** value, - int value_length1) -{ - gchar** _tmp0_; - gint _tmp0__length1; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (PLUGINS_IS_EXTENSION_POINT (self)); -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = (value != NULL) ? _vala_array_dup16 (value, value_length1) : ((gpointer) value); -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0__length1 = value_length1; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_core_ids = (_vala_array_free (self->priv->_core_ids, self->priv->_core_ids_length1, (GDestroyNotify) g_free), NULL); -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_core_ids = _tmp0_; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_core_ids_length1 = _tmp0__length1; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->__core_ids_size_ = self->priv->_core_ids_length1; -#line 638 "Plugins.c" -} - - -static void -plugins_value_extension_point_init (GValue* value) -{ -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 647 "Plugins.c" -} - - -static void -plugins_value_extension_point_free_value (GValue* value) -{ -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (value->data[0].v_pointer) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_point_unref (value->data[0].v_pointer); -#line 658 "Plugins.c" - } -} - - -static void -plugins_value_extension_point_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (src_value->data[0].v_pointer) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dest_value->data[0].v_pointer = plugins_extension_point_ref (src_value->data[0].v_pointer); -#line 671 "Plugins.c" - } else { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dest_value->data[0].v_pointer = NULL; -#line 675 "Plugins.c" - } -} - - -static gpointer -plugins_value_extension_point_peek_pointer (const GValue* value) -{ -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return value->data[0].v_pointer; -#line 685 "Plugins.c" -} - - -static gchar* -plugins_value_extension_point_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (collect_values[0].v_pointer) { -#line 697 "Plugins.c" - PluginsExtensionPoint * object; - object = collect_values[0].v_pointer; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (object->parent_instance.g_class == NULL) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 704 "Plugins.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 708 "Plugins.c" - } -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = plugins_extension_point_ref (object); -#line 712 "Plugins.c" - } else { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 716 "Plugins.c" - } -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return NULL; -#line 720 "Plugins.c" -} - - -static gchar* -plugins_value_extension_point_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PluginsExtensionPoint ** object_p; - object_p = collect_values[0].v_pointer; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!object_p) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 736 "Plugins.c" - } -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!value->data[0].v_pointer) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = NULL; -#line 742 "Plugins.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = value->data[0].v_pointer; -#line 746 "Plugins.c" - } else { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = plugins_extension_point_ref (value->data[0].v_pointer); -#line 750 "Plugins.c" - } -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return NULL; -#line 754 "Plugins.c" -} - - -GParamSpec* -plugins_param_spec_extension_point (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PluginsParamSpecExtensionPoint* spec; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (g_type_is_a (object_type, PLUGINS_TYPE_EXTENSION_POINT), NULL); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return G_PARAM_SPEC (spec); -#line 774 "Plugins.c" -} - - -gpointer -plugins_value_get_extension_point (const GValue* value) -{ -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_EXTENSION_POINT), NULL); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return value->data[0].v_pointer; -#line 785 "Plugins.c" -} - - -void -plugins_value_set_extension_point (GValue* value, - gpointer v_object) -{ - PluginsExtensionPoint * old; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_EXTENSION_POINT)); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - old = value->data[0].v_pointer; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (v_object) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_EXTENSION_POINT)); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = v_object; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_point_ref (value->data[0].v_pointer); -#line 808 "Plugins.c" - } else { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 812 "Plugins.c" - } -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (old) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_point_unref (old); -#line 818 "Plugins.c" - } -} - - -void -plugins_value_take_extension_point (GValue* value, - gpointer v_object) -{ - PluginsExtensionPoint * old; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_EXTENSION_POINT)); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - old = value->data[0].v_pointer; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (v_object) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_EXTENSION_POINT)); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = v_object; -#line 840 "Plugins.c" - } else { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 844 "Plugins.c" - } -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (old) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_point_unref (old); -#line 850 "Plugins.c" - } -} - - -static void -plugins_extension_point_class_init (PluginsExtensionPointClass * klass) -{ -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_point_parent_class = g_type_class_peek_parent (klass); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - ((PluginsExtensionPointClass *) klass)->finalize = plugins_extension_point_finalize; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_type_class_add_private (klass, sizeof (PluginsExtensionPointPrivate)); -#line 864 "Plugins.c" -} - - -static void -plugins_extension_point_instance_init (PluginsExtensionPoint * self) -{ -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv = PLUGINS_EXTENSION_POINT_GET_PRIVATE (self); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->ref_count = 1; -#line 875 "Plugins.c" -} - - -static void -plugins_extension_point_finalize (PluginsExtensionPoint * obj) -{ - PluginsExtensionPoint * self; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPoint); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_signal_handlers_destroy (self); -#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (self->priv->_name); -#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (self->priv->_icon_name); -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_core_ids = (_vala_array_free (self->priv->_core_ids, self->priv->_core_ids_length1, (GDestroyNotify) g_free), NULL); -#line 893 "Plugins.c" -} - - -GType -plugins_extension_point_get_type (void) -{ - static volatile gsize plugins_extension_point_type_id__volatile = 0; - if (g_once_init_enter (&plugins_extension_point_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { plugins_value_extension_point_init, plugins_value_extension_point_free_value, plugins_value_extension_point_copy_value, plugins_value_extension_point_peek_pointer, "p", plugins_value_extension_point_collect_value, "p", plugins_value_extension_point_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PluginsExtensionPointClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_extension_point_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsExtensionPoint), 0, (GInstanceInitFunc) plugins_extension_point_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType plugins_extension_point_type_id; - plugins_extension_point_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PluginsExtensionPoint", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&plugins_extension_point_type_id__volatile, plugins_extension_point_type_id); - } - return plugins_extension_point_type_id__volatile; -} - - -gpointer -plugins_extension_point_ref (gpointer instance) -{ - PluginsExtensionPoint * self; - self = instance; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_atomic_int_inc (&self->ref_count); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return instance; -#line 922 "Plugins.c" -} - - -void -plugins_extension_point_unref (gpointer instance) -{ - PluginsExtensionPoint * self; - self = instance; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - PLUGINS_EXTENSION_POINT_GET_CLASS (self)->finalize (self); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 937 "Plugins.c" - } -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 41 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return self ? g_object_ref (self) : NULL; -#line 947 "Plugins.c" -} - - -static PluginsModuleRep* -plugins_module_rep_construct (GType object_type, - GFile* file) -{ - PluginsModuleRep* self = NULL; - GFile* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - GModule* _tmp3_; -#line 40 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 40 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self = (PluginsModuleRep*) g_type_create_instance (object_type); -#line 41 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = _g_object_ref0 (file); -#line 41 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (self->file); -#line 41 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->file = _tmp0_; -#line 43 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = g_file_get_path (file); -#line 43 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = _tmp1_; -#line 43 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = g_module_open (_tmp2_, G_MODULE_BIND_LAZY); -#line 43 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_module_close0 (self->module); -#line 43 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->module = _tmp3_; -#line 43 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp2_); -#line 40 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return self; -#line 984 "Plugins.c" -} - - -static PluginsModuleRep* -plugins_module_rep_new (GFile* file) -{ -#line 40 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return plugins_module_rep_construct (PLUGINS_TYPE_MODULE_REP, file); -#line 993 "Plugins.c" -} - - -static gpointer -_plugins_module_rep_ref0 (gpointer self) -{ -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return self ? plugins_module_rep_ref (self) : NULL; -#line 1002 "Plugins.c" -} - - -PluginsModuleRep* -plugins_module_rep_open (GFile* file) -{ - PluginsModuleRep* result = NULL; - PluginsModuleRep* module_rep = NULL; - PluginsModuleRep* _tmp0_; - PluginsModuleRep* _tmp1_ = NULL; - PluginsModuleRep* _tmp2_; - GModule* _tmp3_; - PluginsModuleRep* _tmp5_; -#line 54 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 55 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_module_rep_new (file); -#line 55 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - module_rep = _tmp0_; -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = module_rep; -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = _tmp2_->module; -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp3_ != NULL) { -#line 1028 "Plugins.c" - PluginsModuleRep* _tmp4_; -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = module_rep; -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = _tmp4_; -#line 1034 "Plugins.c" - } else { -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = NULL; -#line 1038 "Plugins.c" - } -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = _plugins_module_rep_ref0 (_tmp1_); -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp5_; -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 1048 "Plugins.c" -} - - -static void -plugins_value_module_rep_init (GValue* value) -{ -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 1057 "Plugins.c" -} - - -static void -plugins_value_module_rep_free_value (GValue* value) -{ -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (value->data[0].v_pointer) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_module_rep_unref (value->data[0].v_pointer); -#line 1068 "Plugins.c" - } -} - - -static void -plugins_value_module_rep_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (src_value->data[0].v_pointer) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dest_value->data[0].v_pointer = plugins_module_rep_ref (src_value->data[0].v_pointer); -#line 1081 "Plugins.c" - } else { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dest_value->data[0].v_pointer = NULL; -#line 1085 "Plugins.c" - } -} - - -static gpointer -plugins_value_module_rep_peek_pointer (const GValue* value) -{ -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return value->data[0].v_pointer; -#line 1095 "Plugins.c" -} - - -static gchar* -plugins_value_module_rep_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (collect_values[0].v_pointer) { -#line 1107 "Plugins.c" - PluginsModuleRep * object; - object = collect_values[0].v_pointer; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (object->parent_instance.g_class == NULL) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1114 "Plugins.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1118 "Plugins.c" - } -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = plugins_module_rep_ref (object); -#line 1122 "Plugins.c" - } else { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 1126 "Plugins.c" - } -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return NULL; -#line 1130 "Plugins.c" -} - - -static gchar* -plugins_value_module_rep_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PluginsModuleRep ** object_p; - object_p = collect_values[0].v_pointer; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!object_p) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1146 "Plugins.c" - } -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!value->data[0].v_pointer) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = NULL; -#line 1152 "Plugins.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = value->data[0].v_pointer; -#line 1156 "Plugins.c" - } else { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = plugins_module_rep_ref (value->data[0].v_pointer); -#line 1160 "Plugins.c" - } -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return NULL; -#line 1164 "Plugins.c" -} - - -GParamSpec* -plugins_param_spec_module_rep (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PluginsParamSpecModuleRep* spec; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (g_type_is_a (object_type, PLUGINS_TYPE_MODULE_REP), NULL); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return G_PARAM_SPEC (spec); -#line 1184 "Plugins.c" -} - - -gpointer -plugins_value_get_module_rep (const GValue* value) -{ -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_MODULE_REP), NULL); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return value->data[0].v_pointer; -#line 1195 "Plugins.c" -} - - -void -plugins_value_set_module_rep (GValue* value, - gpointer v_object) -{ - PluginsModuleRep * old; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_MODULE_REP)); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - old = value->data[0].v_pointer; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (v_object) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_MODULE_REP)); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = v_object; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_module_rep_ref (value->data[0].v_pointer); -#line 1218 "Plugins.c" - } else { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 1222 "Plugins.c" - } -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (old) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_module_rep_unref (old); -#line 1228 "Plugins.c" - } -} - - -void -plugins_value_take_module_rep (GValue* value, - gpointer v_object) -{ - PluginsModuleRep * old; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_MODULE_REP)); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - old = value->data[0].v_pointer; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (v_object) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_MODULE_REP)); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = v_object; -#line 1250 "Plugins.c" - } else { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 1254 "Plugins.c" - } -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (old) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_module_rep_unref (old); -#line 1260 "Plugins.c" - } -} - - -static void -plugins_module_rep_class_init (PluginsModuleRepClass * klass) -{ -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_module_rep_parent_class = g_type_class_peek_parent (klass); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - ((PluginsModuleRepClass *) klass)->finalize = plugins_module_rep_finalize; -#line 1272 "Plugins.c" -} - - -static void -plugins_module_rep_instance_init (PluginsModuleRep * self) -{ -#line 36 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->spit_module = NULL; -#line 37 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->spit_interface = SPIT_UNSUPPORTED_INTERFACE; -#line 38 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->id = NULL; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->ref_count = 1; -#line 1287 "Plugins.c" -} - - -static void -plugins_module_rep_finalize (PluginsModuleRep * obj) -{ - PluginsModuleRep * self; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_MODULE_REP, PluginsModuleRep); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_signal_handlers_destroy (self); -#line 48 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (self->spit_module); -#line 48 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->spit_module = NULL; -#line 34 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (self->file); -#line 35 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_module_close0 (self->module); -#line 36 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (self->spit_module); -#line 38 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (self->id); -#line 1311 "Plugins.c" -} - - -GType -plugins_module_rep_get_type (void) -{ - static volatile gsize plugins_module_rep_type_id__volatile = 0; - if (g_once_init_enter (&plugins_module_rep_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { plugins_value_module_rep_init, plugins_value_module_rep_free_value, plugins_value_module_rep_copy_value, plugins_value_module_rep_peek_pointer, "p", plugins_value_module_rep_collect_value, "p", plugins_value_module_rep_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PluginsModuleRepClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_module_rep_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsModuleRep), 0, (GInstanceInitFunc) plugins_module_rep_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType plugins_module_rep_type_id; - plugins_module_rep_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PluginsModuleRep", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&plugins_module_rep_type_id__volatile, plugins_module_rep_type_id); - } - return plugins_module_rep_type_id__volatile; -} - - -gpointer -plugins_module_rep_ref (gpointer instance) -{ - PluginsModuleRep * self; - self = instance; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_atomic_int_inc (&self->ref_count); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return instance; -#line 1340 "Plugins.c" -} - - -void -plugins_module_rep_unref (gpointer instance) -{ - PluginsModuleRep * self; - self = instance; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - PLUGINS_MODULE_REP_GET_CLASS (self)->finalize (self); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1355 "Plugins.c" - } -} - - -PluginsPluggableRep* -plugins_pluggable_rep_construct (GType object_type, - SpitPluggable* pluggable) -{ - PluginsPluggableRep* self = NULL; - const gchar* _tmp0_; -#line 70 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (SPIT_IS_PLUGGABLE (pluggable), NULL); -#line 70 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self = (PluginsPluggableRep*) g_type_create_instance (object_type); -#line 71 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_set_pluggable (self, pluggable); -#line 72 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = spit_pluggable_get_id (pluggable); -#line 72 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_set_id (self, _tmp0_); -#line 70 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return self; -#line 1378 "Plugins.c" -} - - -PluginsPluggableRep* -plugins_pluggable_rep_new (SpitPluggable* pluggable) -{ -#line 70 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return plugins_pluggable_rep_construct (PLUGINS_TYPE_PLUGGABLE_REP, pluggable); -#line 1387 "Plugins.c" -} - - -void -plugins_pluggable_rep_activate (PluginsPluggableRep* self) -{ - SpitPluggable* _tmp0_; - FuzzyPropertyState saved_state = 0; - ConfigFacade* _tmp1_; - ConfigFacade* _tmp2_; - const gchar* _tmp3_; - FuzzyPropertyState _tmp4_; - gboolean _tmp5_ = FALSE; - gboolean _tmp6_ = FALSE; - gboolean _tmp7_; - SpitPluggable* _tmp12_; - gboolean _tmp13_; -#line 75 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (PLUGINS_IS_PLUGGABLE_REP (self)); -#line 78 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->_pluggable; -#line 78 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_set_is_core (self, plugins_is_core_pluggable (_tmp0_)); -#line 80 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = config_facade_get_instance (); -#line 80 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = _tmp1_; -#line 80 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = self->priv->_id; -#line 80 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = configuration_facade_is_plugin_enabled (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp3_); -#line 80 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_tmp2_); -#line 80 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - saved_state = _tmp4_; -#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = self->priv->_is_core; -#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp7_) { -#line 1427 "Plugins.c" - FuzzyPropertyState _tmp8_; -#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = saved_state; -#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = _tmp8_ != FUZZY_PROPERTY_STATE_DISABLED; -#line 1433 "Plugins.c" - } else { -#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = FALSE; -#line 1437 "Plugins.c" - } -#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp6_) { -#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = TRUE; -#line 1443 "Plugins.c" - } else { - gboolean _tmp9_ = FALSE; - gboolean _tmp10_; -#line 82 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = self->priv->_is_core; -#line 82 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!_tmp10_) { -#line 1451 "Plugins.c" - FuzzyPropertyState _tmp11_; -#line 82 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp11_ = saved_state; -#line 82 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = _tmp11_ == FUZZY_PROPERTY_STATE_ENABLED; -#line 1457 "Plugins.c" - } else { -#line 82 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = FALSE; -#line 1461 "Plugins.c" - } -#line 82 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = _tmp9_; -#line 1465 "Plugins.c" - } -#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->enabled = _tmp5_; -#line 85 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = self->priv->_pluggable; -#line 85 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13_ = self->priv->enabled; -#line 85 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_pluggable_activation (_tmp12_, _tmp13_); -#line 87 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_set_activated (self, TRUE); -#line 1477 "Plugins.c" -} - - -gboolean -plugins_pluggable_rep_is_enabled (PluginsPluggableRep* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 90 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_PLUGGABLE_REP (self), FALSE); -#line 91 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->enabled; -#line 91 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp0_; -#line 91 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 1494 "Plugins.c" -} - - -gboolean -plugins_pluggable_rep_set_enabled (PluginsPluggableRep* self, - gboolean enabled) -{ - gboolean result = FALSE; - gboolean _tmp0_; - ConfigFacade* _tmp1_; - ConfigFacade* _tmp2_; - const gchar* _tmp3_; - SpitPluggable* _tmp4_; -#line 95 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_PLUGGABLE_REP (self), FALSE); -#line 96 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->enabled; -#line 96 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (enabled == _tmp0_) { -#line 97 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = FALSE; -#line 97 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 1518 "Plugins.c" - } -#line 99 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->enabled = enabled; -#line 100 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = config_facade_get_instance (); -#line 100 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = _tmp1_; -#line 100 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = self->priv->_id; -#line 100 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - configuration_facade_set_plugin_enabled (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp3_, enabled); -#line 100 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_tmp2_); -#line 101 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = self->priv->_pluggable; -#line 101 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_pluggable_activation (_tmp4_, enabled); -#line 103 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = TRUE; -#line 103 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 1540 "Plugins.c" -} - - -SpitPluggable* -plugins_pluggable_rep_get_pluggable (PluginsPluggableRep* self) -{ - SpitPluggable* result; - SpitPluggable* _tmp0_; -#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_PLUGGABLE_REP (self), NULL); -#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->_pluggable; -#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp0_; -#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 1557 "Plugins.c" -} - - -static void -plugins_pluggable_rep_set_pluggable (PluginsPluggableRep* self, - SpitPluggable* value) -{ - SpitPluggable* _tmp0_; -#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (PLUGINS_IS_PLUGGABLE_REP (self)); -#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = _g_object_ref0 (value); -#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (self->priv->_pluggable); -#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_pluggable = _tmp0_; -#line 1574 "Plugins.c" -} - - -const gchar* -plugins_pluggable_rep_get_id (PluginsPluggableRep* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_PLUGGABLE_REP (self), NULL); -#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->_id; -#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp0_; -#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 1591 "Plugins.c" -} - - -static void -plugins_pluggable_rep_set_id (PluginsPluggableRep* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (PLUGINS_IS_PLUGGABLE_REP (self)); -#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = g_strdup (value); -#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (self->priv->_id); -#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_id = _tmp0_; -#line 1608 "Plugins.c" -} - - -gboolean -plugins_pluggable_rep_get_is_core (PluginsPluggableRep* self) -{ - gboolean result; - gboolean _tmp0_; -#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_PLUGGABLE_REP (self), FALSE); -#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->_is_core; -#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp0_; -#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 1625 "Plugins.c" -} - - -static void -plugins_pluggable_rep_set_is_core (PluginsPluggableRep* self, - gboolean value) -{ -#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (PLUGINS_IS_PLUGGABLE_REP (self)); -#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_is_core = value; -#line 1637 "Plugins.c" -} - - -gboolean -plugins_pluggable_rep_get_activated (PluginsPluggableRep* self) -{ - gboolean result; - gboolean _tmp0_; -#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_PLUGGABLE_REP (self), FALSE); -#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->_activated; -#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp0_; -#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 1654 "Plugins.c" -} - - -static void -plugins_pluggable_rep_set_activated (PluginsPluggableRep* self, - gboolean value) -{ -#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (PLUGINS_IS_PLUGGABLE_REP (self)); -#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_activated = value; -#line 1666 "Plugins.c" -} - - -static void -plugins_value_pluggable_rep_init (GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 1675 "Plugins.c" -} - - -static void -plugins_value_pluggable_rep_free_value (GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (value->data[0].v_pointer) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_unref (value->data[0].v_pointer); -#line 1686 "Plugins.c" - } -} - - -static void -plugins_value_pluggable_rep_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (src_value->data[0].v_pointer) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dest_value->data[0].v_pointer = plugins_pluggable_rep_ref (src_value->data[0].v_pointer); -#line 1699 "Plugins.c" - } else { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dest_value->data[0].v_pointer = NULL; -#line 1703 "Plugins.c" - } -} - - -static gpointer -plugins_value_pluggable_rep_peek_pointer (const GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return value->data[0].v_pointer; -#line 1713 "Plugins.c" -} - - -static gchar* -plugins_value_pluggable_rep_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (collect_values[0].v_pointer) { -#line 1725 "Plugins.c" - PluginsPluggableRep * object; - object = collect_values[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (object->parent_instance.g_class == NULL) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1732 "Plugins.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1736 "Plugins.c" - } -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = plugins_pluggable_rep_ref (object); -#line 1740 "Plugins.c" - } else { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 1744 "Plugins.c" - } -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return NULL; -#line 1748 "Plugins.c" -} - - -static gchar* -plugins_value_pluggable_rep_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PluginsPluggableRep ** object_p; - object_p = collect_values[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!object_p) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1764 "Plugins.c" - } -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!value->data[0].v_pointer) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = NULL; -#line 1770 "Plugins.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = value->data[0].v_pointer; -#line 1774 "Plugins.c" - } else { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = plugins_pluggable_rep_ref (value->data[0].v_pointer); -#line 1778 "Plugins.c" - } -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return NULL; -#line 1782 "Plugins.c" -} - - -GParamSpec* -plugins_param_spec_pluggable_rep (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PluginsParamSpecPluggableRep* spec; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (g_type_is_a (object_type, PLUGINS_TYPE_PLUGGABLE_REP), NULL); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return G_PARAM_SPEC (spec); -#line 1802 "Plugins.c" -} - - -gpointer -plugins_value_get_pluggable_rep (const GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_PLUGGABLE_REP), NULL); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return value->data[0].v_pointer; -#line 1813 "Plugins.c" -} - - -void -plugins_value_set_pluggable_rep (GValue* value, - gpointer v_object) -{ - PluginsPluggableRep * old; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_PLUGGABLE_REP)); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - old = value->data[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (v_object) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_PLUGGABLE_REP)); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = v_object; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_ref (value->data[0].v_pointer); -#line 1836 "Plugins.c" - } else { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 1840 "Plugins.c" - } -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (old) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_unref (old); -#line 1846 "Plugins.c" - } -} - - -void -plugins_value_take_pluggable_rep (GValue* value, - gpointer v_object) -{ - PluginsPluggableRep * old; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_PLUGGABLE_REP)); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - old = value->data[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (v_object) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_PLUGGABLE_REP)); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = v_object; -#line 1868 "Plugins.c" - } else { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 1872 "Plugins.c" - } -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (old) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_unref (old); -#line 1878 "Plugins.c" - } -} - - -static void -plugins_pluggable_rep_class_init (PluginsPluggableRepClass * klass) -{ -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_parent_class = g_type_class_peek_parent (klass); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - ((PluginsPluggableRepClass *) klass)->finalize = plugins_pluggable_rep_finalize; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_type_class_add_private (klass, sizeof (PluginsPluggableRepPrivate)); -#line 1892 "Plugins.c" -} - - -static void -plugins_pluggable_rep_instance_init (PluginsPluggableRep * self) -{ -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv = PLUGINS_PLUGGABLE_REP_GET_PRIVATE (self); -#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_is_core = FALSE; -#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_activated = FALSE; -#line 67 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->enabled = FALSE; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->ref_count = 1; -#line 1909 "Plugins.c" -} - - -static void -plugins_pluggable_rep_finalize (PluginsPluggableRep * obj) -{ - PluginsPluggableRep * self; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_PLUGGABLE_REP, PluginsPluggableRep); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_signal_handlers_destroy (self); -#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (self->priv->_pluggable); -#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (self->priv->_id); -#line 1925 "Plugins.c" -} - - -GType -plugins_pluggable_rep_get_type (void) -{ - static volatile gsize plugins_pluggable_rep_type_id__volatile = 0; - if (g_once_init_enter (&plugins_pluggable_rep_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { plugins_value_pluggable_rep_init, plugins_value_pluggable_rep_free_value, plugins_value_pluggable_rep_copy_value, plugins_value_pluggable_rep_peek_pointer, "p", plugins_value_pluggable_rep_collect_value, "p", plugins_value_pluggable_rep_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PluginsPluggableRepClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_pluggable_rep_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsPluggableRep), 0, (GInstanceInitFunc) plugins_pluggable_rep_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType plugins_pluggable_rep_type_id; - plugins_pluggable_rep_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PluginsPluggableRep", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&plugins_pluggable_rep_type_id__volatile, plugins_pluggable_rep_type_id); - } - return plugins_pluggable_rep_type_id__volatile; -} - - -gpointer -plugins_pluggable_rep_ref (gpointer instance) -{ - PluginsPluggableRep * self; - self = instance; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_atomic_int_inc (&self->ref_count); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return instance; -#line 1954 "Plugins.c" -} - - -void -plugins_pluggable_rep_unref (gpointer instance) -{ - PluginsPluggableRep * self; - self = instance; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - PLUGINS_PLUGGABLE_REP_GET_CLASS (self)->finalize (self); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1969 "Plugins.c" - } -} - - -static void -_vala_array_add50 (GFile** * array, - int* length, - int* size, - GFile* value) -{ -#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if ((*length) == (*size)) { -#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *array = g_renew (GFile*, *array, (*size) + 1); -#line 1986 "Plugins.c" - } -#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - (*array)[(*length)++] = value; -#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - (*array)[*length] = NULL; -#line 1992 "Plugins.c" -} - - -static void -_vala_array_add51 (GFile** * array, - int* length, - int* size, - GFile* value) -{ -#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if ((*length) == (*size)) { -#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *array = g_renew (GFile*, *array, (*size) + 1); -#line 2008 "Plugins.c" - } -#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - (*array)[(*length)++] = value; -#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - (*array)[*length] = NULL; -#line 2014 "Plugins.c" -} - - -void -plugins_init (GError** error) -{ - GFile** _tmp0_; - GFile** _tmp1_; - gint _tmp1__length1; - GFile* _tmp2_; - GFile** _tmp3_; - gint _tmp3__length1; - GFile* _tmp4_; - GeeHashMap* _tmp5_; - GeeHashMap* _tmp6_; - GeeHashMap* _tmp7_; - GeeHashSet* _tmp8_; - GFile** _tmp9_; - gint _tmp9__length1; - GError * _inner_error_ = NULL; -#line 114 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = g_new0 (GFile*, 0 + 1); -#line 114 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_search_dirs = (_vala_array_free (plugins_search_dirs, plugins_search_dirs_length1, (GDestroyNotify) g_object_unref), NULL); -#line 114 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_search_dirs = _tmp0_; -#line 114 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_search_dirs_length1 = 0; -#line 114 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_search_dirs_size_ = plugins_search_dirs_length1; -#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = plugins_search_dirs; -#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1__length1 = plugins_search_dirs_length1; -#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = app_dirs_get_user_plugins_dir (); -#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _vala_array_add50 (&plugins_search_dirs, &plugins_search_dirs_length1, &_plugins_search_dirs_size_, _tmp2_); -#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = plugins_search_dirs; -#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3__length1 = plugins_search_dirs_length1; -#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = app_dirs_get_system_plugins_dir (); -#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _vala_array_add51 (&plugins_search_dirs, &plugins_search_dirs_length1, &_plugins_search_dirs_size_, _tmp4_); -#line 118 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, PLUGINS_TYPE_MODULE_REP, (GBoxedCopyFunc) plugins_module_rep_ref, (GDestroyNotify) plugins_module_rep_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 118 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (plugins_module_table); -#line 118 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_module_table = _tmp5_; -#line 119 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, PLUGINS_TYPE_PLUGGABLE_REP, (GBoxedCopyFunc) plugins_pluggable_rep_ref, (GDestroyNotify) plugins_pluggable_rep_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 119 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (plugins_pluggable_table); -#line 119 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_table = _tmp6_; -#line 120 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = gee_hash_map_new (G_TYPE_GTYPE, NULL, NULL, PLUGINS_TYPE_EXTENSION_POINT, (GBoxedCopyFunc) plugins_extension_point_ref, (GDestroyNotify) plugins_extension_point_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 120 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (plugins_extension_points); -#line 120 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_points = _tmp7_; -#line 121 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 121 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (plugins_core_ids); -#line 121 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_core_ids = _tmp8_; -#line 125 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!g_module_supported ()) { -#line 126 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_warning ("Plugins.vala:126: Plugins not support: GModule not supported on this p" \ -"latform."); -#line 128 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 2091 "Plugins.c" - } -#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = plugins_search_dirs; -#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9__length1 = plugins_search_dirs_length1; -#line 2097 "Plugins.c" - { - GFile** dir_collection = NULL; - gint dir_collection_length1 = 0; - gint _dir_collection_size_ = 0; - gint dir_it = 0; -#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dir_collection = _tmp9_; -#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dir_collection_length1 = _tmp9__length1; -#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - for (dir_it = 0; dir_it < _tmp9__length1; dir_it = dir_it + 1) { -#line 2109 "Plugins.c" - GFile* _tmp10_; - GFile* dir = NULL; -#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = _g_object_ref0 (dir_collection[dir_it]); -#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dir = _tmp10_; -#line 2116 "Plugins.c" - { - { - GFile* _tmp11_; -#line 133 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp11_ = dir; -#line 133 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_search_for_plugins (_tmp11_, &_inner_error_); -#line 133 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2126 "Plugins.c" - goto __catch39_g_error; - } - } - goto __finally39; - __catch39_g_error: - { - GError* err = NULL; - GFile* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - GError* _tmp15_; - const gchar* _tmp16_; -#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - err = _inner_error_; -#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _inner_error_ = NULL; -#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = dir; -#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13_ = g_file_get_path (_tmp12_); -#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14_ = _tmp13_; -#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp15_ = err; -#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp16_ = _tmp15_->message; -#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_debug ("Plugins.vala:135: Unable to search directory %s for plugins: %s", _tmp14_, _tmp16_); -#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp14_); -#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_error_free0 (err); -#line 2159 "Plugins.c" - } - __finally39: -#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_propagate_error (error, _inner_error_); -#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (dir); -#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 2170 "Plugins.c" - } -#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (dir); -#line 2174 "Plugins.c" - } - } - } -} - - -void -plugins_terminate (void) -{ -#line 141 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_search_dirs = (_vala_array_free (plugins_search_dirs, plugins_search_dirs_length1, (GDestroyNotify) g_object_unref), NULL); -#line 141 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_search_dirs = NULL; -#line 141 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_search_dirs_length1 = 0; -#line 141 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_search_dirs_size_ = plugins_search_dirs_length1; -#line 142 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (plugins_pluggable_table); -#line 142 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_table = NULL; -#line 143 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (plugins_module_table); -#line 143 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_module_table = NULL; -#line 144 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (plugins_extension_points); -#line 144 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_points = NULL; -#line 145 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (plugins_core_ids); -#line 145 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_core_ids = NULL; -#line 2208 "Plugins.c" -} - - -static PluginsNotifier* -plugins_notifier_construct (GType object_type) -{ - PluginsNotifier* self = NULL; -#line 153 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self = (PluginsNotifier*) g_type_create_instance (object_type); -#line 153 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return self; -#line 2220 "Plugins.c" -} - - -static PluginsNotifier* -plugins_notifier_new (void) -{ -#line 153 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return plugins_notifier_construct (PLUGINS_TYPE_NOTIFIER); -#line 2229 "Plugins.c" -} - - -static gpointer -_plugins_notifier_ref0 (gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return self ? plugins_notifier_ref (self) : NULL; -#line 2238 "Plugins.c" -} - - -PluginsNotifier* -plugins_notifier_get_instance (void) -{ - PluginsNotifier* result = NULL; - PluginsNotifier* _tmp0_; - PluginsNotifier* _tmp2_; - PluginsNotifier* _tmp3_; -#line 157 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_notifier_instance; -#line 157 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp0_ == NULL) { -#line 2253 "Plugins.c" - PluginsNotifier* _tmp1_; -#line 158 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = plugins_notifier_new (); -#line 158 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_notifier_unref0 (plugins_notifier_instance); -#line 158 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_notifier_instance = _tmp1_; -#line 2261 "Plugins.c" - } -#line 160 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = plugins_notifier_instance; -#line 160 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = _plugins_notifier_ref0 (_tmp2_); -#line 160 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp3_; -#line 160 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 2271 "Plugins.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_BOOLEAN) (gpointer data1, gpointer arg_1, gboolean arg_2, gpointer data2); - register GMarshalFunc_VOID__OBJECT_BOOLEAN callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (n_param_values == 3); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - data1 = closure->data; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - data2 = param_values->data[0].v_pointer; -#line 2297 "Plugins.c" - } else { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - data1 = param_values->data[0].v_pointer; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - data2 = closure->data; -#line 2303 "Plugins.c" - } -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - callback = (GMarshalFunc_VOID__OBJECT_BOOLEAN) (marshal_data ? marshal_data : cc->callback); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - callback (data1, g_value_get_object (param_values + 1), g_value_get_boolean (param_values + 2), data2); -#line 2309 "Plugins.c" -} - - -static void -plugins_value_notifier_init (GValue* value) -{ -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 2318 "Plugins.c" -} - - -static void -plugins_value_notifier_free_value (GValue* value) -{ -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (value->data[0].v_pointer) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_notifier_unref (value->data[0].v_pointer); -#line 2329 "Plugins.c" - } -} - - -static void -plugins_value_notifier_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (src_value->data[0].v_pointer) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dest_value->data[0].v_pointer = plugins_notifier_ref (src_value->data[0].v_pointer); -#line 2342 "Plugins.c" - } else { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dest_value->data[0].v_pointer = NULL; -#line 2346 "Plugins.c" - } -} - - -static gpointer -plugins_value_notifier_peek_pointer (const GValue* value) -{ -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return value->data[0].v_pointer; -#line 2356 "Plugins.c" -} - - -static gchar* -plugins_value_notifier_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (collect_values[0].v_pointer) { -#line 2368 "Plugins.c" - PluginsNotifier * object; - object = collect_values[0].v_pointer; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (object->parent_instance.g_class == NULL) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2375 "Plugins.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2379 "Plugins.c" - } -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = plugins_notifier_ref (object); -#line 2383 "Plugins.c" - } else { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 2387 "Plugins.c" - } -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return NULL; -#line 2391 "Plugins.c" -} - - -static gchar* -plugins_value_notifier_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PluginsNotifier ** object_p; - object_p = collect_values[0].v_pointer; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!object_p) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2407 "Plugins.c" - } -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!value->data[0].v_pointer) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = NULL; -#line 2413 "Plugins.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = value->data[0].v_pointer; -#line 2417 "Plugins.c" - } else { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = plugins_notifier_ref (value->data[0].v_pointer); -#line 2421 "Plugins.c" - } -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return NULL; -#line 2425 "Plugins.c" -} - - -GParamSpec* -plugins_param_spec_notifier (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PluginsParamSpecNotifier* spec; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (g_type_is_a (object_type, PLUGINS_TYPE_NOTIFIER), NULL); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return G_PARAM_SPEC (spec); -#line 2445 "Plugins.c" -} - - -gpointer -plugins_value_get_notifier (const GValue* value) -{ -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_NOTIFIER), NULL); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return value->data[0].v_pointer; -#line 2456 "Plugins.c" -} - - -void -plugins_value_set_notifier (GValue* value, - gpointer v_object) -{ - PluginsNotifier * old; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_NOTIFIER)); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - old = value->data[0].v_pointer; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (v_object) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_NOTIFIER)); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = v_object; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_notifier_ref (value->data[0].v_pointer); -#line 2479 "Plugins.c" - } else { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 2483 "Plugins.c" - } -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (old) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_notifier_unref (old); -#line 2489 "Plugins.c" - } -} - - -void -plugins_value_take_notifier (GValue* value, - gpointer v_object) -{ - PluginsNotifier * old; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_NOTIFIER)); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - old = value->data[0].v_pointer; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (v_object) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_NOTIFIER)); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = v_object; -#line 2511 "Plugins.c" - } else { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 2515 "Plugins.c" - } -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (old) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_notifier_unref (old); -#line 2521 "Plugins.c" - } -} - - -static void -plugins_notifier_class_init (PluginsNotifierClass * klass) -{ -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_notifier_parent_class = g_type_class_peek_parent (klass); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - ((PluginsNotifierClass *) klass)->finalize = plugins_notifier_finalize; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_notifier_signals[PLUGINS_NOTIFIER_PLUGGABLE_ACTIVATION_SIGNAL] = g_signal_new ("pluggable-activation", PLUGINS_TYPE_NOTIFIER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_BOOLEAN, G_TYPE_NONE, 2, SPIT_TYPE_PLUGGABLE, G_TYPE_BOOLEAN); -#line 2535 "Plugins.c" -} - - -static void -plugins_notifier_instance_init (PluginsNotifier * self) -{ -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->ref_count = 1; -#line 2544 "Plugins.c" -} - - -static void -plugins_notifier_finalize (PluginsNotifier * obj) -{ - PluginsNotifier * self; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_NOTIFIER, PluginsNotifier); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_signal_handlers_destroy (self); -#line 2556 "Plugins.c" -} - - -GType -plugins_notifier_get_type (void) -{ - static volatile gsize plugins_notifier_type_id__volatile = 0; - if (g_once_init_enter (&plugins_notifier_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { plugins_value_notifier_init, plugins_value_notifier_free_value, plugins_value_notifier_copy_value, plugins_value_notifier_peek_pointer, "p", plugins_value_notifier_collect_value, "p", plugins_value_notifier_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PluginsNotifierClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_notifier_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsNotifier), 0, (GInstanceInitFunc) plugins_notifier_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType plugins_notifier_type_id; - plugins_notifier_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PluginsNotifier", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&plugins_notifier_type_id__volatile, plugins_notifier_type_id); - } - return plugins_notifier_type_id__volatile; -} - - -gpointer -plugins_notifier_ref (gpointer instance) -{ - PluginsNotifier * self; - self = instance; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_atomic_int_inc (&self->ref_count); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return instance; -#line 2585 "Plugins.c" -} - - -void -plugins_notifier_unref (gpointer instance) -{ - PluginsNotifier * self; - self = instance; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - PLUGINS_NOTIFIER_GET_CLASS (self)->finalize (self); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2600 "Plugins.c" - } -} - - -void -plugins_register_extension_point (GType type, - const gchar* name, - const gchar* icon_name, - gchar** core_ids, - int core_ids_length1) -{ - GeeHashMap* _tmp0_; - GeeHashMap* _tmp1_; - PluginsExtensionPoint* _tmp2_; - PluginsExtensionPoint* _tmp3_; -#line 164 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (name != NULL); -#line 166 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_extension_points; -#line 166 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) type)), "!extension_points.has_key(type)"); -#line 168 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = plugins_extension_points; -#line 168 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = plugins_extension_point_new (type, name, icon_name, core_ids, core_ids_length1); -#line 168 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = _tmp2_; -#line 168 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) type), _tmp3_); -#line 168 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_extension_point_unref0 (_tmp3_); -#line 171 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (core_ids != NULL) { -#line 2634 "Plugins.c" - { - gchar** core_id_collection = NULL; - gint core_id_collection_length1 = 0; - gint _core_id_collection_size_ = 0; - gint core_id_it = 0; -#line 172 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - core_id_collection = core_ids; -#line 172 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - core_id_collection_length1 = core_ids_length1; -#line 172 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - for (core_id_it = 0; core_id_it < core_ids_length1; core_id_it = core_id_it + 1) { -#line 2646 "Plugins.c" - gchar* _tmp4_; - gchar* core_id = NULL; -#line 172 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = g_strdup (core_id_collection[core_id_it]); -#line 172 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - core_id = _tmp4_; -#line 2653 "Plugins.c" - { - GeeHashSet* _tmp5_; - const gchar* _tmp6_; -#line 173 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = plugins_core_ids; -#line 173 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = core_id; -#line 173 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp6_); -#line 172 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (core_id); -#line 2665 "Plugins.c" - } - } - } - } - { - GeeIterator* _pluggable_rep_it = NULL; - GeeHashMap* _tmp7_; - GeeCollection* _tmp8_; - GeeCollection* _tmp9_; - GeeCollection* _tmp10_; - GeeIterator* _tmp11_; - GeeIterator* _tmp12_; -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = plugins_pluggable_table; -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = _tmp8_; -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = _tmp9_; -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = _tmp11_; -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_tmp10_); -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _pluggable_rep_it = _tmp12_; -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - while (TRUE) { -#line 2696 "Plugins.c" - GeeIterator* _tmp13_; - PluginsPluggableRep* pluggable_rep = NULL; - GeeIterator* _tmp14_; - gpointer _tmp15_; - PluginsPluggableRep* _tmp16_; - SpitPluggable* _tmp17_; - SpitPluggable* _tmp18_; - PluginsPluggableRep* _tmp19_; - PluginsNotifier* _tmp20_; - PluginsNotifier* _tmp21_; - PluginsPluggableRep* _tmp22_; - SpitPluggable* _tmp23_; - SpitPluggable* _tmp24_; - PluginsPluggableRep* _tmp25_; -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13_ = _pluggable_rep_it; -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!gee_iterator_next (_tmp13_)) { -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - break; -#line 2717 "Plugins.c" - } -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14_ = _pluggable_rep_it; -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp15_ = gee_iterator_get (_tmp14_); -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_rep = (PluginsPluggableRep*) _tmp15_; -#line 178 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp16_ = pluggable_rep; -#line 178 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp17_ = plugins_pluggable_rep_get_pluggable (_tmp16_); -#line 178 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp18_ = _tmp17_; -#line 178 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!g_type_is_a (G_TYPE_FROM_INSTANCE (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, G_TYPE_OBJECT, GObject)), type)) { -#line 179 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 179 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - continue; -#line 2737 "Plugins.c" - } -#line 181 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp19_ = pluggable_rep; -#line 181 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_activate (_tmp19_); -#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp20_ = plugins_notifier_get_instance (); -#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp21_ = _tmp20_; -#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp22_ = pluggable_rep; -#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp23_ = plugins_pluggable_rep_get_pluggable (_tmp22_); -#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp24_ = _tmp23_; -#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp25_ = pluggable_rep; -#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_signal_emit (_tmp21_, plugins_notifier_signals[PLUGINS_NOTIFIER_PLUGGABLE_ACTIVATION_SIGNAL], 0, _tmp24_, plugins_pluggable_rep_is_enabled (_tmp25_)); -#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_notifier_unref0 (_tmp21_); -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 2761 "Plugins.c" - } -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_pluggable_rep_it); -#line 2765 "Plugins.c" - } -} - - -GeeCollection* -plugins_get_pluggables (gboolean include_disabled) -{ - GeeCollection* result = NULL; - GeeCollection* all = NULL; - GeeHashSet* _tmp0_; -#line 187 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = gee_hash_set_new (SPIT_TYPE_PLUGGABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 187 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - all = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); -#line 2780 "Plugins.c" - { - GeeIterator* _pluggable_rep_it = NULL; - GeeHashMap* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeCollection* _tmp4_; - GeeIterator* _tmp5_; - GeeIterator* _tmp6_; -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = plugins_pluggable_table; -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = _tmp2_; -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = _tmp3_; -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = _tmp5_; -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_tmp4_); -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _pluggable_rep_it = _tmp6_; -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - while (TRUE) { -#line 2807 "Plugins.c" - GeeIterator* _tmp7_; - PluginsPluggableRep* pluggable_rep = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; - gboolean _tmp10_ = FALSE; - PluginsPluggableRep* _tmp11_; - gboolean _tmp12_; - gboolean _tmp13_; -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = _pluggable_rep_it; -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!gee_iterator_next (_tmp7_)) { -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - break; -#line 2822 "Plugins.c" - } -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = _pluggable_rep_it; -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = gee_iterator_get (_tmp8_); -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_rep = (PluginsPluggableRep*) _tmp9_; -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp11_ = pluggable_rep; -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = plugins_pluggable_rep_get_activated (_tmp11_); -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13_ = _tmp12_; -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp13_) { -#line 2838 "Plugins.c" - gboolean _tmp14_ = FALSE; -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (include_disabled) { -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14_ = TRUE; -#line 2844 "Plugins.c" - } else { - PluginsPluggableRep* _tmp15_; -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp15_ = pluggable_rep; -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14_ = plugins_pluggable_rep_is_enabled (_tmp15_); -#line 2851 "Plugins.c" - } -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = _tmp14_; -#line 2855 "Plugins.c" - } else { -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = FALSE; -#line 2859 "Plugins.c" - } -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp10_) { -#line 2863 "Plugins.c" - GeeCollection* _tmp16_; - PluginsPluggableRep* _tmp17_; - SpitPluggable* _tmp18_; - SpitPluggable* _tmp19_; -#line 190 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp16_ = all; -#line 190 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp17_ = pluggable_rep; -#line 190 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp18_ = plugins_pluggable_rep_get_pluggable (_tmp17_); -#line 190 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp19_ = _tmp18_; -#line 190 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - gee_collection_add (_tmp16_, _tmp19_); -#line 2878 "Plugins.c" - } -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 2882 "Plugins.c" - } -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_pluggable_rep_it); -#line 2886 "Plugins.c" - } -#line 193 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = all; -#line 193 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 2892 "Plugins.c" -} - - -gboolean -plugins_is_core_pluggable (SpitPluggable* pluggable) -{ - gboolean result = FALSE; - GeeHashSet* _tmp0_; - const gchar* _tmp1_; -#line 196 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (SPIT_IS_PLUGGABLE (pluggable), FALSE); -#line 197 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_core_ids; -#line 197 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = spit_pluggable_get_id (pluggable); -#line 197 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp1_); -#line 197 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 2912 "Plugins.c" -} - - -static SpitPluggable** -_vala_array_dup17 (SpitPluggable** self, - int length) -{ - SpitPluggable** result; - int i; -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = g_new0 (SpitPluggable*, length + 1); -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - for (i = 0; i < length; i++) { -#line 2926 "Plugins.c" - SpitPluggable* _tmp0_; -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result[i] = _tmp0_; -#line 2932 "Plugins.c" - } -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 2936 "Plugins.c" -} - - -PluginsModuleRep* -plugins_get_module_for_pluggable (SpitPluggable* needle) -{ - PluginsModuleRep* result = NULL; -#line 200 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (SPIT_IS_PLUGGABLE (needle), NULL); -#line 2946 "Plugins.c" - { - GeeIterator* _module_rep_it = NULL; - GeeHashMap* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_module_table; -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = _tmp1_; -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = _tmp2_; -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = _tmp4_; -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_tmp3_); -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _module_rep_it = _tmp5_; -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - while (TRUE) { -#line 2973 "Plugins.c" - GeeIterator* _tmp6_; - PluginsModuleRep* module_rep = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - SpitPluggable** pluggables = NULL; - PluginsModuleRep* _tmp9_; - SpitModule* _tmp10_; - gint _tmp11_; - SpitPluggable** _tmp12_; - SpitPluggable** _tmp13_; - gint _tmp13__length1; - gint pluggables_length1; - gint _pluggables_size_; - SpitPluggable** _tmp14_; - gint _tmp14__length1; -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = _module_rep_it; -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - break; -#line 2995 "Plugins.c" - } -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = _module_rep_it; -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - module_rep = (PluginsModuleRep*) _tmp8_; -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = module_rep; -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = _tmp9_->spit_module; -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = spit_module_get_pluggables (_tmp10_, &_tmp11_); -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13_ = (_tmp12_ != NULL) ? _vala_array_dup17 (_tmp12_, _tmp11_) : ((gpointer) _tmp12_); -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13__length1 = _tmp11_; -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggables = _tmp13_; -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggables_length1 = _tmp13__length1; -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _pluggables_size_ = pluggables_length1; -#line 203 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14_ = pluggables; -#line 203 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14__length1 = pluggables_length1; -#line 203 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp14_ != NULL) { -#line 3025 "Plugins.c" - SpitPluggable** _tmp15_; - gint _tmp15__length1; -#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp15_ = pluggables; -#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp15__length1 = pluggables_length1; -#line 3032 "Plugins.c" - { - SpitPluggable** pluggable_collection = NULL; - gint pluggable_collection_length1 = 0; - gint _pluggable_collection_size_ = 0; - gint pluggable_it = 0; -#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_collection = _tmp15_; -#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_collection_length1 = _tmp15__length1; -#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - for (pluggable_it = 0; pluggable_it < _tmp15__length1; pluggable_it = pluggable_it + 1) { -#line 3044 "Plugins.c" - SpitPluggable* _tmp16_; - SpitPluggable* pluggable = NULL; -#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp16_ = _g_object_ref0 (pluggable_collection[pluggable_it]); -#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable = _tmp16_; -#line 3051 "Plugins.c" - { - SpitPluggable* _tmp17_; -#line 205 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp17_ = pluggable; -#line 205 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp17_ == needle) { -#line 206 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = module_rep; -#line 206 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (pluggable); -#line 206 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggables = (_vala_array_free (pluggables, pluggables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 206 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_module_rep_it); -#line 206 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3068 "Plugins.c" - } -#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (pluggable); -#line 3072 "Plugins.c" - } - } - } - } -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggables = (_vala_array_free (pluggables, pluggables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 3081 "Plugins.c" - } -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_module_rep_it); -#line 3085 "Plugins.c" - } -#line 211 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = NULL; -#line 211 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3091 "Plugins.c" -} - - -gchar* -plugins_get_pluggable_module_id (SpitPluggable* needle) -{ - gchar* result = NULL; - PluginsModuleRep* module_rep = NULL; - PluginsModuleRep* _tmp0_; - const gchar* _tmp1_ = NULL; - PluginsModuleRep* _tmp2_; - gchar* _tmp6_; -#line 214 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (SPIT_IS_PLUGGABLE (needle), NULL); -#line 215 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_get_module_for_pluggable (needle); -#line 215 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - module_rep = _tmp0_; -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = module_rep; -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp2_ != NULL) { -#line 3114 "Plugins.c" - PluginsModuleRep* _tmp3_; - SpitModule* _tmp4_; - const gchar* _tmp5_; -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = module_rep; -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = _tmp3_->spit_module; -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = spit_module_get_id (_tmp4_); -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = _tmp5_; -#line 3126 "Plugins.c" - } else { -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = NULL; -#line 3130 "Plugins.c" - } -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = g_strdup (_tmp1_); -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp6_; -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3140 "Plugins.c" -} - - -GeeCollection* -plugins_get_extension_points (GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify) -{ - GeeCollection* result = NULL; - GeeCollection* sorted = NULL; - GCompareDataFunc _tmp0_; - void* _tmp0__target; - GDestroyNotify _tmp0__target_destroy_notify; - GeeTreeSet* _tmp1_; - GeeHashMap* _tmp2_; - GeeCollection* _tmp3_; - GeeCollection* _tmp4_; - GeeCollection* _tmp5_; -#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = compare_func; -#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0__target = compare_func_target; -#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0__target_destroy_notify = compare_func_target_destroy_notify; -#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func = NULL; -#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func_target = NULL; -#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func_target_destroy_notify = NULL; -#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = gee_tree_set_new (PLUGINS_TYPE_EXTENSION_POINT, (GBoxedCopyFunc) plugins_extension_point_ref, (GDestroyNotify) plugins_extension_point_unref, _tmp0_, _tmp0__target, _tmp0__target_destroy_notify); -#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - sorted = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection); -#line 222 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = plugins_extension_points; -#line 222 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 222 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = _tmp3_; -#line 222 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = _tmp4_; -#line 222 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - gee_collection_add_all (sorted, _tmp5_); -#line 222 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_tmp5_); -#line 224 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = sorted; -#line 224 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL); -#line 224 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func = NULL; -#line 224 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func_target = NULL; -#line 224 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func_target_destroy_notify = NULL; -#line 224 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3199 "Plugins.c" -} - - -GeeCollection* -plugins_get_pluggables_for_type (GType type, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify, - gboolean include_disabled) -{ - GeeCollection* result = NULL; - GeeHashMap* _tmp0_; - GeeCollection* for_type = NULL; - GCompareDataFunc _tmp1_; - void* _tmp1__target; - GDestroyNotify _tmp1__target_destroy_notify; - GeeTreeSet* _tmp2_; -#line 230 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_extension_points; -#line 230 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) type)), "extension_points.has_key(type)"); -#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = compare_func; -#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1__target = compare_func_target; -#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1__target_destroy_notify = compare_func_target_destroy_notify; -#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func = NULL; -#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func_target = NULL; -#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func_target_destroy_notify = NULL; -#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = gee_tree_set_new (SPIT_TYPE_PLUGGABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _tmp1_, _tmp1__target, _tmp1__target_destroy_notify); -#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - for_type = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 3237 "Plugins.c" - { - GeeIterator* _pluggable_rep_it = NULL; - GeeHashMap* _tmp3_; - GeeCollection* _tmp4_; - GeeCollection* _tmp5_; - GeeCollection* _tmp6_; - GeeIterator* _tmp7_; - GeeIterator* _tmp8_; -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = plugins_pluggable_table; -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = _tmp4_; -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = _tmp5_; -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = _tmp7_; -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_tmp6_); -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _pluggable_rep_it = _tmp8_; -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - while (TRUE) { -#line 3264 "Plugins.c" - GeeIterator* _tmp9_; - PluginsPluggableRep* pluggable_rep = NULL; - GeeIterator* _tmp10_; - gpointer _tmp11_; - gboolean _tmp12_ = FALSE; - gboolean _tmp13_ = FALSE; - PluginsPluggableRep* _tmp14_; - gboolean _tmp15_; - gboolean _tmp16_; -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = _pluggable_rep_it; -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!gee_iterator_next (_tmp9_)) { -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - break; -#line 3280 "Plugins.c" - } -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = _pluggable_rep_it; -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp11_ = gee_iterator_get (_tmp10_); -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_rep = (PluginsPluggableRep*) _tmp11_; -#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14_ = pluggable_rep; -#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp15_ = plugins_pluggable_rep_get_activated (_tmp14_); -#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp16_ = _tmp15_; -#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp16_) { -#line 3296 "Plugins.c" - PluginsPluggableRep* _tmp17_; - SpitPluggable* _tmp18_; - SpitPluggable* _tmp19_; -#line 235 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp17_ = pluggable_rep; -#line 235 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp18_ = plugins_pluggable_rep_get_pluggable (_tmp17_); -#line 235 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp19_ = _tmp18_; -#line 235 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13_ = g_type_is_a (G_TYPE_FROM_INSTANCE (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, G_TYPE_OBJECT, GObject)), type); -#line 3308 "Plugins.c" - } else { -#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13_ = FALSE; -#line 3312 "Plugins.c" - } -#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp13_) { -#line 3316 "Plugins.c" - gboolean _tmp20_ = FALSE; -#line 236 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (include_disabled) { -#line 236 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp20_ = TRUE; -#line 3322 "Plugins.c" - } else { - PluginsPluggableRep* _tmp21_; -#line 236 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp21_ = pluggable_rep; -#line 236 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp20_ = plugins_pluggable_rep_is_enabled (_tmp21_); -#line 3329 "Plugins.c" - } -#line 236 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = _tmp20_; -#line 3333 "Plugins.c" - } else { -#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = FALSE; -#line 3337 "Plugins.c" - } -#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp12_) { -#line 3341 "Plugins.c" - GeeCollection* _tmp22_; - PluginsPluggableRep* _tmp23_; - SpitPluggable* _tmp24_; - SpitPluggable* _tmp25_; -#line 237 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp22_ = for_type; -#line 237 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp23_ = pluggable_rep; -#line 237 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp24_ = plugins_pluggable_rep_get_pluggable (_tmp23_); -#line 237 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp25_ = _tmp24_; -#line 237 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - gee_collection_add (_tmp22_, _tmp25_); -#line 3356 "Plugins.c" - } -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 3360 "Plugins.c" - } -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_pluggable_rep_it); -#line 3364 "Plugins.c" - } -#line 241 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = for_type; -#line 241 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL); -#line 241 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func = NULL; -#line 241 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func_target = NULL; -#line 241 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func_target_destroy_notify = NULL; -#line 241 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3378 "Plugins.c" -} - - -gchar* -plugins_get_pluggable_name (const gchar* id) -{ - gchar* result = NULL; - PluginsPluggableRep* pluggable_rep = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - const gchar* _tmp2_ = NULL; - gboolean _tmp3_ = FALSE; - PluginsPluggableRep* _tmp4_; - gchar* _tmp12_; -#line 244 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (id != NULL, NULL); -#line 245 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_pluggable_table; -#line 245 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), id); -#line 245 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_rep = (PluginsPluggableRep*) _tmp1_; -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = pluggable_rep; -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp4_ != NULL) { -#line 3405 "Plugins.c" - PluginsPluggableRep* _tmp5_; - gboolean _tmp6_; - gboolean _tmp7_; -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = pluggable_rep; -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = plugins_pluggable_rep_get_activated (_tmp5_); -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = _tmp6_; -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = _tmp7_; -#line 3417 "Plugins.c" - } else { -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = FALSE; -#line 3421 "Plugins.c" - } -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp3_) { -#line 3425 "Plugins.c" - PluginsPluggableRep* _tmp8_; - SpitPluggable* _tmp9_; - SpitPluggable* _tmp10_; - const gchar* _tmp11_; -#line 248 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = pluggable_rep; -#line 248 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = plugins_pluggable_rep_get_pluggable (_tmp8_); -#line 248 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = _tmp9_; -#line 248 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp11_ = spit_pluggable_get_pluggable_name (_tmp10_); -#line 248 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = _tmp11_; -#line 3440 "Plugins.c" - } else { -#line 248 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = NULL; -#line 3444 "Plugins.c" - } -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = g_strdup (_tmp2_); -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp12_; -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3454 "Plugins.c" -} - - -gboolean -plugins_get_pluggable_info (const gchar* id, - SpitPluggableInfo* info) -{ - gboolean result = FALSE; - PluginsPluggableRep* pluggable_rep = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - gboolean _tmp2_ = FALSE; - PluginsPluggableRep* _tmp3_; - PluginsPluggableRep* _tmp7_; - SpitPluggable* _tmp8_; - SpitPluggable* _tmp9_; -#line 251 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (id != NULL, FALSE); -#line 251 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (info != NULL, FALSE); -#line 252 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_pluggable_table; -#line 252 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), id); -#line 252 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_rep = (PluginsPluggableRep*) _tmp1_; -#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = pluggable_rep; -#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp3_ == NULL) { -#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = TRUE; -#line 3487 "Plugins.c" - } else { - PluginsPluggableRep* _tmp4_; - gboolean _tmp5_; - gboolean _tmp6_; -#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = pluggable_rep; -#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = plugins_pluggable_rep_get_activated (_tmp4_); -#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = _tmp5_; -#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = !_tmp6_; -#line 3500 "Plugins.c" - } -#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp2_) { -#line 254 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = FALSE; -#line 254 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 254 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3510 "Plugins.c" - } -#line 256 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = pluggable_rep; -#line 256 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = plugins_pluggable_rep_get_pluggable (_tmp7_); -#line 256 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = _tmp8_; -#line 256 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_pluggable_get_info (_tmp9_, info); -#line 258 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = TRUE; -#line 258 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 258 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3526 "Plugins.c" -} - - -gboolean -plugins_get_pluggable_enabled (const gchar* id, - gboolean* enabled) -{ - gboolean _vala_enabled = FALSE; - gboolean result = FALSE; - PluginsPluggableRep* pluggable_rep = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - gboolean _tmp2_ = FALSE; - PluginsPluggableRep* _tmp3_; - PluginsPluggableRep* _tmp7_; -#line 261 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (id != NULL, FALSE); -#line 262 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_pluggable_table; -#line 262 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), id); -#line 262 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_rep = (PluginsPluggableRep*) _tmp1_; -#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = pluggable_rep; -#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp3_ == NULL) { -#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = TRUE; -#line 3556 "Plugins.c" - } else { - PluginsPluggableRep* _tmp4_; - gboolean _tmp5_; - gboolean _tmp6_; -#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = pluggable_rep; -#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = plugins_pluggable_rep_get_activated (_tmp4_); -#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = _tmp5_; -#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = !_tmp6_; -#line 3569 "Plugins.c" - } -#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp2_) { -#line 264 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _vala_enabled = FALSE; -#line 266 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = FALSE; -#line 266 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 266 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (enabled) { -#line 266 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *enabled = _vala_enabled; -#line 3583 "Plugins.c" - } -#line 266 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3587 "Plugins.c" - } -#line 269 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = pluggable_rep; -#line 269 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _vala_enabled = plugins_pluggable_rep_is_enabled (_tmp7_); -#line 271 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = TRUE; -#line 271 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 271 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (enabled) { -#line 271 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *enabled = _vala_enabled; -#line 3601 "Plugins.c" - } -#line 271 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3605 "Plugins.c" -} - - -void -plugins_set_pluggable_enabled (const gchar* id, - gboolean enabled) -{ - PluginsPluggableRep* pluggable_rep = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - gboolean _tmp2_ = FALSE; - PluginsPluggableRep* _tmp3_; - PluginsPluggableRep* _tmp7_; -#line 274 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (id != NULL); -#line 275 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_pluggable_table; -#line 275 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), id); -#line 275 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_rep = (PluginsPluggableRep*) _tmp1_; -#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = pluggable_rep; -#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp3_ == NULL) { -#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = TRUE; -#line 3633 "Plugins.c" - } else { - PluginsPluggableRep* _tmp4_; - gboolean _tmp5_; - gboolean _tmp6_; -#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = pluggable_rep; -#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = plugins_pluggable_rep_get_activated (_tmp4_); -#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = _tmp5_; -#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = !_tmp6_; -#line 3646 "Plugins.c" - } -#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp2_) { -#line 277 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 277 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 3654 "Plugins.c" - } -#line 279 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = pluggable_rep; -#line 279 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (plugins_pluggable_rep_set_enabled (_tmp7_, enabled)) { -#line 3660 "Plugins.c" - PluginsNotifier* _tmp8_; - PluginsNotifier* _tmp9_; - PluginsPluggableRep* _tmp10_; - SpitPluggable* _tmp11_; - SpitPluggable* _tmp12_; -#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = plugins_notifier_get_instance (); -#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = _tmp8_; -#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = pluggable_rep; -#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp11_ = plugins_pluggable_rep_get_pluggable (_tmp10_); -#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = _tmp11_; -#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_signal_emit (_tmp9_, plugins_notifier_signals[PLUGINS_NOTIFIER_PLUGGABLE_ACTIVATION_SIGNAL], 0, _tmp12_, enabled); -#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_notifier_unref0 (_tmp9_); -#line 3680 "Plugins.c" - } -#line 274 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 3684 "Plugins.c" -} - - -GFile* -plugins_get_pluggable_module_file (SpitPluggable* pluggable) -{ - GFile* result = NULL; - PluginsModuleRep* module_rep = NULL; - PluginsModuleRep* _tmp0_; - GFile* _tmp1_ = NULL; - PluginsModuleRep* _tmp2_; - GFile* _tmp5_; -#line 283 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (SPIT_IS_PLUGGABLE (pluggable), NULL); -#line 284 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_get_module_for_pluggable (pluggable); -#line 284 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - module_rep = _tmp0_; -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = module_rep; -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp2_ != NULL) { -#line 3707 "Plugins.c" - PluginsModuleRep* _tmp3_; - GFile* _tmp4_; -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = module_rep; -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = _tmp3_->file; -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = _tmp4_; -#line 3716 "Plugins.c" - } else { -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = NULL; -#line 3720 "Plugins.c" - } -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = _g_object_ref0 (_tmp1_); -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp5_; -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3730 "Plugins.c" -} - - -gint -plugins_compare_pluggable_names (void* a, - void* b) -{ - gint result = 0; - SpitPluggable* apluggable = NULL; - SpitPluggable* bpluggable = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; -#line 290 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - apluggable = (SpitPluggable*) a; -#line 291 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - bpluggable = (SpitPluggable*) b; -#line 293 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (apluggable, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 293 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (bpluggable, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 293 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = g_utf8_collate (_tmp0_, _tmp1_); -#line 293 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3755 "Plugins.c" -} - - -gint -plugins_compare_extension_point_names (void* a, - void* b) -{ - gint result = 0; - PluginsExtensionPoint* apoint = NULL; - PluginsExtensionPoint* bpoint = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 297 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - apoint = (PluginsExtensionPoint*) a; -#line 298 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - bpoint = (PluginsExtensionPoint*) b; -#line 300 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_extension_point_get_name (G_TYPE_CHECK_INSTANCE_CAST (apoint, PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPoint)); -#line 300 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = _tmp0_; -#line 300 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = plugins_extension_point_get_name (G_TYPE_CHECK_INSTANCE_CAST (bpoint, PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPoint)); -#line 300 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = _tmp2_; -#line 300 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = g_utf8_collate (_tmp1_, _tmp3_); -#line 300 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3786 "Plugins.c" -} - - -gboolean -plugins_is_shared_library (GFile* file) -{ - gboolean result = FALSE; - gchar* name = NULL; - gchar* ext = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_ = NULL; - gchar* _tmp3_ = NULL; -#line 303 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = g_file_get_basename (file); -#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = _tmp0_; -#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - disassemble_filename (_tmp1_, &_tmp2_, &_tmp3_); -#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (name); -#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - name = _tmp2_; -#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (ext); -#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - ext = _tmp3_; -#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp1_); -#line 3818 "Plugins.c" - { - const gchar** shared_ext_collection = NULL; - gint shared_ext_collection_length1 = 0; - gint _shared_ext_collection_size_ = 0; - gint shared_ext_it = 0; -#line 307 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - shared_ext_collection = PLUGINS_SHARED_LIB_EXTS; -#line 307 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - shared_ext_collection_length1 = G_N_ELEMENTS (PLUGINS_SHARED_LIB_EXTS); -#line 307 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - for (shared_ext_it = 0; shared_ext_it < G_N_ELEMENTS (PLUGINS_SHARED_LIB_EXTS); shared_ext_it = shared_ext_it + 1) { -#line 3830 "Plugins.c" - gchar* _tmp4_; - gchar* shared_ext = NULL; -#line 307 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = g_strdup (shared_ext_collection[shared_ext_it]); -#line 307 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - shared_ext = _tmp4_; -#line 3837 "Plugins.c" - { - const gchar* _tmp5_; - const gchar* _tmp6_; -#line 308 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = ext; -#line 308 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = shared_ext; -#line 308 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (g_strcmp0 (_tmp5_, _tmp6_) == 0) { -#line 309 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = TRUE; -#line 309 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (shared_ext); -#line 309 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (ext); -#line 309 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (name); -#line 309 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3857 "Plugins.c" - } -#line 307 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (shared_ext); -#line 3861 "Plugins.c" - } - } - } -#line 312 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = FALSE; -#line 312 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (ext); -#line 312 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (name); -#line 312 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3873 "Plugins.c" -} - - -void -plugins_search_for_plugins (GFile* dir, - GError** error) -{ - gchar* _tmp0_; - gchar* _tmp1_; - GFileEnumerator* enumerator = NULL; - GFileEnumerator* _tmp2_; - GError * _inner_error_ = NULL; -#line 315 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 316 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = g_file_get_path (dir); -#line 316 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = _tmp0_; -#line 316 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_debug ("Plugins.vala:316: Searching %s for plugins…", _tmp1_); -#line 316 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp1_); -#line 320 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = g_file_enumerate_children (dir, UTIL_FILE_ATTRIBUTES, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_); -#line 320 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - enumerator = _tmp2_; -#line 320 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 320 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_propagate_error (error, _inner_error_); -#line 320 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 3906 "Plugins.c" - } - { - gboolean _tmp3_ = FALSE; -#line 322 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = TRUE; -#line 322 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - while (TRUE) { -#line 3914 "Plugins.c" - GFileInfo* info = NULL; - GFileEnumerator* _tmp4_; - GFileInfo* _tmp5_; - GFileInfo* _tmp6_; - GFileInfo* _tmp7_; - GFile* file = NULL; - GFileInfo* _tmp8_; - const gchar* _tmp9_; - GFile* _tmp10_; - GFileInfo* _tmp11_; -#line 322 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!_tmp3_) { -#line 3927 "Plugins.c" - } -#line 322 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = FALSE; -#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = enumerator; -#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = g_file_enumerator_next_file (_tmp4_, NULL, &_inner_error_); -#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - info = _tmp5_; -#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_propagate_error (error, _inner_error_); -#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (enumerator); -#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 3945 "Plugins.c" - } -#line 324 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = info; -#line 324 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp6_ == NULL) { -#line 325 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (info); -#line 325 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - break; -#line 3955 "Plugins.c" - } -#line 327 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = info; -#line 327 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (g_file_info_get_is_hidden (_tmp7_)) { -#line 328 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (info); -#line 328 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - continue; -#line 3965 "Plugins.c" - } -#line 330 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = info; -#line 330 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = g_file_info_get_name (_tmp8_); -#line 330 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = g_file_get_child (dir, _tmp9_); -#line 330 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - file = _tmp10_; -#line 332 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp11_ = info; -#line 332 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - switch (g_file_info_get_file_type (_tmp11_)) { -#line 332 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - case G_FILE_TYPE_DIRECTORY: -#line 3981 "Plugins.c" - { - { - GFile* _tmp12_; -#line 335 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = file; -#line 335 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_search_for_plugins (_tmp12_, &_inner_error_); -#line 335 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3991 "Plugins.c" - goto __catch40_g_error; - } - } - goto __finally40; - __catch40_g_error: - { - GError* err = NULL; - GFile* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - GError* _tmp16_; - const gchar* _tmp17_; -#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - err = _inner_error_; -#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _inner_error_ = NULL; -#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13_ = file; -#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14_ = g_file_get_path (_tmp13_); -#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp15_ = _tmp14_; -#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp16_ = err; -#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp17_ = _tmp16_->message; -#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_warning ("Plugins.vala:337: Unable to search directory %s for plugins: %s", _tmp15_, _tmp17_); -#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp15_); -#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_error_free0 (err); -#line 4024 "Plugins.c" - } - __finally40: -#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_propagate_error (error, _inner_error_); -#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (file); -#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (info); -#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (enumerator); -#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 4039 "Plugins.c" - } -#line 339 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - break; -#line 4043 "Plugins.c" - } -#line 332 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - case G_FILE_TYPE_REGULAR: -#line 4047 "Plugins.c" - { - GFile* _tmp18_; -#line 342 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp18_ = file; -#line 342 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (plugins_is_shared_library (_tmp18_)) { -#line 4054 "Plugins.c" - GFile* _tmp19_; -#line 343 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp19_ = file; -#line 343 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_load_module (_tmp19_); -#line 4060 "Plugins.c" - } -#line 344 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - break; -#line 4064 "Plugins.c" - } - default: - { -#line 348 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - break; -#line 4070 "Plugins.c" - } - } -#line 322 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (file); -#line 322 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (info); -#line 4077 "Plugins.c" - } - } -#line 315 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (enumerator); -#line 4082 "Plugins.c" -} - - -void -plugins_load_module (GFile* file) -{ - PluginsModuleRep* module_rep = NULL; - PluginsModuleRep* _tmp0_; - PluginsModuleRep* _tmp1_; - void* entry = NULL; - PluginsModuleRep* _tmp5_; - GModule* _tmp6_; - void* _tmp7_ = NULL; - gboolean _tmp8_; - SpitEntryPoint spit_entry_point = NULL; - void* _tmp11_; - gboolean _tmp12_ = FALSE; - SpitEntryPointParams params = {0}; - GFile* _tmp13_; - PluginsModuleRep* _tmp14_; - SpitEntryPoint _tmp15_; - SpitModule* _tmp16_; - SpitEntryPointParams _tmp17_; - gint _tmp18_; - gboolean _tmp21_ = FALSE; - SpitEntryPointParams _tmp22_; - gint _tmp23_; - PluginsModuleRep* _tmp30_; - SpitEntryPointParams _tmp31_; - gint _tmp32_; - PluginsModuleRep* _tmp33_; - SpitModule* _tmp34_; - PluginsModuleRep* _tmp36_; - SpitModule* _tmp37_; - PluginsModuleRep* _tmp42_; - PluginsModuleRep* _tmp43_; - SpitModule* _tmp44_; - const gchar* _tmp45_; - gchar* _tmp46_; - PluginsModuleRep* _tmp47_; - const gchar* _tmp48_; - GeeHashMap* _tmp53_; - PluginsModuleRep* _tmp54_; - const gchar* _tmp55_; - PluginsModuleRep* _tmp62_; - SpitModule* _tmp63_; - const gchar* _tmp64_; - PluginsModuleRep* _tmp65_; - SpitModule* _tmp66_; - const gchar* _tmp67_; - PluginsModuleRep* _tmp68_; - const gchar* _tmp69_; - gchar* _tmp70_; - gchar* _tmp71_; - GeeHashMap* _tmp72_; - PluginsModuleRep* _tmp73_; - const gchar* _tmp74_; - PluginsModuleRep* _tmp75_; - PluginsModuleRep* _tmp76_; - SpitModule* _tmp77_; - gint _tmp78_; - SpitPluggable** _tmp79_; -#line 353 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 354 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_module_rep_open (file); -#line 354 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - module_rep = _tmp0_; -#line 355 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = module_rep; -#line 355 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp1_ == NULL) { -#line 4155 "Plugins.c" - gchar* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_; -#line 356 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = g_file_get_path (file); -#line 356 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = _tmp2_; -#line 356 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = g_module_error (); -#line 356 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_critical ("Plugins.vala:356: Unable to load module %s: %s", _tmp3_, _tmp4_); -#line 356 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp3_); -#line 358 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 358 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 4173 "Plugins.c" - } -#line 363 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = module_rep; -#line 363 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = _tmp5_->module; -#line 363 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = g_module_symbol (_tmp6_, SPIT_ENTRY_POINT_NAME, &_tmp7_); -#line 363 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - entry = _tmp7_; -#line 363 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!_tmp8_) { -#line 4185 "Plugins.c" - gchar* _tmp9_; - gchar* _tmp10_; -#line 364 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = g_file_get_path (file); -#line 364 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = _tmp9_; -#line 364 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_critical ("Plugins.vala:364: Unable to load module %s: well-known entry point %s " \ -"not found", _tmp10_, SPIT_ENTRY_POINT_NAME); -#line 364 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp10_); -#line 367 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 367 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 4200 "Plugins.c" - } -#line 370 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp11_ = entry; -#line 370 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_entry_point = (SpitEntryPoint) _tmp11_; -#line 372 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (PLUGINS_MIN_SPIT_INTERFACE <= SPIT_CURRENT_INTERFACE) { -#line 372 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = SPIT_CURRENT_INTERFACE <= PLUGINS_MAX_SPIT_INTERFACE; -#line 4210 "Plugins.c" - } else { -#line 372 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = FALSE; -#line 4214 "Plugins.c" - } -#line 372 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _vala_assert (_tmp12_, "MIN_SPIT_INTERFACE <= Spit.CURRENT_INTERFACE && Spit.CURRENT_INTERFACE <= MAX_SPIT_INTERFACE"); -#line 373 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - memset (¶ms, 0, sizeof (SpitEntryPointParams)); -#line 374 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - params.host_min_spit_interface = PLUGINS_MIN_SPIT_INTERFACE; -#line 375 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - params.host_max_spit_interface = PLUGINS_MAX_SPIT_INTERFACE; -#line 376 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - params.module_spit_interface = SPIT_UNSUPPORTED_INTERFACE; -#line 377 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13_ = _g_object_ref0 (file); -#line 377 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (params.module_file); -#line 377 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - params.module_file = _tmp13_; -#line 379 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14_ = module_rep; -#line 379 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp15_ = spit_entry_point; -#line 379 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp16_ = _tmp15_ (¶ms); -#line 379 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_tmp14_->spit_module); -#line 379 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14_->spit_module = _tmp16_; -#line 380 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp17_ = params; -#line 380 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp18_ = _tmp17_.module_spit_interface; -#line 380 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp18_ == SPIT_UNSUPPORTED_INTERFACE) { -#line 4248 "Plugins.c" - gchar* _tmp19_; - gchar* _tmp20_; -#line 381 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp19_ = g_file_get_path (file); -#line 381 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp20_ = _tmp19_; -#line 381 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_critical ("Plugins.vala:381: Unable to load module %s: module reports no support " \ -"for SPIT interfaces %d to %d", _tmp20_, PLUGINS_MIN_SPIT_INTERFACE, PLUGINS_MAX_SPIT_INTERFACE); -#line 381 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp20_); -#line 384 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_entry_point_params_destroy (¶ms); -#line 384 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 384 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 4265 "Plugins.c" - } -#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp22_ = params; -#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp23_ = _tmp22_.module_spit_interface; -#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp23_ < PLUGINS_MIN_SPIT_INTERFACE) { -#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp21_ = TRUE; -#line 4275 "Plugins.c" - } else { - SpitEntryPointParams _tmp24_; - gint _tmp25_; -#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp24_ = params; -#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp25_ = _tmp24_.module_spit_interface; -#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp21_ = _tmp25_ > PLUGINS_MAX_SPIT_INTERFACE; -#line 4285 "Plugins.c" - } -#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp21_) { -#line 4289 "Plugins.c" - gchar* _tmp26_; - gchar* _tmp27_; - PluginsModuleRep* _tmp28_; - gint _tmp29_; -#line 388 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp26_ = g_file_get_path (file); -#line 388 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp27_ = _tmp26_; -#line 388 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp28_ = module_rep; -#line 388 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp29_ = _tmp28_->spit_interface; -#line 388 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_critical ("Plugins.vala:388: Unable to load module %s: module reports unsupported" \ -" SPIT version %d (out of range %d to %d)", _tmp27_, _tmp29_, PLUGINS_MIN_SPIT_INTERFACE, PLUGINS_MAX_SPIT_INTERFACE); -#line 388 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp27_); -#line 391 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_entry_point_params_destroy (¶ms); -#line 391 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 391 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 4312 "Plugins.c" - } -#line 394 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp30_ = module_rep; -#line 394 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp31_ = params; -#line 394 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp32_ = _tmp31_.module_spit_interface; -#line 394 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp30_->spit_interface = _tmp32_; -#line 397 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp33_ = module_rep; -#line 397 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp34_ = _tmp33_->spit_module; -#line 397 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp34_, SPIT_TYPE_MODULE)) { -#line 4328 "Plugins.c" - PluginsModuleRep* _tmp35_; -#line 398 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp35_ = module_rep; -#line 398 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_tmp35_->spit_module); -#line 398 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp35_->spit_module = NULL; -#line 4336 "Plugins.c" - } -#line 400 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp36_ = module_rep; -#line 400 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp37_ = _tmp36_->spit_module; -#line 400 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp37_ == NULL) { -#line 4344 "Plugins.c" - gchar* _tmp38_; - gchar* _tmp39_; - PluginsModuleRep* _tmp40_; - gint _tmp41_; -#line 401 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp38_ = g_file_get_path (file); -#line 401 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp39_ = _tmp38_; -#line 401 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp40_ = module_rep; -#line 401 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp41_ = _tmp40_->spit_interface; -#line 401 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_critical ("Plugins.vala:401: Unable to load module %s (SPIT %d): no spit module r" \ -"eturned", _tmp39_, _tmp41_); -#line 401 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp39_); -#line 404 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_entry_point_params_destroy (¶ms); -#line 404 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 404 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 4367 "Plugins.c" - } -#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp42_ = module_rep; -#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp43_ = module_rep; -#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp44_ = _tmp43_->spit_module; -#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp45_ = spit_module_get_id (_tmp44_); -#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp46_ = prepare_input_text (_tmp45_, PREPARE_INPUT_TEXT_OPTIONS_DEFAULT, -1); -#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp42_->id); -#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp42_->id = _tmp46_; -#line 410 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp47_ = module_rep; -#line 410 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp48_ = _tmp47_->id; -#line 410 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp48_ == NULL) { -#line 4389 "Plugins.c" - gchar* _tmp49_; - gchar* _tmp50_; - PluginsModuleRep* _tmp51_; - gint _tmp52_; -#line 411 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp49_ = g_file_get_path (file); -#line 411 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp50_ = _tmp49_; -#line 411 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp51_ = module_rep; -#line 411 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp52_ = _tmp51_->spit_interface; -#line 411 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_critical ("Plugins.vala:411: Unable to load module %s (SPIT %d): invalid or empty" \ -" module name", _tmp50_, _tmp52_); -#line 411 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp50_); -#line 414 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_entry_point_params_destroy (¶ms); -#line 414 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 414 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 4412 "Plugins.c" - } -#line 417 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp53_ = plugins_module_table; -#line 417 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp54_ = module_rep; -#line 417 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp55_ = _tmp54_->id; -#line 417 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp55_)) { -#line 4422 "Plugins.c" - gchar* _tmp56_; - gchar* _tmp57_; - PluginsModuleRep* _tmp58_; - gint _tmp59_; - PluginsModuleRep* _tmp60_; - const gchar* _tmp61_; -#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp56_ = g_file_get_path (file); -#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp57_ = _tmp56_; -#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp58_ = module_rep; -#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp59_ = _tmp58_->spit_interface; -#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp60_ = module_rep; -#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp61_ = _tmp60_->id; -#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_critical ("Plugins.vala:418: Not loading module %s (SPIT %d): module with name \"" \ -"%s\" already loaded", _tmp57_, _tmp59_, _tmp61_); -#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp57_); -#line 421 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_entry_point_params_destroy (¶ms); -#line 421 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 421 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 4451 "Plugins.c" - } -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp62_ = module_rep; -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp63_ = _tmp62_->spit_module; -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp64_ = spit_module_get_module_name (_tmp63_); -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp65_ = module_rep; -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp66_ = _tmp65_->spit_module; -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp67_ = spit_module_get_version (_tmp66_); -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp68_ = module_rep; -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp69_ = _tmp68_->id; -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp70_ = g_file_get_path (file); -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp71_ = _tmp70_; -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_debug ("Plugins.vala:424: Loaded SPIT module \"%s %s\" (%s) [%s]", _tmp64_, _tmp67_, _tmp69_, _tmp71_); -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp71_); -#line 428 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp72_ = plugins_module_table; -#line 428 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp73_ = module_rep; -#line 428 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp74_ = _tmp73_->id; -#line 428 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp75_ = module_rep; -#line 428 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp74_, _tmp75_); -#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp76_ = module_rep; -#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp77_ = _tmp76_->spit_module; -#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp79_ = spit_module_get_pluggables (_tmp77_, &_tmp78_); -#line 4493 "Plugins.c" - { - SpitPluggable** pluggable_collection = NULL; - gint pluggable_collection_length1 = 0; - gint _pluggable_collection_size_ = 0; - gint pluggable_it = 0; -#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_collection = _tmp79_; -#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_collection_length1 = _tmp78_; -#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - for (pluggable_it = 0; pluggable_it < _tmp78_; pluggable_it = pluggable_it + 1) { -#line 4505 "Plugins.c" - SpitPluggable* _tmp80_; - SpitPluggable* pluggable = NULL; -#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp80_ = _g_object_ref0 (pluggable_collection[pluggable_it]); -#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable = _tmp80_; -#line 4512 "Plugins.c" - { - GeeHashMap* _tmp81_; - SpitPluggable* _tmp82_; - const gchar* _tmp83_; - SpitPluggable* _tmp84_; - PluginsPluggableRep* _tmp85_; - PluginsPluggableRep* _tmp86_; -#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp81_ = plugins_pluggable_table; -#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp82_ = pluggable; -#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp83_ = spit_pluggable_get_id (_tmp82_); -#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp84_ = pluggable; -#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp85_ = plugins_pluggable_rep_new (_tmp84_); -#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp86_ = _tmp85_; -#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp81_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp83_, _tmp86_); -#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (_tmp86_); -#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (pluggable); -#line 4538 "Plugins.c" - } - } - } -#line 353 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_entry_point_params_destroy (¶ms); -#line 353 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 4546 "Plugins.c" -} - - -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/src/plugins/Plugins.vala b/src/plugins/Plugins.vala index 5f6613c..6aff461 100644 --- a/src/plugins/Plugins.vala +++ b/src/plugins/Plugins.vala @@ -112,6 +112,10 @@ private Gee.HashSet<string> core_ids; public void init() throws Error { search_dirs = new File[0]; + unowned string plugin_dir = Environment.get_variable("SHOTWELL_PLUGIN_PATH"); + if (plugin_dir != null && plugin_dir != "") { + search_dirs += File.new_for_commandline_arg(plugin_dir); + } search_dirs += AppDirs.get_user_plugins_dir(); search_dirs += AppDirs.get_system_plugins_dir(); diff --git a/src/plugins/PublishingInterfaces.c b/src/plugins/PublishingInterfaces.c deleted file mode 100644 index 54059fb..0000000 --- a/src/plugins/PublishingInterfaces.c +++ /dev/null @@ -1,2242 +0,0 @@ -/* PublishingInterfaces.c generated by valac 0.40.4, the Vala compiler - * generated from PublishingInterfaces.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 <glib.h> -#include <glib-object.h> -#include <stdlib.h> -#include <string.h> -#include <gdk-pixbuf/gdk-pixbuf.h> -#include <gio/gio.h> -#include <float.h> -#include <math.h> -#include <gtk/gtk.h> -#include <gee.h> - - -#define SPIT_PUBLISHING_TYPE_PUBLISHER (spit_publishing_publisher_get_type ()) -#define SPIT_PUBLISHING_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)) -#define SPIT_PUBLISHING_IS_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER)) -#define SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisherIface)) - -typedef struct _SpitPublishingPublisher SpitPublishingPublisher; -typedef struct _SpitPublishingPublisherIface SpitPublishingPublisherIface; - -#define SPIT_TYPE_PLUGGABLE (spit_pluggable_get_type ()) -#define SPIT_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggable)) -#define SPIT_IS_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_PLUGGABLE)) -#define SPIT_PLUGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggableIface)) - -typedef struct _SpitPluggable SpitPluggable; -typedef struct _SpitPluggableIface SpitPluggableIface; - -#define SPIT_TYPE_PLUGGABLE_INFO (spit_pluggable_info_get_type ()) -typedef struct _SpitPluggableInfo SpitPluggableInfo; - -#define SPIT_PUBLISHING_TYPE_SERVICE (spit_publishing_service_get_type ()) -#define SPIT_PUBLISHING_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService)) -#define SPIT_PUBLISHING_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_SERVICE)) -#define SPIT_PUBLISHING_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingServiceIface)) - -typedef struct _SpitPublishingService SpitPublishingService; -typedef struct _SpitPublishingServiceIface SpitPublishingServiceIface; - -#define SPIT_TYPE_HOST_INTERFACE (spit_host_interface_get_type ()) -#define SPIT_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterface)) -#define SPIT_IS_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_HOST_INTERFACE)) -#define SPIT_HOST_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterfaceIface)) - -typedef struct _SpitHostInterface SpitHostInterface; -typedef struct _SpitHostInterfaceIface SpitHostInterfaceIface; - -#define SPIT_PUBLISHING_TYPE_PLUGIN_HOST (spit_publishing_plugin_host_get_type ()) -#define SPIT_PUBLISHING_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHost)) -#define SPIT_PUBLISHING_IS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST)) -#define SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHostIface)) - -typedef struct _SpitPublishingPluginHost SpitPublishingPluginHost; -typedef struct _SpitPublishingPluginHostIface SpitPublishingPluginHostIface; - -#define SPIT_PUBLISHING_TYPE_DIALOG_PANE (spit_publishing_dialog_pane_get_type ()) -#define SPIT_PUBLISHING_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane)) -#define SPIT_PUBLISHING_IS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE)) -#define SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPaneIface)) - -typedef struct _SpitPublishingDialogPane SpitPublishingDialogPane; -typedef struct _SpitPublishingDialogPaneIface SpitPublishingDialogPaneIface; - -#define SPIT_PUBLISHING_DIALOG_PANE_TYPE_GEOMETRY_OPTIONS (spit_publishing_dialog_pane_geometry_options_get_type ()) - -#define SPIT_PUBLISHING_PLUGIN_HOST_TYPE_BUTTON_MODE (spit_publishing_plugin_host_button_mode_get_type ()) - -#define SPIT_PUBLISHING_TYPE_PUBLISHABLE (spit_publishing_publishable_get_type ()) -#define SPIT_PUBLISHING_PUBLISHABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE, SpitPublishingPublishable)) -#define SPIT_PUBLISHING_IS_PUBLISHABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE)) -#define SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE, SpitPublishingPublishableIface)) - -typedef struct _SpitPublishingPublishable SpitPublishingPublishable; -typedef struct _SpitPublishingPublishableIface SpitPublishingPublishableIface; - -#define SPIT_PUBLISHING_PUBLISHER_TYPE_MEDIA_TYPE (spit_publishing_publisher_media_type_get_type ()) - -#define SPIT_PUBLISHING_TYPE_AUTHENTICATOR (spit_publishing_authenticator_get_type ()) -#define SPIT_PUBLISHING_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator)) -#define SPIT_PUBLISHING_IS_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR)) -#define SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticatorIface)) - -typedef struct _SpitPublishingAuthenticator SpitPublishingAuthenticator; -typedef struct _SpitPublishingAuthenticatorIface SpitPublishingAuthenticatorIface; -enum { - SPIT_PUBLISHING_AUTHENTICATOR_AUTHENTICATED_SIGNAL, - SPIT_PUBLISHING_AUTHENTICATOR_AUTHENTICATION_FAILED_SIGNAL, - SPIT_PUBLISHING_AUTHENTICATOR_NUM_SIGNALS -}; -static guint spit_publishing_authenticator_signals[SPIT_PUBLISHING_AUTHENTICATOR_NUM_SIGNALS] = {0}; - -#define SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY (spit_publishing_authenticator_factory_get_type ()) -#define SPIT_PUBLISHING_AUTHENTICATOR_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory)) -#define SPIT_PUBLISHING_IS_AUTHENTICATOR_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY)) -#define SPIT_PUBLISHING_AUTHENTICATOR_FACTORY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactoryIface)) - -typedef struct _SpitPublishingAuthenticatorFactory SpitPublishingAuthenticatorFactory; -typedef struct _SpitPublishingAuthenticatorFactoryIface SpitPublishingAuthenticatorFactoryIface; - -/** - * Defines different kinds of errors that can occur during publishing. - */ -typedef enum { - SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, - SPIT_PUBLISHING_PUBLISHING_ERROR_COMMUNICATION_FAILED, - SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR, - SPIT_PUBLISHING_PUBLISHING_ERROR_SERVICE_ERROR, - SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, - SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, - SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION, - SPIT_PUBLISHING_PUBLISHING_ERROR_SSL_FAILED -} SpitPublishingPublishingError; -#define SPIT_PUBLISHING_PUBLISHING_ERROR spit_publishing_publishing_error_quark () -struct _SpitPluggableInfo { - gchar* version; - gchar* brief_description; - gchar* authors; - gchar* copyright; - gchar* license; - gboolean is_license_wordwrapped; - gchar* website_url; - gchar* website_name; - gchar* translators; - GdkPixbuf** icons; - gint icons_length1; -}; - -struct _SpitPluggableIface { - GTypeInterface parent_iface; - gint (*get_pluggable_interface) (SpitPluggable* self, gint min_host_interface, gint max_host_interface); - const gchar* (*get_id) (SpitPluggable* self); - const gchar* (*get_pluggable_name) (SpitPluggable* self); - void (*get_info) (SpitPluggable* self, SpitPluggableInfo* info); - void (*activation) (SpitPluggable* self, gboolean enabled); - void (*reserved0) (SpitPluggable* self); - void (*reserved1) (SpitPluggable* self); - void (*reserved2) (SpitPluggable* self); - void (*reserved3) (SpitPluggable* self); - void (*reserved4) (SpitPluggable* self); - void (*reserved5) (SpitPluggable* self); - void (*reserved6) (SpitPluggable* self); - void (*reserved7) (SpitPluggable* self); -}; - -struct _SpitHostInterfaceIface { - GTypeInterface parent_iface; - GFile* (*get_module_file) (SpitHostInterface* self); - gboolean (*get_config_bool) (SpitHostInterface* self, const gchar* key, gboolean def); - void (*set_config_bool) (SpitHostInterface* self, const gchar* key, gboolean val); - gint (*get_config_int) (SpitHostInterface* self, const gchar* key, gint def); - void (*set_config_int) (SpitHostInterface* self, const gchar* key, gint val); - gchar* (*get_config_string) (SpitHostInterface* self, const gchar* key, const gchar* def); - void (*set_config_string) (SpitHostInterface* self, const gchar* key, const gchar* val); - gdouble (*get_config_double) (SpitHostInterface* self, const gchar* key, gdouble def); - void (*set_config_double) (SpitHostInterface* self, const gchar* key, gdouble val); - void (*unset_config_key) (SpitHostInterface* self, const gchar* key); - void (*reserved0) (SpitHostInterface* self); - void (*reserved1) (SpitHostInterface* self); - void (*reserved2) (SpitHostInterface* self); - void (*reserved3) (SpitHostInterface* self); - void (*reserved4) (SpitHostInterface* self); - void (*reserved5) (SpitHostInterface* self); - void (*reserved6) (SpitHostInterface* self); - void (*reserved7) (SpitHostInterface* self); -}; - -typedef enum { - SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE = 0, - SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE = 1 << 0, - SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE = 1 << 1, - SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE = 1 << 2 -} SpitPublishingDialogPaneGeometryOptions; - -struct _SpitPublishingDialogPaneIface { - GTypeInterface parent_iface; - GtkWidget* (*get_widget) (SpitPublishingDialogPane* self); - SpitPublishingDialogPaneGeometryOptions (*get_preferred_geometry) (SpitPublishingDialogPane* self); - void (*on_pane_installed) (SpitPublishingDialogPane* self); - void (*on_pane_uninstalled) (SpitPublishingDialogPane* self); - void (*reserved0) (SpitPublishingDialogPane* self); - void (*reserved1) (SpitPublishingDialogPane* self); - void (*reserved2) (SpitPublishingDialogPane* self); - void (*reserved3) (SpitPublishingDialogPane* self); - void (*reserved4) (SpitPublishingDialogPane* self); - void (*reserved5) (SpitPublishingDialogPane* self); - void (*reserved6) (SpitPublishingDialogPane* self); - void (*reserved7) (SpitPublishingDialogPane* self); -}; - -typedef enum { - SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE = 0, - SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL = 1 -} SpitPublishingPluginHostButtonMode; - -typedef void (*SpitPublishingLoginCallback) (void* user_data); -typedef enum { - SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE = 0, - SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO = 1 << 0, - SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO = 1 << 1 -} SpitPublishingPublisherMediaType; - -struct _SpitPublishingPublishableIface { - GTypeInterface parent_iface; - GFile* (*get_serialized_file) (SpitPublishingPublishable* self); - gchar* (*get_publishing_name) (SpitPublishingPublishable* self); - gchar* (*get_param_string) (SpitPublishingPublishable* self, const gchar* name); - gchar** (*get_publishing_keywords) (SpitPublishingPublishable* self, int* result_length1); - SpitPublishingPublisherMediaType (*get_media_type) (SpitPublishingPublishable* self); - GDateTime* (*get_exposure_date_time) (SpitPublishingPublishable* self); - void (*reserved0) (SpitPublishingPublishable* self); - void (*reserved1) (SpitPublishingPublishable* self); - void (*reserved2) (SpitPublishingPublishable* self); - void (*reserved3) (SpitPublishingPublishable* self); - void (*reserved4) (SpitPublishingPublishable* self); - void (*reserved5) (SpitPublishingPublishable* self); - void (*reserved6) (SpitPublishingPublishable* self); - void (*reserved7) (SpitPublishingPublishable* self); -}; - -typedef void (*SpitPublishingProgressCallback) (gint file_number, gdouble fraction_complete, void* user_data); -struct _SpitPublishingPluginHostIface { - GTypeInterface parent_iface; - void (*post_error) (SpitPublishingPluginHost* self, GError* err); - void (*stop_publishing) (SpitPublishingPluginHost* self); - SpitPublishingPublisher* (*get_publisher) (SpitPublishingPluginHost* self); - void (*install_dialog_pane) (SpitPublishingPluginHost* self, SpitPublishingDialogPane* pane, SpitPublishingPluginHostButtonMode mode); - void (*install_static_message_pane) (SpitPublishingPluginHost* self, const gchar* message, SpitPublishingPluginHostButtonMode mode); - void (*install_pango_message_pane) (SpitPublishingPluginHost* self, const gchar* markup, SpitPublishingPluginHostButtonMode mode); - void (*install_success_pane) (SpitPublishingPluginHost* self); - void (*install_account_fetch_wait_pane) (SpitPublishingPluginHost* self); - void (*install_login_wait_pane) (SpitPublishingPluginHost* self); - void (*install_welcome_pane) (SpitPublishingPluginHost* self, const gchar* welcome_message, SpitPublishingLoginCallback on_login_clicked, void* on_login_clicked_target); - void (*set_service_locked) (SpitPublishingPluginHost* self, gboolean is_locked); - void (*set_dialog_default_widget) (SpitPublishingPluginHost* self, GtkWidget* widget); - SpitPublishingPublishable** (*get_publishables) (SpitPublishingPluginHost* self, int* result_length1); - SpitPublishingProgressCallback (*serialize_publishables) (SpitPublishingPluginHost* self, gint content_major_axis, gboolean strip_metadata, void** result_target, GDestroyNotify* result_target_destroy_notify); - SpitPublishingPublisherMediaType (*get_publishable_media_type) (SpitPublishingPluginHost* self); - void (*reserved0) (SpitPublishingPluginHost* self); - void (*reserved1) (SpitPublishingPluginHost* self); - void (*reserved2) (SpitPublishingPluginHost* self); - void (*reserved3) (SpitPublishingPluginHost* self); - void (*reserved4) (SpitPublishingPluginHost* self); - void (*reserved5) (SpitPublishingPluginHost* self); - void (*reserved6) (SpitPublishingPluginHost* self); - void (*reserved7) (SpitPublishingPluginHost* self); -}; - -struct _SpitPublishingServiceIface { - GTypeInterface parent_iface; - SpitPublishingPublisher* (*create_publisher) (SpitPublishingService* self, SpitPublishingPluginHost* host); - SpitPublishingPublisherMediaType (*get_supported_media) (SpitPublishingService* self); - void (*reserved0) (SpitPublishingService* self); - void (*reserved1) (SpitPublishingService* self); - void (*reserved2) (SpitPublishingService* self); - void (*reserved3) (SpitPublishingService* self); - void (*reserved4) (SpitPublishingService* self); - void (*reserved5) (SpitPublishingService* self); - void (*reserved6) (SpitPublishingService* self); - void (*reserved7) (SpitPublishingService* self); -}; - -struct _SpitPublishingPublisherIface { - GTypeInterface parent_iface; - SpitPublishingService* (*get_service) (SpitPublishingPublisher* self); - void (*start) (SpitPublishingPublisher* self); - gboolean (*is_running) (SpitPublishingPublisher* self); - void (*stop) (SpitPublishingPublisher* self); - void (*reserved0) (SpitPublishingPublisher* self); - void (*reserved1) (SpitPublishingPublisher* self); - void (*reserved2) (SpitPublishingPublisher* self); - void (*reserved3) (SpitPublishingPublisher* self); - void (*reserved4) (SpitPublishingPublisher* self); - void (*reserved5) (SpitPublishingPublisher* self); - void (*reserved6) (SpitPublishingPublisher* self); - void (*reserved7) (SpitPublishingPublisher* self); -}; - -struct _SpitPublishingAuthenticatorIface { - GTypeInterface parent_iface; - void (*authenticate) (SpitPublishingAuthenticator* self); - gboolean (*can_logout) (SpitPublishingAuthenticator* self); - void (*logout) (SpitPublishingAuthenticator* self); - void (*refresh) (SpitPublishingAuthenticator* self); - GHashTable* (*get_authentication_parameter) (SpitPublishingAuthenticator* self); -}; - -struct _SpitPublishingAuthenticatorFactoryIface { - GTypeInterface parent_iface; - GeeList* (*get_available_authenticators) (SpitPublishingAuthenticatorFactory* self); - SpitPublishingAuthenticator* (*create) (SpitPublishingAuthenticatorFactory* self, const gchar* provider, SpitPublishingPluginHost* host); -}; - - - -#define SPIT_PUBLISHING_CURRENT_INTERFACE 0 -GQuark spit_publishing_publishing_error_quark (void); -GType spit_pluggable_info_get_type (void) G_GNUC_CONST; -SpitPluggableInfo* spit_pluggable_info_dup (const SpitPluggableInfo* self); -void spit_pluggable_info_free (SpitPluggableInfo* self); -void spit_pluggable_info_copy (const SpitPluggableInfo* self, - SpitPluggableInfo* dest); -void spit_pluggable_info_destroy (SpitPluggableInfo* self); -GType spit_pluggable_get_type (void) G_GNUC_CONST; -GType spit_host_interface_get_type (void) G_GNUC_CONST; -GType spit_publishing_dialog_pane_geometry_options_get_type (void) G_GNUC_CONST; -GType spit_publishing_dialog_pane_get_type (void) G_GNUC_CONST; -GType spit_publishing_plugin_host_button_mode_get_type (void) G_GNUC_CONST; -GType spit_publishing_publisher_media_type_get_type (void) G_GNUC_CONST; -GType spit_publishing_publishable_get_type (void) G_GNUC_CONST; -GType spit_publishing_plugin_host_get_type (void) G_GNUC_CONST; -GType spit_publishing_service_get_type (void) G_GNUC_CONST; -GType spit_publishing_publisher_get_type (void) G_GNUC_CONST; -SpitPublishingService* spit_publishing_publisher_get_service (SpitPublishingPublisher* self); -void spit_publishing_publisher_start (SpitPublishingPublisher* self); -gboolean spit_publishing_publisher_is_running (SpitPublishingPublisher* self); -void spit_publishing_publisher_stop (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved0 (SpitPublishingPublisher* self); -static void spit_publishing_publisher_real_reserved0 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved1 (SpitPublishingPublisher* self); -static void spit_publishing_publisher_real_reserved1 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved2 (SpitPublishingPublisher* self); -static void spit_publishing_publisher_real_reserved2 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved3 (SpitPublishingPublisher* self); -static void spit_publishing_publisher_real_reserved3 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved4 (SpitPublishingPublisher* self); -static void spit_publishing_publisher_real_reserved4 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved5 (SpitPublishingPublisher* self); -static void spit_publishing_publisher_real_reserved5 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved6 (SpitPublishingPublisher* self); -static void spit_publishing_publisher_real_reserved6 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved7 (SpitPublishingPublisher* self); -static void spit_publishing_publisher_real_reserved7 (SpitPublishingPublisher* self); -GtkWidget* spit_publishing_dialog_pane_get_widget (SpitPublishingDialogPane* self); -SpitPublishingDialogPaneGeometryOptions spit_publishing_dialog_pane_get_preferred_geometry (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_on_pane_installed (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_on_pane_uninstalled (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved0 (SpitPublishingDialogPane* self); -static void spit_publishing_dialog_pane_real_reserved0 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved1 (SpitPublishingDialogPane* self); -static void spit_publishing_dialog_pane_real_reserved1 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved2 (SpitPublishingDialogPane* self); -static void spit_publishing_dialog_pane_real_reserved2 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved3 (SpitPublishingDialogPane* self); -static void spit_publishing_dialog_pane_real_reserved3 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved4 (SpitPublishingDialogPane* self); -static void spit_publishing_dialog_pane_real_reserved4 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved5 (SpitPublishingDialogPane* self); -static void spit_publishing_dialog_pane_real_reserved5 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved6 (SpitPublishingDialogPane* self); -static void spit_publishing_dialog_pane_real_reserved6 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved7 (SpitPublishingDialogPane* self); -static void spit_publishing_dialog_pane_real_reserved7 (SpitPublishingDialogPane* self); -void spit_publishing_plugin_host_post_error (SpitPublishingPluginHost* self, - GError* err); -void spit_publishing_plugin_host_stop_publishing (SpitPublishingPluginHost* self); -SpitPublishingPublisher* spit_publishing_plugin_host_get_publisher (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_install_dialog_pane (SpitPublishingPluginHost* self, - SpitPublishingDialogPane* pane, - SpitPublishingPluginHostButtonMode mode); -void spit_publishing_plugin_host_install_static_message_pane (SpitPublishingPluginHost* self, - const gchar* message, - SpitPublishingPluginHostButtonMode mode); -void spit_publishing_plugin_host_install_pango_message_pane (SpitPublishingPluginHost* self, - const gchar* markup, - SpitPublishingPluginHostButtonMode mode); -void spit_publishing_plugin_host_install_success_pane (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_install_account_fetch_wait_pane (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_install_login_wait_pane (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_install_welcome_pane (SpitPublishingPluginHost* self, - const gchar* welcome_message, - SpitPublishingLoginCallback on_login_clicked, - void* on_login_clicked_target); -void spit_publishing_plugin_host_set_service_locked (SpitPublishingPluginHost* self, - gboolean is_locked); -void spit_publishing_plugin_host_set_dialog_default_widget (SpitPublishingPluginHost* self, - GtkWidget* widget); -SpitPublishingPublishable** spit_publishing_plugin_host_get_publishables (SpitPublishingPluginHost* self, - int* result_length1); -SpitPublishingProgressCallback spit_publishing_plugin_host_serialize_publishables (SpitPublishingPluginHost* self, - gint content_major_axis, - gboolean strip_metadata, - void** result_target, - GDestroyNotify* result_target_destroy_notify); -SpitPublishingPublisherMediaType spit_publishing_plugin_host_get_publishable_media_type (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved0 (SpitPublishingPluginHost* self); -static void spit_publishing_plugin_host_real_reserved0 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved1 (SpitPublishingPluginHost* self); -static void spit_publishing_plugin_host_real_reserved1 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved2 (SpitPublishingPluginHost* self); -static void spit_publishing_plugin_host_real_reserved2 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved3 (SpitPublishingPluginHost* self); -static void spit_publishing_plugin_host_real_reserved3 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved4 (SpitPublishingPluginHost* self); -static void spit_publishing_plugin_host_real_reserved4 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved5 (SpitPublishingPluginHost* self); -static void spit_publishing_plugin_host_real_reserved5 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved6 (SpitPublishingPluginHost* self); -static void spit_publishing_plugin_host_real_reserved6 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved7 (SpitPublishingPluginHost* self); -static void spit_publishing_plugin_host_real_reserved7 (SpitPublishingPluginHost* self); -GFile* spit_publishing_publishable_get_serialized_file (SpitPublishingPublishable* self); -gchar* spit_publishing_publishable_get_publishing_name (SpitPublishingPublishable* self); -gchar* spit_publishing_publishable_get_param_string (SpitPublishingPublishable* self, - const gchar* name); -gchar** spit_publishing_publishable_get_publishing_keywords (SpitPublishingPublishable* self, - int* result_length1); -SpitPublishingPublisherMediaType spit_publishing_publishable_get_media_type (SpitPublishingPublishable* self); -GDateTime* spit_publishing_publishable_get_exposure_date_time (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved0 (SpitPublishingPublishable* self); -static void spit_publishing_publishable_real_reserved0 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved1 (SpitPublishingPublishable* self); -static void spit_publishing_publishable_real_reserved1 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved2 (SpitPublishingPublishable* self); -static void spit_publishing_publishable_real_reserved2 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved3 (SpitPublishingPublishable* self); -static void spit_publishing_publishable_real_reserved3 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved4 (SpitPublishingPublishable* self); -static void spit_publishing_publishable_real_reserved4 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved5 (SpitPublishingPublishable* self); -static void spit_publishing_publishable_real_reserved5 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved6 (SpitPublishingPublishable* self); -static void spit_publishing_publishable_real_reserved6 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved7 (SpitPublishingPublishable* self); -static void spit_publishing_publishable_real_reserved7 (SpitPublishingPublishable* self); -#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME "basename" -#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_TITLE "title" -#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_COMMENT "comment" -#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_EVENTCOMMENT "eventcomment" -SpitPublishingPublisher* spit_publishing_service_create_publisher (SpitPublishingService* self, - SpitPublishingPluginHost* host); -SpitPublishingPublisherMediaType spit_publishing_service_get_supported_media (SpitPublishingService* self); -void spit_publishing_service_reserved0 (SpitPublishingService* self); -static void spit_publishing_service_real_reserved0 (SpitPublishingService* self); -void spit_publishing_service_reserved1 (SpitPublishingService* self); -static void spit_publishing_service_real_reserved1 (SpitPublishingService* self); -void spit_publishing_service_reserved2 (SpitPublishingService* self); -static void spit_publishing_service_real_reserved2 (SpitPublishingService* self); -void spit_publishing_service_reserved3 (SpitPublishingService* self); -static void spit_publishing_service_real_reserved3 (SpitPublishingService* self); -void spit_publishing_service_reserved4 (SpitPublishingService* self); -static void spit_publishing_service_real_reserved4 (SpitPublishingService* self); -void spit_publishing_service_reserved5 (SpitPublishingService* self); -static void spit_publishing_service_real_reserved5 (SpitPublishingService* self); -void spit_publishing_service_reserved6 (SpitPublishingService* self); -static void spit_publishing_service_real_reserved6 (SpitPublishingService* self); -void spit_publishing_service_reserved7 (SpitPublishingService* self); -static void spit_publishing_service_real_reserved7 (SpitPublishingService* self); -GType spit_publishing_authenticator_get_type (void) G_GNUC_CONST; -void spit_publishing_authenticator_authenticate (SpitPublishingAuthenticator* self); -gboolean spit_publishing_authenticator_can_logout (SpitPublishingAuthenticator* self); -void spit_publishing_authenticator_logout (SpitPublishingAuthenticator* self); -void spit_publishing_authenticator_refresh (SpitPublishingAuthenticator* self); -GHashTable* spit_publishing_authenticator_get_authentication_parameter (SpitPublishingAuthenticator* self); -GType spit_publishing_authenticator_factory_get_type (void) G_GNUC_CONST; -GeeList* spit_publishing_authenticator_factory_get_available_authenticators (SpitPublishingAuthenticatorFactory* self); -SpitPublishingAuthenticator* spit_publishing_authenticator_factory_create (SpitPublishingAuthenticatorFactory* self, - const gchar* provider, - SpitPublishingPluginHost* host); - - -GQuark -spit_publishing_publishing_error_quark (void) -{ - return g_quark_from_static_string ("spit_publishing_publishing_error-quark"); -} - - -/** - * Describes the kinds of media a publishing service supports. - * - * Values can be masked together, for example: {{{(MediaType.PHOTO | MediaType.VIDEO)}}} - * indicates that a publishing service supports the upload of both photos and videos. - */ -GType -spit_publishing_publisher_media_type_get_type (void) -{ - static volatile gsize spit_publishing_publisher_media_type_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_publisher_media_type_type_id__volatile)) { - static const GEnumValue values[] = {{SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE, "SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE", "none"}, {SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO, "SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO", "photo"}, {SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO, "SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO", "video"}, {0, NULL, NULL}}; - GType spit_publishing_publisher_media_type_type_id; - spit_publishing_publisher_media_type_type_id = g_enum_register_static ("SpitPublishingPublisherMediaType", values); - g_once_init_leave (&spit_publishing_publisher_media_type_type_id__volatile, spit_publishing_publisher_media_type_type_id); - } - return spit_publishing_publisher_media_type_type_id__volatile; -} - - -/** - * Returns a {@link Service} object describing the service to which this connects. - */ -SpitPublishingService* -spit_publishing_publisher_get_service (SpitPublishingPublisher* self) -{ -#line 121 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self), NULL); -#line 121 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->get_service (self); -#line 509 "PublishingInterfaces.c" -} - - -/** - * Makes this publisher enter the running state and endows it with exclusive access - * to the shared services provided by the {@link PluginHost}. Through the host’s interface, - * this publisher can install user interface panes and query configuration information. - * Only running services should perform network operations. - */ -void -spit_publishing_publisher_start (SpitPublishingPublisher* self) -{ -#line 129 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 129 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->start (self); -#line 526 "PublishingInterfaces.c" -} - - -/** - * Returns true if this publisher is in the running state; false otherwise. - */ -gboolean -spit_publishing_publisher_is_running (SpitPublishingPublisher* self) -{ -#line 134 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self), FALSE); -#line 134 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->is_running (self); -#line 540 "PublishingInterfaces.c" -} - - -/** - * Causes this publisher to enter a non-running state. This publisher should stop all - * network operations and cease use of the shared services provided by the {@link PluginHost}. - */ -void -spit_publishing_publisher_stop (SpitPublishingPublisher* self) -{ -#line 140 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 140 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->stop (self); -#line 555 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publisher_real_reserved0 (SpitPublishingPublisher* self) -{ -} - - -void -spit_publishing_publisher_reserved0 (SpitPublishingPublisher* self) -{ -#line 145 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 145 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved0 (self); -#line 572 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publisher_real_reserved1 (SpitPublishingPublisher* self) -{ -} - - -void -spit_publishing_publisher_reserved1 (SpitPublishingPublisher* self) -{ -#line 146 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 146 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved1 (self); -#line 589 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publisher_real_reserved2 (SpitPublishingPublisher* self) -{ -} - - -void -spit_publishing_publisher_reserved2 (SpitPublishingPublisher* self) -{ -#line 147 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 147 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved2 (self); -#line 606 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publisher_real_reserved3 (SpitPublishingPublisher* self) -{ -} - - -void -spit_publishing_publisher_reserved3 (SpitPublishingPublisher* self) -{ -#line 148 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 148 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved3 (self); -#line 623 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publisher_real_reserved4 (SpitPublishingPublisher* self) -{ -} - - -void -spit_publishing_publisher_reserved4 (SpitPublishingPublisher* self) -{ -#line 149 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 149 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved4 (self); -#line 640 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publisher_real_reserved5 (SpitPublishingPublisher* self) -{ -} - - -void -spit_publishing_publisher_reserved5 (SpitPublishingPublisher* self) -{ -#line 150 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 150 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved5 (self); -#line 657 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publisher_real_reserved6 (SpitPublishingPublisher* self) -{ -} - - -void -spit_publishing_publisher_reserved6 (SpitPublishingPublisher* self) -{ -#line 151 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 151 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved6 (self); -#line 674 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publisher_real_reserved7 (SpitPublishingPublisher* self) -{ -} - - -void -spit_publishing_publisher_reserved7 (SpitPublishingPublisher* self) -{ -#line 152 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 152 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved7 (self); -#line 691 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publisher_base_init (SpitPublishingPublisherIface * iface) -{ -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - static gboolean initialized = FALSE; -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - if (!initialized) { -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - initialized = TRUE; -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved0 = spit_publishing_publisher_real_reserved0; -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved1 = spit_publishing_publisher_real_reserved1; -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved2 = spit_publishing_publisher_real_reserved2; -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved3 = spit_publishing_publisher_real_reserved3; -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved4 = spit_publishing_publisher_real_reserved4; -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved5 = spit_publishing_publisher_real_reserved5; -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved6 = spit_publishing_publisher_real_reserved6; -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved7 = spit_publishing_publisher_real_reserved7; -#line 720 "PublishingInterfaces.c" - } -} - - -/** - * Represents a connection to a publishing service. - * - * Developers of publishing plugins provide a class that implements this interface. At - * any given time, only one Publisher can be running. When a publisher is running, it is - * allowed to access the network and has exclusive use of the shared user-interface and - * configuration services provided by the {@link PluginHost}. Publishers are created in - * a non-running state and do not begin running until start( ) is invoked. Publishers - * run until stop( ) is invoked. - */ -GType -spit_publishing_publisher_get_type (void) -{ - static volatile gsize spit_publishing_publisher_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingPublisherIface), (GBaseInitFunc) spit_publishing_publisher_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_publishing_publisher_type_id; - spit_publishing_publisher_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingPublisher", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_publishing_publisher_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_publishing_publisher_type_id__volatile, spit_publishing_publisher_type_id); - } - return spit_publishing_publisher_type_id__volatile; -} - - -/** - * Describes how the on-screen publishing dialog box should look and behave when an associated - * pane is installed in the on-screen publishing dialog box. - */ -GType -spit_publishing_dialog_pane_geometry_options_get_type (void) -{ - static volatile gsize spit_publishing_dialog_pane_geometry_options_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_dialog_pane_geometry_options_type_id__volatile)) { - static const GEnumValue values[] = {{SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE, "SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE", "none"}, {SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE, "SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE", "extended-size"}, {SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE, "SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE", "resizable"}, {SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE, "SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE", "colossal-size"}, {0, NULL, NULL}}; - GType spit_publishing_dialog_pane_geometry_options_type_id; - spit_publishing_dialog_pane_geometry_options_type_id = g_enum_register_static ("SpitPublishingDialogPaneGeometryOptions", values); - g_once_init_leave (&spit_publishing_dialog_pane_geometry_options_type_id__volatile, spit_publishing_dialog_pane_geometry_options_type_id); - } - return spit_publishing_dialog_pane_geometry_options_type_id__volatile; -} - - -/** - * Returns the Gtk.Widget that is this pane's on-screen representation. - */ -GtkWidget* -spit_publishing_dialog_pane_get_widget (SpitPublishingDialogPane* self) -{ -#line 197 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self), NULL); -#line 197 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->get_widget (self); -#line 778 "PublishingInterfaces.c" -} - - -/** - * Returns a {@link GeometryOptions} bitfield describing how the on-screen publishing dialog - * box should look and behave when this pane is installed. - */ -SpitPublishingDialogPaneGeometryOptions -spit_publishing_dialog_pane_get_preferred_geometry (SpitPublishingDialogPane* self) -{ -#line 203 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self), 0); -#line 203 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->get_preferred_geometry (self); -#line 793 "PublishingInterfaces.c" -} - - -/** - * Invoked automatically by Shotwell when this pane has been installed into the on-screen - * publishing dialog box and become visible to the user. - */ -void -spit_publishing_dialog_pane_on_pane_installed (SpitPublishingDialogPane* self) -{ -#line 209 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 209 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->on_pane_installed (self); -#line 808 "PublishingInterfaces.c" -} - - -/** - * Invoked automatically by Shotwell when this pane has been removed from the on-screen - * publishing dialog box and is no longer visible to the user. - */ -void -spit_publishing_dialog_pane_on_pane_uninstalled (SpitPublishingDialogPane* self) -{ -#line 215 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 215 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->on_pane_uninstalled (self); -#line 823 "PublishingInterfaces.c" -} - - -static void -spit_publishing_dialog_pane_real_reserved0 (SpitPublishingDialogPane* self) -{ -} - - -void -spit_publishing_dialog_pane_reserved0 (SpitPublishingDialogPane* self) -{ -#line 220 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 220 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved0 (self); -#line 840 "PublishingInterfaces.c" -} - - -static void -spit_publishing_dialog_pane_real_reserved1 (SpitPublishingDialogPane* self) -{ -} - - -void -spit_publishing_dialog_pane_reserved1 (SpitPublishingDialogPane* self) -{ -#line 221 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 221 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved1 (self); -#line 857 "PublishingInterfaces.c" -} - - -static void -spit_publishing_dialog_pane_real_reserved2 (SpitPublishingDialogPane* self) -{ -} - - -void -spit_publishing_dialog_pane_reserved2 (SpitPublishingDialogPane* self) -{ -#line 222 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 222 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved2 (self); -#line 874 "PublishingInterfaces.c" -} - - -static void -spit_publishing_dialog_pane_real_reserved3 (SpitPublishingDialogPane* self) -{ -} - - -void -spit_publishing_dialog_pane_reserved3 (SpitPublishingDialogPane* self) -{ -#line 223 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 223 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved3 (self); -#line 891 "PublishingInterfaces.c" -} - - -static void -spit_publishing_dialog_pane_real_reserved4 (SpitPublishingDialogPane* self) -{ -} - - -void -spit_publishing_dialog_pane_reserved4 (SpitPublishingDialogPane* self) -{ -#line 224 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 224 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved4 (self); -#line 908 "PublishingInterfaces.c" -} - - -static void -spit_publishing_dialog_pane_real_reserved5 (SpitPublishingDialogPane* self) -{ -} - - -void -spit_publishing_dialog_pane_reserved5 (SpitPublishingDialogPane* self) -{ -#line 225 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 225 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved5 (self); -#line 925 "PublishingInterfaces.c" -} - - -static void -spit_publishing_dialog_pane_real_reserved6 (SpitPublishingDialogPane* self) -{ -} - - -void -spit_publishing_dialog_pane_reserved6 (SpitPublishingDialogPane* self) -{ -#line 226 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 226 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved6 (self); -#line 942 "PublishingInterfaces.c" -} - - -static void -spit_publishing_dialog_pane_real_reserved7 (SpitPublishingDialogPane* self) -{ -} - - -void -spit_publishing_dialog_pane_reserved7 (SpitPublishingDialogPane* self) -{ -#line 227 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 227 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved7 (self); -#line 959 "PublishingInterfaces.c" -} - - -static void -spit_publishing_dialog_pane_base_init (SpitPublishingDialogPaneIface * iface) -{ -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - static gboolean initialized = FALSE; -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - if (!initialized) { -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - initialized = TRUE; -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved0 = spit_publishing_dialog_pane_real_reserved0; -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved1 = spit_publishing_dialog_pane_real_reserved1; -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved2 = spit_publishing_dialog_pane_real_reserved2; -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved3 = spit_publishing_dialog_pane_real_reserved3; -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved4 = spit_publishing_dialog_pane_real_reserved4; -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved5 = spit_publishing_dialog_pane_real_reserved5; -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved6 = spit_publishing_dialog_pane_real_reserved6; -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved7 = spit_publishing_dialog_pane_real_reserved7; -#line 988 "PublishingInterfaces.c" - } -} - - -/** - * Encapsulates a pane that can be installed in the on-screen publishing dialog box to - * communicate status to and to get information from the user. - * - */ -GType -spit_publishing_dialog_pane_get_type (void) -{ - static volatile gsize spit_publishing_dialog_pane_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_dialog_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingDialogPaneIface), (GBaseInitFunc) spit_publishing_dialog_pane_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_publishing_dialog_pane_type_id; - spit_publishing_dialog_pane_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingDialogPane", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_publishing_dialog_pane_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_publishing_dialog_pane_type_id__volatile, spit_publishing_dialog_pane_type_id); - } - return spit_publishing_dialog_pane_type_id__volatile; -} - - -/** - * Specifies the label text on the push button control that appears in the - * lower-right-hand corner of the on-screen publishing dialog box. - */ -GType -spit_publishing_plugin_host_button_mode_get_type (void) -{ - static volatile gsize spit_publishing_plugin_host_button_mode_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_plugin_host_button_mode_type_id__volatile)) { - static const GEnumValue values[] = {{SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE, "SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE", "close"}, {SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL, "SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL", "cancel"}, {0, NULL, NULL}}; - GType spit_publishing_plugin_host_button_mode_type_id; - spit_publishing_plugin_host_button_mode_type_id = g_enum_register_static ("SpitPublishingPluginHostButtonMode", values); - g_once_init_leave (&spit_publishing_plugin_host_button_mode_type_id__volatile, spit_publishing_plugin_host_button_mode_type_id); - } - return spit_publishing_plugin_host_button_mode_type_id__volatile; -} - - -/** - * Notifies the user that an unrecoverable publishing error has occurred and halts - * the publishing process. - * - * @param err An error object that describes the kind of error that occurred. - */ -void -spit_publishing_plugin_host_post_error (SpitPublishingPluginHost* self, - GError* err) -{ -#line 277 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 277 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->post_error (self, err); -#line 1045 "PublishingInterfaces.c" -} - - -/** - * Halts the publishing process. - * - * Calling this method stops all network activity and hides the on-screen publishing - * dialog box. - */ -void -spit_publishing_plugin_host_stop_publishing (SpitPublishingPluginHost* self) -{ -#line 285 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 285 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->stop_publishing (self); -#line 1062 "PublishingInterfaces.c" -} - - -/** - * Returns a reference to the {@link Publisher} object that this is currently hosting. - */ -SpitPublishingPublisher* -spit_publishing_plugin_host_get_publisher (SpitPublishingPluginHost* self) -{ -#line 290 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self), NULL); -#line 290 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->get_publisher (self); -#line 1076 "PublishingInterfaces.c" -} - - -/** - * Attempts to install a pane in the on-screen publishing dialog box, making the pane visible - * and allowing it to interact with the user. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param pane the pane to install - * - * @param mode allows you to set the text displayed on the close/cancel button in the - * lower-right-hand corner of the on-screen publishing dialog box when pane is installed. - * If mode is ButtonMode.CLOSE, the button will have the title "Close." If mode is - * ButtonMode.CANCEL, the button will be titled "Cancel." You should set mode depending on - * whether a cancellable action is in progress. For example, if your publisher is in the - * middle of uploading 3 of 8 videos, then mode should be ButtonMode.CANCEL. However, if - * the publishing operation has completed and the success pane is displayed, then mode - * should be ButtonMode.CLOSE, because all cancellable publishing actions have already - * occurred. - */ -void -spit_publishing_plugin_host_install_dialog_pane (SpitPublishingPluginHost* self, - SpitPublishingDialogPane* pane, - SpitPublishingPluginHostButtonMode mode) -{ -#line 310 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 310 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_dialog_pane (self, pane, mode); -#line 1107 "PublishingInterfaces.c" -} - - -/** - * Attempts to install a pane in the on-screen publishing dialog box that contains - * static text. - * - * The text appears centered in the publishing dialog box and is drawn in - * the system font. This is a convenience method only; similar results could be - * achieved by manually constructing a Gtk.Label widget, wrapping it inside a - * {@link DialogPane}, and installing it manually with a call to - * install_dialog_pane( ). To provide visual consistency across publishing services, - * however, always use this convenience method instead of constructing label panes when - * you need to display static text to the user. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param message the text to show in the pane - * - * @param mode allows you to set the text displayed on the close/cancel button in the - * lower-right-hand corner of the on-screen publishing dialog box when pane is installed. - * If mode is ButtonMode.CLOSE, the button will have the title "Close." If mode is - * ButtonMode.CANCEL, the button will be titled "Cancel." You should set mode depending on - * whether a cancellable action is in progress. For example, if your publisher is in the - * middle of uploading 3 of 8 videos, then mode should be ButtonMode.CANCEL. However, if - * the publishing operation has completed and the success pane is displayed, then mode - * should be ButtonMode.CLOSE, because all cancellable publishing actions have already - * occurred. - */ -void -spit_publishing_plugin_host_install_static_message_pane (SpitPublishingPluginHost* self, - const gchar* message, - SpitPublishingPluginHostButtonMode mode) -{ -#line 339 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 339 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_static_message_pane (self, message, mode); -#line 1146 "PublishingInterfaces.c" -} - - -/** - * Works just like {@link install_static_message_pane} but allows markup to contain - * Pango text formatting tags as well as unstyled text. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param markup the text to show in the pane, marked up with Pango formatting tags. - * - * @param mode allows you to set the text displayed on the close/cancel button in the - * lower-right-hand corner of the on-screen publishing dialog box when pane is installed. - * If mode is ButtonMode.CLOSE, the button will have the title "Close." If mode is - * ButtonMode.CANCEL, the button will be titled "Cancel." You should set mode depending on - * whether a cancellable action is in progress. For example, if your publisher is in the - * middle of uploading 3 of 8 videos, then mode should be ButtonMode.CANCEL. However, if - * the publishing operation has completed and the success pane is displayed, then mode - * should be ButtonMode.CLOSE, because all cancellable publishing actions have already - * occurred. - */ -void -spit_publishing_plugin_host_install_pango_message_pane (SpitPublishingPluginHost* self, - const gchar* markup, - SpitPublishingPluginHostButtonMode mode) -{ -#line 360 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 360 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_pango_message_pane (self, markup, mode); -#line 1177 "PublishingInterfaces.c" -} - - -/** - * Attempts to install a pane in the on-screen publishing dialog box notifying the user - * that his or her publishing operation completed successfully. - * - * The text displayed depends on the type of media the current publishing service - * supports. To provide visual consistency across publishing services and to allow - * Shotwell to handle internationalization, always use this convenience method; don’t - * contruct and install success panes manually. - * - * If an error has posted, the {@link PluginHost} will not honor - * this request. - */ -void -spit_publishing_plugin_host_install_success_pane (SpitPublishingPluginHost* self) -{ -#line 375 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 375 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_success_pane (self); -#line 1200 "PublishingInterfaces.c" -} - - -/** - * Attempts to install a pane displaying the static text “Fetching account information...” - * in the on-screen publishing dialog box, making it visible to the user. - * - * This is a convenience method only; similar results could be achieved by calling - * {@link install_static_message_pane} with an appropriate text argument. To provide - * visual consistency across publishing services and to allow Shotwell to handle - * internationalization, however, you should always use this convenience method whenever - * you need to tell the user that you’re querying account information over the network. - * Queries such as this are almost always performed immediately after the user has logged - * in to the remote service. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - */ -void -spit_publishing_plugin_host_install_account_fetch_wait_pane (SpitPublishingPluginHost* self) -{ -#line 391 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 391 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_account_fetch_wait_pane (self); -#line 1225 "PublishingInterfaces.c" -} - - -/** - * Works just like {@link install_account_fetch_wait_pane} but displays the static text - * “Logging in...“ - * - * As with {@link install_account_fetch_wait_pane}, this is a convenience method, but - * you should you use it provide to visual consistency and to let Shotwell handle - * internationalization. See the description of {@link install_account_fetch_wait_pane} - * for more information. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - */ -void -spit_publishing_plugin_host_install_login_wait_pane (SpitPublishingPluginHost* self) -{ -#line 405 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 405 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_login_wait_pane (self); -#line 1247 "PublishingInterfaces.c" -} - - -/** - * Attempts to install a pane displaying the text 'welcome_message' above a push - * button labeled “Login” in the on-screen publishing dialog box, making it visible to the - * user. - * - * When the user clicks the “Login” button, you’ll be notified of the user’s action through - * the callback 'on_login_clicked'. Every Publisher should provide a welcome pane to - * introduce the service and explain service-specific features or restrictions. To provide - * visual consistency across publishing services and to allow Shotwell to handle - * internationalization, always use this convenience method; don’t contruct and install - * welcome panes manually. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param welcome_message the text to be displayed above a push button labeled “Login” - * in the on-screen publishing dialog box. - * - * @param on_login_clicked specifies the callback that is invoked when the user clicks - * the “Login” button. - */ -void -spit_publishing_plugin_host_install_welcome_pane (SpitPublishingPluginHost* self, - const gchar* welcome_message, - SpitPublishingLoginCallback on_login_clicked, - void* on_login_clicked_target) -{ -#line 427 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 427 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_welcome_pane (self, welcome_message, on_login_clicked, on_login_clicked_target); -#line 1281 "PublishingInterfaces.c" -} - - -/** - * Toggles whether the service selector combo box in the upper-right-hand corner of the - * on-screen publishing dialog box is sensitive to input. - * - * Publishers should make the service selector box insensitive to input when they are performing - * non-interruptible file or network operations, since switching to another publishing - * service will halt whatever service is currently running. Under certain circumstances, - * the {@link PluginHost} may not honor this request. - * - * @param is_locked when is_locked is true, the service selector combo box is made insensitive. - * It appears greyed out and the user is prevented from switching to another publishing service. - * When is_locked is false, the combo box is sensitive, allowing the user to freely switch - * from the current service to another service. - */ -void -spit_publishing_plugin_host_set_service_locked (SpitPublishingPluginHost* self, - gboolean is_locked) -{ -#line 444 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 444 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->set_service_locked (self, is_locked); -#line 1307 "PublishingInterfaces.c" -} - - -/** - * Makes the designated widget the default widget for the publishing dialog. - * - * After a call to this method, the designated widget will be activated whenever the user - * presses the [ENTER] key anywhere in the on-screen publishing dialog box. Under certain - * circumstances, the {@link PluginHost} may not honor this request. - * - * @param widget a reference to the widget to designate as the default widget for the - * publishing dialog. - */ -void -spit_publishing_plugin_host_set_dialog_default_widget (SpitPublishingPluginHost* self, - GtkWidget* widget) -{ -#line 456 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 456 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->set_dialog_default_widget (self, widget); -#line 1329 "PublishingInterfaces.c" -} - - -/** - * Returns an array of the publishable media items that the user has selected for upload to the - * remote service. - */ -SpitPublishingPublishable** -spit_publishing_plugin_host_get_publishables (SpitPublishingPluginHost* self, - int* result_length1) -{ -#line 462 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self), NULL); -#line 462 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->get_publishables (self, result_length1); -#line 1345 "PublishingInterfaces.c" -} - - -/** - * Writes all of the publishable media items that the user has selected for upload to the - * remote service to a temporary directory on a local disk. - * - * You should call this method immediately before sending the publishable media items to the - * remote service over the network. Because serializing several megabytes of data is a - * potentially lengthy operation, calling this method installs an activity status pane in - * the on-screen publishing dialog box. The activity status pane displays a progress bar along - * with a string of informational text. - * - * Because sending items over the network to the remote service is also a potentially lengthy - * operation, you should leave the activity status pane installed in the on-screen publishing - * dialog box until this task is finished. Periodically during the sending process, you should - * report to the user on the progress of his or her upload. You can do this by invoking the - * returned {@link ProgressCallback} delegate. - * - * After calling this method, the activity status pane that this method installs remains - * displayed in the on-screen publishing dialog box until you install a new pane. - * - * @param content_major_axis when serializing publishable media items that are photos, - * ensure that neither the width nor the height of the serialized - * photo is greater than content_major_axis pixels. The value of - * this parameter has no effect on video publishables. - * - * @param strip_metadata when serializing publishable media items that are photos, if - * strip_metadata is true, all EXIF, IPTC, and XMP metadata will be - * removed from the serialized file. If strip_metadata is false, all - * metadata will be left intact. The value of this parameter has no - * effect on video publishables. - */ -SpitPublishingProgressCallback -spit_publishing_plugin_host_serialize_publishables (SpitPublishingPluginHost* self, - gint content_major_axis, - gboolean strip_metadata, - void** result_target, - GDestroyNotify* result_target_destroy_notify) -{ -#line 494 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self), NULL); -#line 494 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->serialize_publishables (self, content_major_axis, strip_metadata, result_target, result_target_destroy_notify); -#line 1390 "PublishingInterfaces.c" -} - - -/** - * Returns a {@link Publisher.MediaType} bitfield describing which kinds of media are present - * in the set of publishable media items that the user has selected for upload to the remote - * service. - */ -SpitPublishingPublisherMediaType -spit_publishing_plugin_host_get_publishable_media_type (SpitPublishingPluginHost* self) -{ -#line 502 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self), 0); -#line 502 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->get_publishable_media_type (self); -#line 1406 "PublishingInterfaces.c" -} - - -static void -spit_publishing_plugin_host_real_reserved0 (SpitPublishingPluginHost* self) -{ -} - - -void -spit_publishing_plugin_host_reserved0 (SpitPublishingPluginHost* self) -{ -#line 507 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 507 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved0 (self); -#line 1423 "PublishingInterfaces.c" -} - - -static void -spit_publishing_plugin_host_real_reserved1 (SpitPublishingPluginHost* self) -{ -} - - -void -spit_publishing_plugin_host_reserved1 (SpitPublishingPluginHost* self) -{ -#line 508 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 508 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved1 (self); -#line 1440 "PublishingInterfaces.c" -} - - -static void -spit_publishing_plugin_host_real_reserved2 (SpitPublishingPluginHost* self) -{ -} - - -void -spit_publishing_plugin_host_reserved2 (SpitPublishingPluginHost* self) -{ -#line 509 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 509 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved2 (self); -#line 1457 "PublishingInterfaces.c" -} - - -static void -spit_publishing_plugin_host_real_reserved3 (SpitPublishingPluginHost* self) -{ -} - - -void -spit_publishing_plugin_host_reserved3 (SpitPublishingPluginHost* self) -{ -#line 510 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 510 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved3 (self); -#line 1474 "PublishingInterfaces.c" -} - - -static void -spit_publishing_plugin_host_real_reserved4 (SpitPublishingPluginHost* self) -{ -} - - -void -spit_publishing_plugin_host_reserved4 (SpitPublishingPluginHost* self) -{ -#line 511 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 511 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved4 (self); -#line 1491 "PublishingInterfaces.c" -} - - -static void -spit_publishing_plugin_host_real_reserved5 (SpitPublishingPluginHost* self) -{ -} - - -void -spit_publishing_plugin_host_reserved5 (SpitPublishingPluginHost* self) -{ -#line 512 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 512 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved5 (self); -#line 1508 "PublishingInterfaces.c" -} - - -static void -spit_publishing_plugin_host_real_reserved6 (SpitPublishingPluginHost* self) -{ -} - - -void -spit_publishing_plugin_host_reserved6 (SpitPublishingPluginHost* self) -{ -#line 513 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 513 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved6 (self); -#line 1525 "PublishingInterfaces.c" -} - - -static void -spit_publishing_plugin_host_real_reserved7 (SpitPublishingPluginHost* self) -{ -} - - -void -spit_publishing_plugin_host_reserved7 (SpitPublishingPluginHost* self) -{ -#line 514 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 514 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved7 (self); -#line 1542 "PublishingInterfaces.c" -} - - -static void -spit_publishing_plugin_host_base_init (SpitPublishingPluginHostIface * iface) -{ -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - static gboolean initialized = FALSE; -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - if (!initialized) { -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - initialized = TRUE; -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved0 = spit_publishing_plugin_host_real_reserved0; -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved1 = spit_publishing_plugin_host_real_reserved1; -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved2 = spit_publishing_plugin_host_real_reserved2; -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved3 = spit_publishing_plugin_host_real_reserved3; -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved4 = spit_publishing_plugin_host_real_reserved4; -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved5 = spit_publishing_plugin_host_real_reserved5; -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved6 = spit_publishing_plugin_host_real_reserved6; -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved7 = spit_publishing_plugin_host_real_reserved7; -#line 1571 "PublishingInterfaces.c" - } -} - - -/** - * Manages and provides services for publishing plugins. - * - * Implemented inside Shotwell, the PluginHost provides an interface through which the - * developers of publishing plugins can query and make changes to the publishing - * environment. For example, through the PluginHost, plugins can get a list of the photos - * and videos to be published, install and remove user-interface panes in the publishing - * dialog box, and request that the items to be uploaded be serialized to a temporary - * directory on disk. Plugins can use the services of the PluginHost only when their - * {@link Publisher} is in the running state. This ensures that non-running publishers - * don’t destructively interfere with the actively running publisher. - */ -GType -spit_publishing_plugin_host_get_type (void) -{ - static volatile gsize spit_publishing_plugin_host_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_plugin_host_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingPluginHostIface), (GBaseInitFunc) spit_publishing_plugin_host_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_publishing_plugin_host_type_id; - spit_publishing_plugin_host_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingPluginHost", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_publishing_plugin_host_type_id, G_TYPE_OBJECT); - g_type_interface_add_prerequisite (spit_publishing_plugin_host_type_id, SPIT_TYPE_HOST_INTERFACE); - g_once_init_leave (&spit_publishing_plugin_host_type_id__volatile, spit_publishing_plugin_host_type_id); - } - return spit_publishing_plugin_host_type_id__volatile; -} - - -/** - * Returns a handle to the file on disk to which this publishable's data has been - * serialized. - * - * You should use this file handle to read into memory the binary data you will send over - * the network to the remote publishing service when this publishable is uploaded. - */ -GFile* -spit_publishing_publishable_get_serialized_file (SpitPublishingPublishable* self) -{ -#line 535 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL); -#line 535 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_serialized_file (self); -#line 1618 "PublishingInterfaces.c" -} - - -/** - * Returns a name that can be used to identify this publishable to the remote service. - * If the publishing host cannot derive a sensible name, this method will - * return an empty string. Plugins should be able to handle that situation - * and provide a fallback value. One possible option for a fallback is: - * get_param_string(Spit.Publishing.Publishable.PARAM_STRING_BASENAME) - */ -gchar* -spit_publishing_publishable_get_publishing_name (SpitPublishingPublishable* self) -{ -#line 544 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL); -#line 544 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_publishing_name (self); -#line 1636 "PublishingInterfaces.c" -} - - -/** - * Returns a string value from the publishable corresponding with the parameter name - * provided, or null if there is no value for this name. - */ -gchar* -spit_publishing_publishable_get_param_string (SpitPublishingPublishable* self, - const gchar* name) -{ -#line 550 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL); -#line 550 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_param_string (self, name); -#line 1652 "PublishingInterfaces.c" -} - - -/** - * Returns an array of strings that should be used to tag or mark this publishable on the - * remote service, or null if this publishable has no tags or markings. - */ -gchar** -spit_publishing_publishable_get_publishing_keywords (SpitPublishingPublishable* self, - int* result_length1) -{ -#line 556 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL); -#line 556 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_publishing_keywords (self, result_length1); -#line 1668 "PublishingInterfaces.c" -} - - -/** - * Returns the kind of media item this publishable encapsulates. - */ -SpitPublishingPublisherMediaType -spit_publishing_publishable_get_media_type (SpitPublishingPublishable* self) -{ -#line 561 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), 0); -#line 561 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_media_type (self); -#line 1682 "PublishingInterfaces.c" -} - - -/** - * Returns the creation timestamp on the file. - */ -GDateTime* -spit_publishing_publishable_get_exposure_date_time (SpitPublishingPublishable* self) -{ -#line 566 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL); -#line 566 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_exposure_date_time (self); -#line 1696 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publishable_real_reserved0 (SpitPublishingPublishable* self) -{ -} - - -void -spit_publishing_publishable_reserved0 (SpitPublishingPublishable* self) -{ -#line 571 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self)); -#line 571 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved0 (self); -#line 1713 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publishable_real_reserved1 (SpitPublishingPublishable* self) -{ -} - - -void -spit_publishing_publishable_reserved1 (SpitPublishingPublishable* self) -{ -#line 572 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self)); -#line 572 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved1 (self); -#line 1730 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publishable_real_reserved2 (SpitPublishingPublishable* self) -{ -} - - -void -spit_publishing_publishable_reserved2 (SpitPublishingPublishable* self) -{ -#line 573 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self)); -#line 573 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved2 (self); -#line 1747 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publishable_real_reserved3 (SpitPublishingPublishable* self) -{ -} - - -void -spit_publishing_publishable_reserved3 (SpitPublishingPublishable* self) -{ -#line 574 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self)); -#line 574 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved3 (self); -#line 1764 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publishable_real_reserved4 (SpitPublishingPublishable* self) -{ -} - - -void -spit_publishing_publishable_reserved4 (SpitPublishingPublishable* self) -{ -#line 575 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self)); -#line 575 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved4 (self); -#line 1781 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publishable_real_reserved5 (SpitPublishingPublishable* self) -{ -} - - -void -spit_publishing_publishable_reserved5 (SpitPublishingPublishable* self) -{ -#line 576 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self)); -#line 576 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved5 (self); -#line 1798 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publishable_real_reserved6 (SpitPublishingPublishable* self) -{ -} - - -void -spit_publishing_publishable_reserved6 (SpitPublishingPublishable* self) -{ -#line 577 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self)); -#line 577 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved6 (self); -#line 1815 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publishable_real_reserved7 (SpitPublishingPublishable* self) -{ -} - - -void -spit_publishing_publishable_reserved7 (SpitPublishingPublishable* self) -{ -#line 578 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self)); -#line 578 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved7 (self); -#line 1832 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publishable_base_init (SpitPublishingPublishableIface * iface) -{ -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - static gboolean initialized = FALSE; -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - if (!initialized) { -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - initialized = TRUE; -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved0 = spit_publishing_publishable_real_reserved0; -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved1 = spit_publishing_publishable_real_reserved1; -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved2 = spit_publishing_publishable_real_reserved2; -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved3 = spit_publishing_publishable_real_reserved3; -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved4 = spit_publishing_publishable_real_reserved4; -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved5 = spit_publishing_publishable_real_reserved5; -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved6 = spit_publishing_publishable_real_reserved6; -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved7 = spit_publishing_publishable_real_reserved7; -#line 1861 "PublishingInterfaces.c" - } -} - - -/** - * Describes an underlying media item (such as a photo or a video) that your plugin - * uploads to a remote publishing service. - */ -GType -spit_publishing_publishable_get_type (void) -{ - static volatile gsize spit_publishing_publishable_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_publishable_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingPublishableIface), (GBaseInitFunc) spit_publishing_publishable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_publishing_publishable_type_id; - spit_publishing_publishable_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingPublishable", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_publishing_publishable_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_publishing_publishable_type_id__volatile, spit_publishing_publishable_type_id); - } - return spit_publishing_publishable_type_id__volatile; -} - - -/** - * A factory method that instantiates and returns a new {@link Publisher} object that - * encapsulates a connection to the remote publishing service that this Service describes. - */ -SpitPublishingPublisher* -spit_publishing_service_create_publisher (SpitPublishingService* self, - SpitPublishingPluginHost* host) -{ -#line 591 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (self), NULL); -#line 591 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->create_publisher (self, host); -#line 1897 "PublishingInterfaces.c" -} - - -/** - * Returns the kinds of media that this service can work with. - */ -SpitPublishingPublisherMediaType -spit_publishing_service_get_supported_media (SpitPublishingService* self) -{ -#line 596 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (self), 0); -#line 596 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->get_supported_media (self); -#line 1911 "PublishingInterfaces.c" -} - - -static void -spit_publishing_service_real_reserved0 (SpitPublishingService* self) -{ -} - - -void -spit_publishing_service_reserved0 (SpitPublishingService* self) -{ -#line 601 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self)); -#line 601 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved0 (self); -#line 1928 "PublishingInterfaces.c" -} - - -static void -spit_publishing_service_real_reserved1 (SpitPublishingService* self) -{ -} - - -void -spit_publishing_service_reserved1 (SpitPublishingService* self) -{ -#line 602 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self)); -#line 602 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved1 (self); -#line 1945 "PublishingInterfaces.c" -} - - -static void -spit_publishing_service_real_reserved2 (SpitPublishingService* self) -{ -} - - -void -spit_publishing_service_reserved2 (SpitPublishingService* self) -{ -#line 603 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self)); -#line 603 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved2 (self); -#line 1962 "PublishingInterfaces.c" -} - - -static void -spit_publishing_service_real_reserved3 (SpitPublishingService* self) -{ -} - - -void -spit_publishing_service_reserved3 (SpitPublishingService* self) -{ -#line 604 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self)); -#line 604 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved3 (self); -#line 1979 "PublishingInterfaces.c" -} - - -static void -spit_publishing_service_real_reserved4 (SpitPublishingService* self) -{ -} - - -void -spit_publishing_service_reserved4 (SpitPublishingService* self) -{ -#line 605 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self)); -#line 605 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved4 (self); -#line 1996 "PublishingInterfaces.c" -} - - -static void -spit_publishing_service_real_reserved5 (SpitPublishingService* self) -{ -} - - -void -spit_publishing_service_reserved5 (SpitPublishingService* self) -{ -#line 606 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self)); -#line 606 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved5 (self); -#line 2013 "PublishingInterfaces.c" -} - - -static void -spit_publishing_service_real_reserved6 (SpitPublishingService* self) -{ -} - - -void -spit_publishing_service_reserved6 (SpitPublishingService* self) -{ -#line 607 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self)); -#line 607 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved6 (self); -#line 2030 "PublishingInterfaces.c" -} - - -static void -spit_publishing_service_real_reserved7 (SpitPublishingService* self) -{ -} - - -void -spit_publishing_service_reserved7 (SpitPublishingService* self) -{ -#line 608 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self)); -#line 608 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved7 (self); -#line 2047 "PublishingInterfaces.c" -} - - -static void -spit_publishing_service_base_init (SpitPublishingServiceIface * iface) -{ -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - static gboolean initialized = FALSE; -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - if (!initialized) { -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - initialized = TRUE; -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved0 = spit_publishing_service_real_reserved0; -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved1 = spit_publishing_service_real_reserved1; -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved2 = spit_publishing_service_real_reserved2; -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved3 = spit_publishing_service_real_reserved3; -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved4 = spit_publishing_service_real_reserved4; -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved5 = spit_publishing_service_real_reserved5; -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved6 = spit_publishing_service_real_reserved6; -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved7 = spit_publishing_service_real_reserved7; -#line 2076 "PublishingInterfaces.c" - } -} - - -/** - * Describes the features and capabilities of a remote publishing service. - * - * Developers of publishing plugins provide a class that implements this interface. - */ -GType -spit_publishing_service_get_type (void) -{ - static volatile gsize spit_publishing_service_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingServiceIface), (GBaseInitFunc) spit_publishing_service_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_publishing_service_type_id; - spit_publishing_service_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingService", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_publishing_service_type_id, G_TYPE_OBJECT); - g_type_interface_add_prerequisite (spit_publishing_service_type_id, SPIT_TYPE_PLUGGABLE); - g_once_init_leave (&spit_publishing_service_type_id__volatile, spit_publishing_service_type_id); - } - return spit_publishing_service_type_id__volatile; -} - - -void -spit_publishing_authenticator_authenticate (SpitPublishingAuthenticator* self) -{ -#line 615 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (self)); -#line 615 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE (self)->authenticate (self); -#line 2109 "PublishingInterfaces.c" -} - - -gboolean -spit_publishing_authenticator_can_logout (SpitPublishingAuthenticator* self) -{ -#line 616 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (self), FALSE); -#line 616 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE (self)->can_logout (self); -#line 2120 "PublishingInterfaces.c" -} - - -void -spit_publishing_authenticator_logout (SpitPublishingAuthenticator* self) -{ -#line 617 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (self)); -#line 617 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE (self)->logout (self); -#line 2131 "PublishingInterfaces.c" -} - - -void -spit_publishing_authenticator_refresh (SpitPublishingAuthenticator* self) -{ -#line 618 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (self)); -#line 618 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE (self)->refresh (self); -#line 2142 "PublishingInterfaces.c" -} - - -GHashTable* -spit_publishing_authenticator_get_authentication_parameter (SpitPublishingAuthenticator* self) -{ -#line 620 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (self), NULL); -#line 620 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE (self)->get_authentication_parameter (self); -#line 2153 "PublishingInterfaces.c" -} - - -static void -spit_publishing_authenticator_base_init (SpitPublishingAuthenticatorIface * iface) -{ -#line 611 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - static gboolean initialized = FALSE; -#line 611 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - if (!initialized) { -#line 611 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - initialized = TRUE; -#line 611 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - spit_publishing_authenticator_signals[SPIT_PUBLISHING_AUTHENTICATOR_AUTHENTICATED_SIGNAL] = g_signal_new ("authenticated", SPIT_PUBLISHING_TYPE_AUTHENTICATOR, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 611 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - spit_publishing_authenticator_signals[SPIT_PUBLISHING_AUTHENTICATOR_AUTHENTICATION_FAILED_SIGNAL] = g_signal_new ("authentication-failed", SPIT_PUBLISHING_TYPE_AUTHENTICATOR, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 2170 "PublishingInterfaces.c" - } -} - - -GType -spit_publishing_authenticator_get_type (void) -{ - static volatile gsize spit_publishing_authenticator_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_authenticator_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingAuthenticatorIface), (GBaseInitFunc) spit_publishing_authenticator_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_publishing_authenticator_type_id; - spit_publishing_authenticator_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingAuthenticator", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_publishing_authenticator_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_publishing_authenticator_type_id__volatile, spit_publishing_authenticator_type_id); - } - return spit_publishing_authenticator_type_id__volatile; -} - - -GeeList* -spit_publishing_authenticator_factory_get_available_authenticators (SpitPublishingAuthenticatorFactory* self) -{ -#line 628 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR_FACTORY (self), NULL); -#line 628 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_AUTHENTICATOR_FACTORY_GET_INTERFACE (self)->get_available_authenticators (self); -#line 2197 "PublishingInterfaces.c" -} - - -SpitPublishingAuthenticator* -spit_publishing_authenticator_factory_create (SpitPublishingAuthenticatorFactory* self, - const gchar* provider, - SpitPublishingPluginHost* host) -{ -#line 629 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR_FACTORY (self), NULL); -#line 629 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_AUTHENTICATOR_FACTORY_GET_INTERFACE (self)->create (self, provider, host); -#line 2210 "PublishingInterfaces.c" -} - - -static void -spit_publishing_authenticator_factory_base_init (SpitPublishingAuthenticatorFactoryIface * iface) -{ -#line 623 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - static gboolean initialized = FALSE; -#line 623 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - if (!initialized) { -#line 623 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - initialized = TRUE; -#line 2223 "PublishingInterfaces.c" - } -} - - -GType -spit_publishing_authenticator_factory_get_type (void) -{ - static volatile gsize spit_publishing_authenticator_factory_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_authenticator_factory_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingAuthenticatorFactoryIface), (GBaseInitFunc) spit_publishing_authenticator_factory_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_publishing_authenticator_factory_type_id; - spit_publishing_authenticator_factory_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingAuthenticatorFactory", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_publishing_authenticator_factory_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_publishing_authenticator_factory_type_id__volatile, spit_publishing_authenticator_factory_type_id); - } - return spit_publishing_authenticator_factory_type_id__volatile; -} - - - diff --git a/src/plugins/SpitInterfaces.c b/src/plugins/SpitInterfaces.c deleted file mode 100644 index d890484..0000000 --- a/src/plugins/SpitInterfaces.c +++ /dev/null @@ -1,1548 +0,0 @@ -/* SpitInterfaces.c generated by valac 0.40.4, the Vala compiler - * generated from SpitInterfaces.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 <glib.h> -#include <glib-object.h> -#include <gio/gio.h> -#include <stdlib.h> -#include <string.h> -#include <gdk-pixbuf/gdk-pixbuf.h> -#include <float.h> -#include <math.h> - - -#define SPIT_TYPE_ENTRY_POINT_PARAMS (spit_entry_point_params_get_type ()) -typedef struct _SpitEntryPointParams SpitEntryPointParams; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define SPIT_TYPE_MODULE (spit_module_get_type ()) -#define SPIT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_MODULE, SpitModule)) -#define SPIT_IS_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_MODULE)) -#define SPIT_MODULE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_MODULE, SpitModuleIface)) - -typedef struct _SpitModule SpitModule; -typedef struct _SpitModuleIface SpitModuleIface; - -#define SPIT_TYPE_PLUGGABLE (spit_pluggable_get_type ()) -#define SPIT_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggable)) -#define SPIT_IS_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_PLUGGABLE)) -#define SPIT_PLUGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggableIface)) - -typedef struct _SpitPluggable SpitPluggable; -typedef struct _SpitPluggableIface SpitPluggableIface; - -#define SPIT_TYPE_PLUGGABLE_INFO (spit_pluggable_info_get_type ()) -typedef struct _SpitPluggableInfo SpitPluggableInfo; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define SPIT_TYPE_HOST_INTERFACE (spit_host_interface_get_type ()) -#define SPIT_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterface)) -#define SPIT_IS_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_HOST_INTERFACE)) -#define SPIT_HOST_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterfaceIface)) - -typedef struct _SpitHostInterface SpitHostInterface; -typedef struct _SpitHostInterfaceIface SpitHostInterfaceIface; - -struct _SpitEntryPointParams { - gint host_min_spit_interface; - gint host_max_spit_interface; - gint module_spit_interface; - GFile* module_file; -}; - -struct _SpitPluggableInfo { - gchar* version; - gchar* brief_description; - gchar* authors; - gchar* copyright; - gchar* license; - gboolean is_license_wordwrapped; - gchar* website_url; - gchar* website_name; - gchar* translators; - GdkPixbuf** icons; - gint icons_length1; -}; - -struct _SpitPluggableIface { - GTypeInterface parent_iface; - gint (*get_pluggable_interface) (SpitPluggable* self, gint min_host_interface, gint max_host_interface); - const gchar* (*get_id) (SpitPluggable* self); - const gchar* (*get_pluggable_name) (SpitPluggable* self); - void (*get_info) (SpitPluggable* self, SpitPluggableInfo* info); - void (*activation) (SpitPluggable* self, gboolean enabled); - void (*reserved0) (SpitPluggable* self); - void (*reserved1) (SpitPluggable* self); - void (*reserved2) (SpitPluggable* self); - void (*reserved3) (SpitPluggable* self); - void (*reserved4) (SpitPluggable* self); - void (*reserved5) (SpitPluggable* self); - void (*reserved6) (SpitPluggable* self); - void (*reserved7) (SpitPluggable* self); -}; - -struct _SpitModuleIface { - GTypeInterface parent_iface; - const gchar* (*get_module_name) (SpitModule* self); - const gchar* (*get_version) (SpitModule* self); - const gchar* (*get_id) (SpitModule* self); - SpitPluggable** (*get_pluggables) (SpitModule* self, int* result_length1); - void (*reserved0) (SpitModule* self); - void (*reserved1) (SpitModule* self); - void (*reserved2) (SpitModule* self); - void (*reserved3) (SpitModule* self); - void (*reserved4) (SpitModule* self); - void (*reserved5) (SpitModule* self); - void (*reserved6) (SpitModule* self); - void (*reserved7) (SpitModule* self); -}; - -typedef SpitModule* (*SpitEntryPoint) (SpitEntryPointParams* params); -struct _SpitHostInterfaceIface { - GTypeInterface parent_iface; - GFile* (*get_module_file) (SpitHostInterface* self); - gboolean (*get_config_bool) (SpitHostInterface* self, const gchar* key, gboolean def); - void (*set_config_bool) (SpitHostInterface* self, const gchar* key, gboolean val); - gint (*get_config_int) (SpitHostInterface* self, const gchar* key, gint def); - void (*set_config_int) (SpitHostInterface* self, const gchar* key, gint val); - gchar* (*get_config_string) (SpitHostInterface* self, const gchar* key, const gchar* def); - void (*set_config_string) (SpitHostInterface* self, const gchar* key, const gchar* val); - gdouble (*get_config_double) (SpitHostInterface* self, const gchar* key, gdouble def); - void (*set_config_double) (SpitHostInterface* self, const gchar* key, gdouble val); - void (*unset_config_key) (SpitHostInterface* self, const gchar* key); - void (*reserved0) (SpitHostInterface* self); - void (*reserved1) (SpitHostInterface* self); - void (*reserved2) (SpitHostInterface* self); - void (*reserved3) (SpitHostInterface* self); - void (*reserved4) (SpitHostInterface* self); - void (*reserved5) (SpitHostInterface* self); - void (*reserved6) (SpitHostInterface* self); - void (*reserved7) (SpitHostInterface* self); -}; - - - -#define SPIT_UNSUPPORTED_INTERFACE -1 -#define SPIT_CURRENT_INTERFACE 0 -gint spit_negotiate_interfaces (gint min_host_interface, - gint max_host_interface, - gint plugin_interface); -GType spit_entry_point_params_get_type (void) G_GNUC_CONST; -SpitEntryPointParams* spit_entry_point_params_dup (const SpitEntryPointParams* self); -void spit_entry_point_params_free (SpitEntryPointParams* self); -void spit_entry_point_params_copy (const SpitEntryPointParams* self, - SpitEntryPointParams* dest); -void spit_entry_point_params_destroy (SpitEntryPointParams* self); -GType spit_pluggable_info_get_type (void) G_GNUC_CONST; -SpitPluggableInfo* spit_pluggable_info_dup (const SpitPluggableInfo* self); -void spit_pluggable_info_free (SpitPluggableInfo* self); -void spit_pluggable_info_copy (const SpitPluggableInfo* self, - SpitPluggableInfo* dest); -void spit_pluggable_info_destroy (SpitPluggableInfo* self); -GType spit_pluggable_get_type (void) G_GNUC_CONST; -GType spit_module_get_type (void) G_GNUC_CONST; -#define SPIT_ENTRY_POINT_NAME "spit_entry_point" -const gchar* spit_module_get_module_name (SpitModule* self); -const gchar* spit_module_get_version (SpitModule* self); -const gchar* spit_module_get_id (SpitModule* self); -SpitPluggable** spit_module_get_pluggables (SpitModule* self, - int* result_length1); -void spit_module_reserved0 (SpitModule* self); -static void spit_module_real_reserved0 (SpitModule* self); -void spit_module_reserved1 (SpitModule* self); -static void spit_module_real_reserved1 (SpitModule* self); -void spit_module_reserved2 (SpitModule* self); -static void spit_module_real_reserved2 (SpitModule* self); -void spit_module_reserved3 (SpitModule* self); -static void spit_module_real_reserved3 (SpitModule* self); -void spit_module_reserved4 (SpitModule* self); -static void spit_module_real_reserved4 (SpitModule* self); -void spit_module_reserved5 (SpitModule* self); -static void spit_module_real_reserved5 (SpitModule* self); -void spit_module_reserved6 (SpitModule* self); -static void spit_module_real_reserved6 (SpitModule* self); -void spit_module_reserved7 (SpitModule* self); -static void spit_module_real_reserved7 (SpitModule* self); -static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, - int length); -gint spit_pluggable_get_pluggable_interface (SpitPluggable* self, - gint min_host_interface, - gint max_host_interface); -const gchar* spit_pluggable_get_id (SpitPluggable* self); -const gchar* spit_pluggable_get_pluggable_name (SpitPluggable* self); -void spit_pluggable_get_info (SpitPluggable* self, - SpitPluggableInfo* info); -void spit_pluggable_activation (SpitPluggable* self, - gboolean enabled); -void spit_pluggable_reserved0 (SpitPluggable* self); -static void spit_pluggable_real_reserved0 (SpitPluggable* self); -void spit_pluggable_reserved1 (SpitPluggable* self); -static void spit_pluggable_real_reserved1 (SpitPluggable* self); -void spit_pluggable_reserved2 (SpitPluggable* self); -static void spit_pluggable_real_reserved2 (SpitPluggable* self); -void spit_pluggable_reserved3 (SpitPluggable* self); -static void spit_pluggable_real_reserved3 (SpitPluggable* self); -void spit_pluggable_reserved4 (SpitPluggable* self); -static void spit_pluggable_real_reserved4 (SpitPluggable* self); -void spit_pluggable_reserved5 (SpitPluggable* self); -static void spit_pluggable_real_reserved5 (SpitPluggable* self); -void spit_pluggable_reserved6 (SpitPluggable* self); -static void spit_pluggable_real_reserved6 (SpitPluggable* self); -void spit_pluggable_reserved7 (SpitPluggable* self); -static void spit_pluggable_real_reserved7 (SpitPluggable* self); -GType spit_host_interface_get_type (void) G_GNUC_CONST; -GFile* spit_host_interface_get_module_file (SpitHostInterface* self); -gboolean spit_host_interface_get_config_bool (SpitHostInterface* self, - const gchar* key, - gboolean def); -void spit_host_interface_set_config_bool (SpitHostInterface* self, - const gchar* key, - gboolean val); -gint spit_host_interface_get_config_int (SpitHostInterface* self, - const gchar* key, - gint def); -void spit_host_interface_set_config_int (SpitHostInterface* self, - const gchar* key, - gint val); -gchar* spit_host_interface_get_config_string (SpitHostInterface* self, - const gchar* key, - const gchar* def); -void spit_host_interface_set_config_string (SpitHostInterface* self, - const gchar* key, - const gchar* val); -gdouble spit_host_interface_get_config_double (SpitHostInterface* self, - const gchar* key, - gdouble def); -void spit_host_interface_set_config_double (SpitHostInterface* self, - const gchar* key, - gdouble val); -void spit_host_interface_unset_config_key (SpitHostInterface* self, - const gchar* key); -void spit_host_interface_reserved0 (SpitHostInterface* self); -static void spit_host_interface_real_reserved0 (SpitHostInterface* self); -void spit_host_interface_reserved1 (SpitHostInterface* self); -static void spit_host_interface_real_reserved1 (SpitHostInterface* self); -void spit_host_interface_reserved2 (SpitHostInterface* self); -static void spit_host_interface_real_reserved2 (SpitHostInterface* self); -void spit_host_interface_reserved3 (SpitHostInterface* self); -static void spit_host_interface_real_reserved3 (SpitHostInterface* self); -void spit_host_interface_reserved4 (SpitHostInterface* self); -static void spit_host_interface_real_reserved4 (SpitHostInterface* self); -void spit_host_interface_reserved5 (SpitHostInterface* self); -static void spit_host_interface_real_reserved5 (SpitHostInterface* self); -void spit_host_interface_reserved6 (SpitHostInterface* self); -static void spit_host_interface_real_reserved6 (SpitHostInterface* self); -void spit_host_interface_reserved7 (SpitHostInterface* self); -static void spit_host_interface_real_reserved7 (SpitHostInterface* self); -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); - - -/** - * A utility function for checking host interfaces against one's own and returning the right value. - * - * Note that this only works if the caller operates on only one interface version (and cannot mutate - * between multiple ones). - * - * @param min_host_interface The minimum supported host interface version. - * @param max_host_interface The maximum supported host interface version. - * @param plugin_interface The interface version supported by the Pluggable. - * - * @return The plugin's interface version if supported, {@link UNSUPPORTED_INTERFACE} otherwise. - */ -gint -spit_negotiate_interfaces (gint min_host_interface, - gint max_host_interface, - gint plugin_interface) -{ - gint result = 0; - gint _tmp0_ = 0; - gboolean _tmp1_ = FALSE; -#line 47 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - if (min_host_interface > plugin_interface) { -#line 47 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp1_ = TRUE; -#line 277 "SpitInterfaces.c" - } else { -#line 47 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp1_ = max_host_interface < plugin_interface; -#line 281 "SpitInterfaces.c" - } -#line 47 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - if (_tmp1_) { -#line 48 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp0_ = SPIT_UNSUPPORTED_INTERFACE; -#line 287 "SpitInterfaces.c" - } else { -#line 48 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp0_ = plugin_interface; -#line 291 "SpitInterfaces.c" - } -#line 47 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - result = _tmp0_; -#line 47 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return result; -#line 297 "SpitInterfaces.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return self ? g_object_ref (self) : NULL; -#line 306 "SpitInterfaces.c" -} - - -void -spit_entry_point_params_copy (const SpitEntryPointParams* self, - SpitEntryPointParams* dest) -{ - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp0_ = (*self).host_min_spit_interface; -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).host_min_spit_interface = _tmp0_; -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp1_ = (*self).host_max_spit_interface; -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).host_max_spit_interface = _tmp1_; -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp2_ = (*self).module_spit_interface; -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).module_spit_interface = _tmp2_; -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp3_ = (*self).module_file; -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp4_ = _g_object_ref0 (_tmp3_); -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_object_unref0 ((*dest).module_file); -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).module_file = _tmp4_; -#line 339 "SpitInterfaces.c" -} - - -void -spit_entry_point_params_destroy (SpitEntryPointParams* self) -{ -#line 79 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_object_unref0 ((*self).module_file); -#line 348 "SpitInterfaces.c" -} - - -SpitEntryPointParams* -spit_entry_point_params_dup (const SpitEntryPointParams* self) -{ - SpitEntryPointParams* dup; -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - dup = g_new0 (SpitEntryPointParams, 1); -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - spit_entry_point_params_copy (self, dup); -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return dup; -#line 362 "SpitInterfaces.c" -} - - -void -spit_entry_point_params_free (SpitEntryPointParams* self) -{ -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - spit_entry_point_params_destroy (self); -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_free (self); -#line 373 "SpitInterfaces.c" -} - - -GType -spit_entry_point_params_get_type (void) -{ - static volatile gsize spit_entry_point_params_type_id__volatile = 0; - if (g_once_init_enter (&spit_entry_point_params_type_id__volatile)) { - GType spit_entry_point_params_type_id; - spit_entry_point_params_type_id = g_boxed_type_register_static ("SpitEntryPointParams", (GBoxedCopyFunc) spit_entry_point_params_dup, (GBoxedFreeFunc) spit_entry_point_params_free); - g_once_init_leave (&spit_entry_point_params_type_id__volatile, spit_entry_point_params_type_id); - } - return spit_entry_point_params_type_id__volatile; -} - - -/** - * Returns a user-visible string describing the module. - */ -const gchar* -spit_module_get_module_name (SpitModule* self) -{ -#line 117 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_MODULE (self), NULL); -#line 117 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_MODULE_GET_INTERFACE (self)->get_module_name (self); -#line 400 "SpitInterfaces.c" -} - - -/** - * Returns a user-visible string describing the module version. - * - * Note that this may be programmatically interpreted at some point, so use a widespread - * versioning scheme. - */ -const gchar* -spit_module_get_version (SpitModule* self) -{ -#line 125 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_MODULE (self), NULL); -#line 125 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_MODULE_GET_INTERFACE (self)->get_version (self); -#line 417 "SpitInterfaces.c" -} - - -/** - * Returns a unique identifier for this module. - * - * This is used to differentiate between multiple - * installed versions and to determine which one should be used (i.e. if a module is available - * in a system directory and a user directory). This name is case-sensitive. - * - * Best practice: use a reverse-DNS-order scheme, a la Java's packages - * (i.e. "org.yorba.shotwell.frotz"). - */ -const gchar* -spit_module_get_id (SpitModule* self) -{ -#line 137 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_MODULE (self), NULL); -#line 137 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_MODULE_GET_INTERFACE (self)->get_id (self); -#line 438 "SpitInterfaces.c" -} - - -/** - * Returns an array of {@link Pluggable} that represent each plugin available in the module. - * - * May return NULL or an empty array. - */ -SpitPluggable** -spit_module_get_pluggables (SpitModule* self, - int* result_length1) -{ -#line 144 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_MODULE (self), NULL); -#line 144 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_MODULE_GET_INTERFACE (self)->get_pluggables (self, result_length1); -#line 455 "SpitInterfaces.c" -} - - -static void -spit_module_real_reserved0 (SpitModule* self) -{ -} - - -void -spit_module_reserved0 (SpitModule* self) -{ -#line 149 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_MODULE (self)); -#line 149 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_MODULE_GET_INTERFACE (self)->reserved0 (self); -#line 472 "SpitInterfaces.c" -} - - -static void -spit_module_real_reserved1 (SpitModule* self) -{ -} - - -void -spit_module_reserved1 (SpitModule* self) -{ -#line 150 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_MODULE (self)); -#line 150 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_MODULE_GET_INTERFACE (self)->reserved1 (self); -#line 489 "SpitInterfaces.c" -} - - -static void -spit_module_real_reserved2 (SpitModule* self) -{ -} - - -void -spit_module_reserved2 (SpitModule* self) -{ -#line 151 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_MODULE (self)); -#line 151 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_MODULE_GET_INTERFACE (self)->reserved2 (self); -#line 506 "SpitInterfaces.c" -} - - -static void -spit_module_real_reserved3 (SpitModule* self) -{ -} - - -void -spit_module_reserved3 (SpitModule* self) -{ -#line 152 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_MODULE (self)); -#line 152 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_MODULE_GET_INTERFACE (self)->reserved3 (self); -#line 523 "SpitInterfaces.c" -} - - -static void -spit_module_real_reserved4 (SpitModule* self) -{ -} - - -void -spit_module_reserved4 (SpitModule* self) -{ -#line 153 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_MODULE (self)); -#line 153 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_MODULE_GET_INTERFACE (self)->reserved4 (self); -#line 540 "SpitInterfaces.c" -} - - -static void -spit_module_real_reserved5 (SpitModule* self) -{ -} - - -void -spit_module_reserved5 (SpitModule* self) -{ -#line 154 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_MODULE (self)); -#line 154 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_MODULE_GET_INTERFACE (self)->reserved5 (self); -#line 557 "SpitInterfaces.c" -} - - -static void -spit_module_real_reserved6 (SpitModule* self) -{ -} - - -void -spit_module_reserved6 (SpitModule* self) -{ -#line 155 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_MODULE (self)); -#line 155 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_MODULE_GET_INTERFACE (self)->reserved6 (self); -#line 574 "SpitInterfaces.c" -} - - -static void -spit_module_real_reserved7 (SpitModule* self) -{ -} - - -void -spit_module_reserved7 (SpitModule* self) -{ -#line 156 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_MODULE (self)); -#line 156 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_MODULE_GET_INTERFACE (self)->reserved7 (self); -#line 591 "SpitInterfaces.c" -} - - -static void -spit_module_base_init (SpitModuleIface * iface) -{ -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - static gboolean initialized = FALSE; -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - if (!initialized) { -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - initialized = TRUE; -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved0 = spit_module_real_reserved0; -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved1 = spit_module_real_reserved1; -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved2 = spit_module_real_reserved2; -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved3 = spit_module_real_reserved3; -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved4 = spit_module_real_reserved4; -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved5 = spit_module_real_reserved5; -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved6 = spit_module_real_reserved6; -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved7 = spit_module_real_reserved7; -#line 620 "SpitInterfaces.c" - } -} - - -/** - * A Module represents the resources of an entire dynamically-linked module (i.e. a .so/.la). - * - * A module holds zero or more Shotwell plugins ({@link Pluggable}). Once the module has been - * loaded into process space this object is retrieved by Shotwell. All calls to the module and - * its plugins are resolved through this interface. - * - * Note: The module is responsible for holding the reference to the Module object, of which there - * should be only one in the library file. The module should implement a g_module_unload method - * and drop the reference there. - */ -GType -spit_module_get_type (void) -{ - static volatile gsize spit_module_type_id__volatile = 0; - if (g_once_init_enter (&spit_module_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitModuleIface), (GBaseInitFunc) spit_module_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_module_type_id; - spit_module_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitModule", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_module_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_module_type_id__volatile, spit_module_type_id); - } - return spit_module_type_id__volatile; -} - - -static GdkPixbuf** -_vala_array_dup1 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - for (i = 0; i < length; i++) { -#line 661 "SpitInterfaces.c" - GdkPixbuf* _tmp0_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - result[i] = _tmp0_; -#line 667 "SpitInterfaces.c" - } -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return result; -#line 671 "SpitInterfaces.c" -} - - -void -spit_pluggable_info_copy (const SpitPluggableInfo* self, - SpitPluggableInfo* dest) -{ - const gchar* _tmp0_; - gchar* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_; - gchar* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - gboolean _tmp10_; - const gchar* _tmp11_; - gchar* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; - GdkPixbuf** _tmp17_; - gint _tmp17__length1; - GdkPixbuf** _tmp18_; - gint _tmp18__length1; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp0_ = (*self).version; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*dest).version); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).version = _tmp1_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp2_ = (*self).brief_description; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*dest).brief_description); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).brief_description = _tmp3_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp4_ = (*self).authors; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp5_ = g_strdup (_tmp4_); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*dest).authors); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).authors = _tmp5_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp6_ = (*self).copyright; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp7_ = g_strdup (_tmp6_); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*dest).copyright); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).copyright = _tmp7_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp8_ = (*self).license; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*dest).license); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).license = _tmp9_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp10_ = (*self).is_license_wordwrapped; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).is_license_wordwrapped = _tmp10_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp11_ = (*self).website_url; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp12_ = g_strdup (_tmp11_); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*dest).website_url); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).website_url = _tmp12_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp13_ = (*self).website_name; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp14_ = g_strdup (_tmp13_); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*dest).website_name); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).website_name = _tmp14_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp15_ = (*self).translators; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp16_ = g_strdup (_tmp15_); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*dest).translators); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).translators = _tmp16_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp17_ = (*self).icons; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp17__length1 = (*self).icons_length1; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp18_ = (_tmp17_ != NULL) ? _vala_array_dup1 (_tmp17_, _tmp17__length1) : ((gpointer) _tmp17_); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp18__length1 = _tmp17__length1; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).icons = (_vala_array_free ((*dest).icons, (*dest).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).icons = _tmp18_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).icons_length1 = _tmp18__length1; -#line 782 "SpitInterfaces.c" -} - - -void -spit_pluggable_info_destroy (SpitPluggableInfo* self) -{ -#line 163 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*self).version); -#line 164 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*self).brief_description); -#line 168 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*self).authors); -#line 169 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*self).copyright); -#line 170 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*self).license); -#line 172 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*self).website_url); -#line 173 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*self).website_name); -#line 174 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*self).translators); -#line 179 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*self).icons = (_vala_array_free ((*self).icons, (*self).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 807 "SpitInterfaces.c" -} - - -SpitPluggableInfo* -spit_pluggable_info_dup (const SpitPluggableInfo* self) -{ - SpitPluggableInfo* dup; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - dup = g_new0 (SpitPluggableInfo, 1); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - spit_pluggable_info_copy (self, dup); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return dup; -#line 821 "SpitInterfaces.c" -} - - -void -spit_pluggable_info_free (SpitPluggableInfo* self) -{ -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - spit_pluggable_info_destroy (self); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_free (self); -#line 832 "SpitInterfaces.c" -} - - -GType -spit_pluggable_info_get_type (void) -{ - static volatile gsize spit_pluggable_info_type_id__volatile = 0; - if (g_once_init_enter (&spit_pluggable_info_type_id__volatile)) { - GType spit_pluggable_info_type_id; - spit_pluggable_info_type_id = g_boxed_type_register_static ("SpitPluggableInfo", (GBoxedCopyFunc) spit_pluggable_info_dup, (GBoxedFreeFunc) spit_pluggable_info_free); - g_once_init_leave (&spit_pluggable_info_type_id__volatile, spit_pluggable_info_type_id); - } - return spit_pluggable_info_type_id__volatile; -} - - -/** - * Pluggable interface version negotiation. - * - * Like the {@link EntryPoint}, this mechanism allows for the host to negotiate with the Pluggable - * for its interface version. If the pluggable does not support an interface between the - * two ranges (inclusive), it should return {@link UNSUPPORTED_INTERFACE}. - * - * Note that this is ''not'' a negotiation of the SPIT interface versions (which is the - * responsibility of {@link EntryPoint}. Rather, each extension point is expected to version - * its own cluster of interfaces. It is that interface version that is being negotiated here. - * - * {@link negotiate_interfaces} can be used to implement this method. - * - * @param min_host_interface The host's minimum supported interface version number - * //for this Pluggable's intended extension point//. - * @param max_host_interface The host's maximum supported interface version number - * //for this Pluggable's intended extension point//. - * - * @return The version number supported by the host and the Pluggable or - * {@link UNSUPPORTED_INTERFACE}. - */ -gint -spit_pluggable_get_pluggable_interface (SpitPluggable* self, - gint min_host_interface, - gint max_host_interface) -{ -#line 210 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_PLUGGABLE (self), 0); -#line 210 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_PLUGGABLE_GET_INTERFACE (self)->get_pluggable_interface (self, min_host_interface, max_host_interface); -#line 879 "SpitInterfaces.c" -} - - -/** - * Returns a unique identifier for this Pluggable. - * - * Like {@link Module.get_id}, best practice is to use a reverse-DNS-order scheme to avoid - * conflicts. - */ -const gchar* -spit_pluggable_get_id (SpitPluggable* self) -{ -#line 218 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_PLUGGABLE (self), NULL); -#line 218 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_PLUGGABLE_GET_INTERFACE (self)->get_id (self); -#line 896 "SpitInterfaces.c" -} - - -/** - * Returns a user-visible name for the Pluggable. - */ -const gchar* -spit_pluggable_get_pluggable_name (SpitPluggable* self) -{ -#line 223 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_PLUGGABLE (self), NULL); -#line 223 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_PLUGGABLE_GET_INTERFACE (self)->get_pluggable_name (self); -#line 910 "SpitInterfaces.c" -} - - -/** - * Returns extra information about the Pluggable that is used to identify it to the user. - */ -void -spit_pluggable_get_info (SpitPluggable* self, - SpitPluggableInfo* info) -{ -#line 228 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 228 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->get_info (self, info); -#line 925 "SpitInterfaces.c" -} - - -/** - * Called when the Pluggable is enabled (activated) or disabled (deactivated). - * - * activation will be called at the start of the program if the user previously - * enabled/disabled it as well as during program execution if the user changes its state. Note - * that disabling a Pluggable does not require destroying existing resources or objects - * the Pluggable has previously handed off to the host. - * - * This is purely informational. The Pluggable should acquire any long-term resources - * it may be holding onto here, or wait until an extension-specific call is made to it. - * - * @param enabled ``true`` if the Pluggable has been enabled, ``false`` otherwise. - */ -void -spit_pluggable_activation (SpitPluggable* self, - gboolean enabled) -{ -#line 243 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 243 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->activation (self, enabled); -#line 950 "SpitInterfaces.c" -} - - -static void -spit_pluggable_real_reserved0 (SpitPluggable* self) -{ -} - - -void -spit_pluggable_reserved0 (SpitPluggable* self) -{ -#line 248 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 248 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved0 (self); -#line 967 "SpitInterfaces.c" -} - - -static void -spit_pluggable_real_reserved1 (SpitPluggable* self) -{ -} - - -void -spit_pluggable_reserved1 (SpitPluggable* self) -{ -#line 249 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 249 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved1 (self); -#line 984 "SpitInterfaces.c" -} - - -static void -spit_pluggable_real_reserved2 (SpitPluggable* self) -{ -} - - -void -spit_pluggable_reserved2 (SpitPluggable* self) -{ -#line 250 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 250 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved2 (self); -#line 1001 "SpitInterfaces.c" -} - - -static void -spit_pluggable_real_reserved3 (SpitPluggable* self) -{ -} - - -void -spit_pluggable_reserved3 (SpitPluggable* self) -{ -#line 251 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 251 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved3 (self); -#line 1018 "SpitInterfaces.c" -} - - -static void -spit_pluggable_real_reserved4 (SpitPluggable* self) -{ -} - - -void -spit_pluggable_reserved4 (SpitPluggable* self) -{ -#line 252 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 252 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved4 (self); -#line 1035 "SpitInterfaces.c" -} - - -static void -spit_pluggable_real_reserved5 (SpitPluggable* self) -{ -} - - -void -spit_pluggable_reserved5 (SpitPluggable* self) -{ -#line 253 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 253 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved5 (self); -#line 1052 "SpitInterfaces.c" -} - - -static void -spit_pluggable_real_reserved6 (SpitPluggable* self) -{ -} - - -void -spit_pluggable_reserved6 (SpitPluggable* self) -{ -#line 254 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 254 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved6 (self); -#line 1069 "SpitInterfaces.c" -} - - -static void -spit_pluggable_real_reserved7 (SpitPluggable* self) -{ -} - - -void -spit_pluggable_reserved7 (SpitPluggable* self) -{ -#line 255 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 255 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved7 (self); -#line 1086 "SpitInterfaces.c" -} - - -static void -spit_pluggable_base_init (SpitPluggableIface * iface) -{ -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - static gboolean initialized = FALSE; -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - if (!initialized) { -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - initialized = TRUE; -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved0 = spit_pluggable_real_reserved0; -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved1 = spit_pluggable_real_reserved1; -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved2 = spit_pluggable_real_reserved2; -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved3 = spit_pluggable_real_reserved3; -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved4 = spit_pluggable_real_reserved4; -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved5 = spit_pluggable_real_reserved5; -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved6 = spit_pluggable_real_reserved6; -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved7 = spit_pluggable_real_reserved7; -#line 1115 "SpitInterfaces.c" - } -} - - -/** - * A generic interface to all Shotwell plugins. - * - * Each plugin in a module needs to implement this interface at a minimum. Extension - * points may have (and probably will have) specific interface requirements as well. - */ -GType -spit_pluggable_get_type (void) -{ - static volatile gsize spit_pluggable_type_id__volatile = 0; - if (g_once_init_enter (&spit_pluggable_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitPluggableIface), (GBaseInitFunc) spit_pluggable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_pluggable_type_id; - spit_pluggable_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPluggable", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_pluggable_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_pluggable_type_id__volatile, spit_pluggable_type_id); - } - return spit_pluggable_type_id__volatile; -} - - -/** - * Returns a File object representing the library file (.so/la.) that the plugin was loaded - * from. - */ -GFile* -spit_host_interface_get_module_file (SpitHostInterface* self) -{ -#line 274 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (self), NULL); -#line 274 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_HOST_INTERFACE_GET_INTERFACE (self)->get_module_file (self); -#line 1152 "SpitInterfaces.c" -} - - -/** - * Get a boolean from a persistent configuration store. - * - * @param key The name of the value to be retrieved. - * @param def The default value (returned if the key has not been previously set). - * - * @return The value associated with key, def if not set. - */ -gboolean -spit_host_interface_get_config_bool (SpitHostInterface* self, - const gchar* key, - gboolean def) -{ -#line 284 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (self), FALSE); -#line 284 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_HOST_INTERFACE_GET_INTERFACE (self)->get_config_bool (self, key, def); -#line 1173 "SpitInterfaces.c" -} - - -/** - * Store a boolean in a persistent configuration store. - * - * @param key The name of the value to be stored. - * @param val The value to be stored. - */ -void -spit_host_interface_set_config_bool (SpitHostInterface* self, - const gchar* key, - gboolean val) -{ -#line 292 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 292 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->set_config_bool (self, key, val); -#line 1192 "SpitInterfaces.c" -} - - -/** - * Get an integer from a persistent configuration store. - * - * @param key The name of the value to be retrieved. - * @param def The default value (returned if the key has not been previously set). - * - * @return The value associated with key, def if not set. - */ -gint -spit_host_interface_get_config_int (SpitHostInterface* self, - const gchar* key, - gint def) -{ -#line 302 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (self), 0); -#line 302 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_HOST_INTERFACE_GET_INTERFACE (self)->get_config_int (self, key, def); -#line 1213 "SpitInterfaces.c" -} - - -/** - * Store an integer in a persistent configuration store. - * - * @param key The name of the value to be stored. - * @param val The value to be stored. - */ -void -spit_host_interface_set_config_int (SpitHostInterface* self, - const gchar* key, - gint val) -{ -#line 310 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 310 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->set_config_int (self, key, val); -#line 1232 "SpitInterfaces.c" -} - - -/** - * Get a string from a persistent configuration store. - * - * @param key The name of the value to be retrieved. - * @param def The default value (returned if the key has not been previously set). - * - * @return The value associated with key, def if not set. - */ -gchar* -spit_host_interface_get_config_string (SpitHostInterface* self, - const gchar* key, - const gchar* def) -{ -#line 320 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (self), NULL); -#line 320 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_HOST_INTERFACE_GET_INTERFACE (self)->get_config_string (self, key, def); -#line 1253 "SpitInterfaces.c" -} - - -/** - * Store a string in a persistent configuration store. - * - * @param key The name of the value to be stored. - * @param val The value to be stored. - */ -void -spit_host_interface_set_config_string (SpitHostInterface* self, - const gchar* key, - const gchar* val) -{ -#line 328 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 328 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->set_config_string (self, key, val); -#line 1272 "SpitInterfaces.c" -} - - -/** - * Get a double from a persistent configuration store. - * - * @param key The name of the value to be retrieved. - * @param def The default value (returned if the key has not been previously set). - * - * @return The value associated with key, def if not set. - */ -gdouble -spit_host_interface_get_config_double (SpitHostInterface* self, - const gchar* key, - gdouble def) -{ -#line 338 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (self), 0.0); -#line 338 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_HOST_INTERFACE_GET_INTERFACE (self)->get_config_double (self, key, def); -#line 1293 "SpitInterfaces.c" -} - - -/** - * Store a double in a persistent configuration store. - * - * @param key The name of the value to be stored. - * @param val The value to be stored. - */ -void -spit_host_interface_set_config_double (SpitHostInterface* self, - const gchar* key, - gdouble val) -{ -#line 346 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 346 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->set_config_double (self, key, val); -#line 1312 "SpitInterfaces.c" -} - - -/** - * Delete the value from the persistent configuration store. - */ -void -spit_host_interface_unset_config_key (SpitHostInterface* self, - const gchar* key) -{ -#line 351 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 351 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->unset_config_key (self, key); -#line 1327 "SpitInterfaces.c" -} - - -static void -spit_host_interface_real_reserved0 (SpitHostInterface* self) -{ -} - - -void -spit_host_interface_reserved0 (SpitHostInterface* self) -{ -#line 356 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 356 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved0 (self); -#line 1344 "SpitInterfaces.c" -} - - -static void -spit_host_interface_real_reserved1 (SpitHostInterface* self) -{ -} - - -void -spit_host_interface_reserved1 (SpitHostInterface* self) -{ -#line 357 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 357 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved1 (self); -#line 1361 "SpitInterfaces.c" -} - - -static void -spit_host_interface_real_reserved2 (SpitHostInterface* self) -{ -} - - -void -spit_host_interface_reserved2 (SpitHostInterface* self) -{ -#line 358 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 358 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved2 (self); -#line 1378 "SpitInterfaces.c" -} - - -static void -spit_host_interface_real_reserved3 (SpitHostInterface* self) -{ -} - - -void -spit_host_interface_reserved3 (SpitHostInterface* self) -{ -#line 359 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 359 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved3 (self); -#line 1395 "SpitInterfaces.c" -} - - -static void -spit_host_interface_real_reserved4 (SpitHostInterface* self) -{ -} - - -void -spit_host_interface_reserved4 (SpitHostInterface* self) -{ -#line 360 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 360 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved4 (self); -#line 1412 "SpitInterfaces.c" -} - - -static void -spit_host_interface_real_reserved5 (SpitHostInterface* self) -{ -} - - -void -spit_host_interface_reserved5 (SpitHostInterface* self) -{ -#line 361 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 361 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved5 (self); -#line 1429 "SpitInterfaces.c" -} - - -static void -spit_host_interface_real_reserved6 (SpitHostInterface* self) -{ -} - - -void -spit_host_interface_reserved6 (SpitHostInterface* self) -{ -#line 362 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 362 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved6 (self); -#line 1446 "SpitInterfaces.c" -} - - -static void -spit_host_interface_real_reserved7 (SpitHostInterface* self) -{ -} - - -void -spit_host_interface_reserved7 (SpitHostInterface* self) -{ -#line 363 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 363 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved7 (self); -#line 1463 "SpitInterfaces.c" -} - - -static void -spit_host_interface_base_init (SpitHostInterfaceIface * iface) -{ -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - static gboolean initialized = FALSE; -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - if (!initialized) { -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - initialized = TRUE; -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved0 = spit_host_interface_real_reserved0; -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved1 = spit_host_interface_real_reserved1; -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved2 = spit_host_interface_real_reserved2; -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved3 = spit_host_interface_real_reserved3; -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved4 = spit_host_interface_real_reserved4; -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved5 = spit_host_interface_real_reserved5; -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved6 = spit_host_interface_real_reserved6; -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved7 = spit_host_interface_real_reserved7; -#line 1492 "SpitInterfaces.c" - } -} - - -/** - * An interface to common services supplied by the host (Shotwell). - * - * Each {@link Pluggable} is offered a HostInterface for needs common to most plugins. - * - * Note that - * a HostInterface is not explicitly handed to the Pluggable through the SPIT interface, but is expected - * to be offered to the Pluggable through an interface applicable to the extension point. This - * also allows the extension point to extend HostInterface to offer other services applicable to the - * type of plugin. - */ -GType -spit_host_interface_get_type (void) -{ - static volatile gsize spit_host_interface_type_id__volatile = 0; - if (g_once_init_enter (&spit_host_interface_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitHostInterfaceIface), (GBaseInitFunc) spit_host_interface_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_host_interface_type_id; - spit_host_interface_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitHostInterface", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_host_interface_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_host_interface_type_id__volatile, spit_host_interface_type_id); - } - return spit_host_interface_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/src/plugins/StandardHostInterface.c b/src/plugins/StandardHostInterface.c deleted file mode 100644 index 4dfc7ed..0000000 --- a/src/plugins/StandardHostInterface.c +++ /dev/null @@ -1,737 +0,0 @@ -/* StandardHostInterface.c generated by valac 0.40.4, the Vala compiler - * generated from StandardHostInterface.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 <glib.h> -#include <glib-object.h> -#include "shotwell-plugin-dev-1.0.h" -#include <stdlib.h> -#include <string.h> -#include <gio/gio.h> -#include <float.h> -#include <math.h> - - -#define PLUGINS_TYPE_STANDARD_HOST_INTERFACE (plugins_standard_host_interface_get_type ()) -#define PLUGINS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface)) -#define PLUGINS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass)) -#define PLUGINS_IS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE)) -#define PLUGINS_IS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE)) -#define PLUGINS_STANDARD_HOST_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass)) - -typedef struct _PluginsStandardHostInterface PluginsStandardHostInterface; -typedef struct _PluginsStandardHostInterfaceClass PluginsStandardHostInterfaceClass; -typedef struct _PluginsStandardHostInterfacePrivate PluginsStandardHostInterfacePrivate; -enum { - PLUGINS_STANDARD_HOST_INTERFACE_0_PROPERTY, - PLUGINS_STANDARD_HOST_INTERFACE_NUM_PROPERTIES -}; -static GParamSpec* plugins_standard_host_interface_properties[PLUGINS_STANDARD_HOST_INTERFACE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; - -struct _PluginsStandardHostInterface { - GObject parent_instance; - PluginsStandardHostInterfacePrivate * priv; -}; - -struct _PluginsStandardHostInterfaceClass { - GObjectClass parent_class; -}; - -struct _PluginsStandardHostInterfacePrivate { - gchar* config_domain; - gchar* config_id; - GFile* module_file; - SpitPluggableInfo info; -}; - - -static gpointer plugins_standard_host_interface_parent_class = NULL; -static SpitHostInterfaceIface * plugins_standard_host_interface_spit_host_interface_parent_iface = NULL; - -GType plugins_standard_host_interface_get_type (void) G_GNUC_CONST; -#define PLUGINS_STANDARD_HOST_INTERFACE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfacePrivate)) -PluginsStandardHostInterface* plugins_standard_host_interface_new (SpitPluggable* pluggable, - const gchar* config_domain); -PluginsStandardHostInterface* plugins_standard_host_interface_construct (GType object_type, - SpitPluggable* pluggable, - const gchar* config_domain); -static gchar* plugins_standard_host_interface_parse_key (const gchar* id); -GFile* plugins_get_pluggable_module_file (SpitPluggable* pluggable); -static GFile* plugins_standard_host_interface_real_get_module_file (SpitHostInterface* base); -static gboolean plugins_standard_host_interface_real_get_config_bool (SpitHostInterface* base, - const gchar* key, - gboolean def); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gboolean configuration_facade_get_plugin_bool (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean def); -static void plugins_standard_host_interface_real_set_config_bool (SpitHostInterface* base, - const gchar* key, - gboolean val); -void configuration_facade_set_plugin_bool (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean val); -static gint plugins_standard_host_interface_real_get_config_int (SpitHostInterface* base, - const gchar* key, - gint def); -gint configuration_facade_get_plugin_int (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gint def); -static void plugins_standard_host_interface_real_set_config_int (SpitHostInterface* base, - const gchar* key, - gint val); -void configuration_facade_set_plugin_int (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gint val); -static gchar* plugins_standard_host_interface_real_get_config_string (SpitHostInterface* base, - const gchar* key, - const gchar* def); -gchar* configuration_facade_get_plugin_string (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* def); -static void plugins_standard_host_interface_real_set_config_string (SpitHostInterface* base, - const gchar* key, - const gchar* val); -void configuration_facade_set_plugin_string (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* val); -static gdouble plugins_standard_host_interface_real_get_config_double (SpitHostInterface* base, - const gchar* key, - gdouble def); -gdouble configuration_facade_get_plugin_double (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble def); -static void plugins_standard_host_interface_real_set_config_double (SpitHostInterface* base, - const gchar* key, - gdouble val); -void configuration_facade_set_plugin_double (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble val); -static void plugins_standard_host_interface_real_unset_config_key (SpitHostInterface* base, - const gchar* key); -void configuration_facade_unset_plugin_key (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key); -static void plugins_standard_host_interface_finalize (GObject * obj); - - -PluginsStandardHostInterface* -plugins_standard_host_interface_construct (GType object_type, - SpitPluggable* pluggable, - const gchar* config_domain) -{ - PluginsStandardHostInterface * self = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - GFile* _tmp3_; -#line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_val_if_fail (SPIT_IS_PLUGGABLE (pluggable), NULL); -#line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_val_if_fail (config_domain != NULL, NULL); -#line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = (PluginsStandardHostInterface*) g_object_new (object_type, NULL); -#line 16 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = g_strdup (config_domain); -#line 16 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_free0 (self->priv->config_domain); -#line 16 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self->priv->config_domain = _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = spit_pluggable_get_id (pluggable); -#line 17 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = plugins_standard_host_interface_parse_key (_tmp1_); -#line 17 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_free0 (self->priv->config_id); -#line 17 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self->priv->config_id = _tmp2_; -#line 18 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = plugins_get_pluggable_module_file (pluggable); -#line 18 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (self->priv->module_file); -#line 18 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self->priv->module_file = _tmp3_; -#line 19 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - spit_pluggable_get_info (pluggable, &self->priv->info); -#line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return self; -#line 206 "StandardHostInterface.c" -} - - -PluginsStandardHostInterface* -plugins_standard_host_interface_new (SpitPluggable* pluggable, - const gchar* config_domain) -{ -#line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return plugins_standard_host_interface_construct (PLUGINS_TYPE_STANDARD_HOST_INTERFACE, pluggable, config_domain); -#line 216 "StandardHostInterface.c" -} - - -static gchar* -plugins_standard_host_interface_parse_key (const gchar* id) -{ - gchar* result = NULL; - const gchar* _tmp0_; - GQuark _tmp2_ = 0U; -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - static GQuark _tmp1_label0 = 0; -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - static GQuark _tmp1_label1 = 0; -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - static GQuark _tmp1_label2 = 0; -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - static GQuark _tmp1_label3 = 0; -#line 22 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_val_if_fail (id != NULL, NULL); -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = id; -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_); -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - if (_tmp2_ == ((0 != _tmp1_label0) ? _tmp1_label0 : (_tmp1_label0 = g_quark_from_static_string ("org.yorba.shotwell.publishing.facebook")))) { -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - switch (0) { -#line 244 "StandardHostInterface.c" - default: - { - gchar* _tmp3_; -#line 27 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = g_strdup ("facebook"); -#line 27 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp3_; -#line 27 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 254 "StandardHostInterface.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label1) ? _tmp1_label1 : (_tmp1_label1 = g_quark_from_static_string ("org.yorba.shotwell.publishing.picasa")))) { -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - switch (0) { -#line 260 "StandardHostInterface.c" - default: - { - gchar* _tmp4_; -#line 30 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = g_strdup ("picasa"); -#line 30 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp4_; -#line 30 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 270 "StandardHostInterface.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label2) ? _tmp1_label2 : (_tmp1_label2 = g_quark_from_static_string ("org.yorba.shotwell.publishing.flickr")))) { -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - switch (0) { -#line 276 "StandardHostInterface.c" - default: - { - gchar* _tmp5_; -#line 33 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp5_ = g_strdup ("flickr"); -#line 33 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp5_; -#line 33 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 286 "StandardHostInterface.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label3) ? _tmp1_label3 : (_tmp1_label3 = g_quark_from_static_string ("org.yorba.shotwell.publishing.youtube")))) { -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - switch (0) { -#line 292 "StandardHostInterface.c" - default: - { - gchar* _tmp6_; -#line 36 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp6_ = g_strdup ("youtube"); -#line 36 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp6_; -#line 36 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 302 "StandardHostInterface.c" - } - } - } else { -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - switch (0) { -#line 308 "StandardHostInterface.c" - default: - { - gchar* _tmp7_; -#line 39 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp7_ = g_strdup (id); -#line 39 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp7_; -#line 39 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 318 "StandardHostInterface.c" - } - } - } -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 44 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return self ? g_object_ref (self) : NULL; -#line 330 "StandardHostInterface.c" -} - - -static GFile* -plugins_standard_host_interface_real_get_module_file (SpitHostInterface* base) -{ - PluginsStandardHostInterface * self; - GFile* result = NULL; - GFile* _tmp0_; - GFile* _tmp1_; -#line 43 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 44 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = self->priv->module_file; -#line 44 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 44 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp1_; -#line 44 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 351 "StandardHostInterface.c" -} - - -static gboolean -plugins_standard_host_interface_real_get_config_bool (SpitHostInterface* base, - const gchar* key, - gboolean def) -{ - PluginsStandardHostInterface * self; - gboolean result = FALSE; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - gboolean _tmp4_; -#line 47 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 47 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_val_if_fail (key != NULL, FALSE); -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_facade_get_instance (); -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = self->priv->config_domain; -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = self->priv->config_id; -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = configuration_facade_get_plugin_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, def); -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (_tmp1_); -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp4_; -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 387 "StandardHostInterface.c" -} - - -static void -plugins_standard_host_interface_real_set_config_bool (SpitHostInterface* base, - const gchar* key, - gboolean val) -{ - PluginsStandardHostInterface * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 51 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 51 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_if_fail (key != NULL); -#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_facade_get_instance (); -#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = self->priv->config_domain; -#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = self->priv->config_id; -#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - configuration_facade_set_plugin_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, val); -#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (_tmp1_); -#line 417 "StandardHostInterface.c" -} - - -static gint -plugins_standard_host_interface_real_get_config_int (SpitHostInterface* base, - const gchar* key, - gint def) -{ - PluginsStandardHostInterface * self; - gint result = 0; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - gint _tmp4_; -#line 55 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 55 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_val_if_fail (key != NULL, 0); -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_facade_get_instance (); -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = self->priv->config_domain; -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = self->priv->config_id; -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = configuration_facade_get_plugin_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, def); -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (_tmp1_); -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp4_; -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 453 "StandardHostInterface.c" -} - - -static void -plugins_standard_host_interface_real_set_config_int (SpitHostInterface* base, - const gchar* key, - gint val) -{ - PluginsStandardHostInterface * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 59 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 59 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_if_fail (key != NULL); -#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_facade_get_instance (); -#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = self->priv->config_domain; -#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = self->priv->config_id; -#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - configuration_facade_set_plugin_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, val); -#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (_tmp1_); -#line 483 "StandardHostInterface.c" -} - - -static gchar* -plugins_standard_host_interface_real_get_config_string (SpitHostInterface* base, - const gchar* key, - const gchar* def) -{ - PluginsStandardHostInterface * self; - gchar* result = NULL; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 63 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 63 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_val_if_fail (key != NULL, NULL); -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_facade_get_instance (); -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = self->priv->config_domain; -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = self->priv->config_id; -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = configuration_facade_get_plugin_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, def); -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp5_ = _tmp4_; -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (_tmp1_); -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp5_; -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 522 "StandardHostInterface.c" -} - - -static void -plugins_standard_host_interface_real_set_config_string (SpitHostInterface* base, - const gchar* key, - const gchar* val) -{ - PluginsStandardHostInterface * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 67 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 67 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_if_fail (key != NULL); -#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_facade_get_instance (); -#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = self->priv->config_domain; -#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = self->priv->config_id; -#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - configuration_facade_set_plugin_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, val); -#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (_tmp1_); -#line 552 "StandardHostInterface.c" -} - - -static gdouble -plugins_standard_host_interface_real_get_config_double (SpitHostInterface* base, - const gchar* key, - gdouble def) -{ - PluginsStandardHostInterface * self; - gdouble result = 0.0; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - gdouble _tmp4_; -#line 71 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 71 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_val_if_fail (key != NULL, 0.0); -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_facade_get_instance (); -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = self->priv->config_domain; -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = self->priv->config_id; -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = configuration_facade_get_plugin_double (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, def); -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (_tmp1_); -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp4_; -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 588 "StandardHostInterface.c" -} - - -static void -plugins_standard_host_interface_real_set_config_double (SpitHostInterface* base, - const gchar* key, - gdouble val) -{ - PluginsStandardHostInterface * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 75 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 75 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_if_fail (key != NULL); -#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_facade_get_instance (); -#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = self->priv->config_domain; -#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = self->priv->config_id; -#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - configuration_facade_set_plugin_double (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, val); -#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (_tmp1_); -#line 618 "StandardHostInterface.c" -} - - -static void -plugins_standard_host_interface_real_unset_config_key (SpitHostInterface* base, - const gchar* key) -{ - PluginsStandardHostInterface * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 79 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 79 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_if_fail (key != NULL); -#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_facade_get_instance (); -#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = self->priv->config_domain; -#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = self->priv->config_id; -#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - configuration_facade_unset_plugin_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key); -#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (_tmp1_); -#line 647 "StandardHostInterface.c" -} - - -static void -plugins_standard_host_interface_class_init (PluginsStandardHostInterfaceClass * klass) -{ -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - plugins_standard_host_interface_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_type_class_add_private (klass, sizeof (PluginsStandardHostInterfacePrivate)); -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - G_OBJECT_CLASS (klass)->finalize = plugins_standard_host_interface_finalize; -#line 660 "StandardHostInterface.c" -} - - -static void -plugins_standard_host_interface_spit_host_interface_interface_init (SpitHostInterfaceIface * iface) -{ -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - plugins_standard_host_interface_spit_host_interface_parent_iface = g_type_interface_peek_parent (iface); -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->get_module_file = (GFile* (*) (SpitHostInterface *)) plugins_standard_host_interface_real_get_module_file; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->get_config_bool = (gboolean (*) (SpitHostInterface *, const gchar*, gboolean)) plugins_standard_host_interface_real_get_config_bool; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->set_config_bool = (void (*) (SpitHostInterface *, const gchar*, gboolean)) plugins_standard_host_interface_real_set_config_bool; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->get_config_int = (gint (*) (SpitHostInterface *, const gchar*, gint)) plugins_standard_host_interface_real_get_config_int; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->set_config_int = (void (*) (SpitHostInterface *, const gchar*, gint)) plugins_standard_host_interface_real_set_config_int; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->get_config_string = (gchar* (*) (SpitHostInterface *, const gchar*, const gchar*)) plugins_standard_host_interface_real_get_config_string; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->set_config_string = (void (*) (SpitHostInterface *, const gchar*, const gchar*)) plugins_standard_host_interface_real_set_config_string; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->get_config_double = (gdouble (*) (SpitHostInterface *, const gchar*, gdouble)) plugins_standard_host_interface_real_get_config_double; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->set_config_double = (void (*) (SpitHostInterface *, const gchar*, gdouble)) plugins_standard_host_interface_real_set_config_double; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->unset_config_key = (void (*) (SpitHostInterface *, const gchar*)) plugins_standard_host_interface_real_unset_config_key; -#line 689 "StandardHostInterface.c" -} - - -static void -plugins_standard_host_interface_instance_init (PluginsStandardHostInterface * self) -{ -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self->priv = PLUGINS_STANDARD_HOST_INTERFACE_GET_PRIVATE (self); -#line 698 "StandardHostInterface.c" -} - - -static void -plugins_standard_host_interface_finalize (GObject * obj) -{ - PluginsStandardHostInterface * self; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 10 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_free0 (self->priv->config_domain); -#line 11 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_free0 (self->priv->config_id); -#line 12 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (self->priv->module_file); -#line 13 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - spit_pluggable_info_destroy (&self->priv->info); -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - G_OBJECT_CLASS (plugins_standard_host_interface_parent_class)->finalize (obj); -#line 718 "StandardHostInterface.c" -} - - -GType -plugins_standard_host_interface_get_type (void) -{ - static volatile gsize plugins_standard_host_interface_type_id__volatile = 0; - if (g_once_init_enter (&plugins_standard_host_interface_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PluginsStandardHostInterfaceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_standard_host_interface_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsStandardHostInterface), 0, (GInstanceInitFunc) plugins_standard_host_interface_instance_init, NULL }; - static const GInterfaceInfo spit_host_interface_info = { (GInterfaceInitFunc) plugins_standard_host_interface_spit_host_interface_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType plugins_standard_host_interface_type_id; - plugins_standard_host_interface_type_id = g_type_register_static (G_TYPE_OBJECT, "PluginsStandardHostInterface", &g_define_type_info, 0); - g_type_add_interface_static (plugins_standard_host_interface_type_id, SPIT_TYPE_HOST_INTERFACE, &spit_host_interface_info); - g_once_init_leave (&plugins_standard_host_interface_type_id__volatile, plugins_standard_host_interface_type_id); - } - return plugins_standard_host_interface_type_id__volatile; -} - - - diff --git a/src/plugins/TransitionsInterfaces.c b/src/plugins/TransitionsInterfaces.c deleted file mode 100644 index 248a2e9..0000000 --- a/src/plugins/TransitionsInterfaces.c +++ /dev/null @@ -1,2249 +0,0 @@ -/* TransitionsInterfaces.c generated by valac 0.40.4, the Vala compiler - * generated from TransitionsInterfaces.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 <glib.h> -#include <glib-object.h> -#include <gdk-pixbuf/gdk-pixbuf.h> -#include <gdk/gdk.h> -#include <float.h> -#include <math.h> -#include <stdlib.h> -#include <string.h> -#include <gio/gio.h> -#include <cairo.h> - - -#define SPIT_TRANSITIONS_TYPE_DIRECTION (spit_transitions_direction_get_type ()) - -#define SPIT_TRANSITIONS_TYPE_VISUALS (spit_transitions_visuals_get_type ()) -#define SPIT_TRANSITIONS_VISUALS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisuals)) -#define SPIT_TRANSITIONS_VISUALS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisualsClass)) -#define SPIT_TRANSITIONS_IS_VISUALS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_VISUALS)) -#define SPIT_TRANSITIONS_IS_VISUALS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_TRANSITIONS_TYPE_VISUALS)) -#define SPIT_TRANSITIONS_VISUALS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisualsClass)) - -typedef struct _SpitTransitionsVisuals SpitTransitionsVisuals; -typedef struct _SpitTransitionsVisualsClass SpitTransitionsVisualsClass; -typedef struct _SpitTransitionsVisualsPrivate SpitTransitionsVisualsPrivate; -enum { - SPIT_TRANSITIONS_VISUALS_0_PROPERTY, - SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF_PROPERTY, - SPIT_TRANSITIONS_VISUALS_FROM_POS_PROPERTY, - SPIT_TRANSITIONS_VISUALS_TO_PIXBUF_PROPERTY, - SPIT_TRANSITIONS_VISUALS_TO_POS_PROPERTY, - SPIT_TRANSITIONS_VISUALS_BG_COLOR_PROPERTY, - SPIT_TRANSITIONS_VISUALS_NUM_PROPERTIES -}; -static GParamSpec* spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define SPIT_TRANSITIONS_TYPE_MOTION (spit_transitions_motion_get_type ()) -#define SPIT_TRANSITIONS_MOTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotion)) -#define SPIT_TRANSITIONS_MOTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotionClass)) -#define SPIT_TRANSITIONS_IS_MOTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_MOTION)) -#define SPIT_TRANSITIONS_IS_MOTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_TRANSITIONS_TYPE_MOTION)) -#define SPIT_TRANSITIONS_MOTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotionClass)) - -typedef struct _SpitTransitionsMotion SpitTransitionsMotion; -typedef struct _SpitTransitionsMotionClass SpitTransitionsMotionClass; -typedef struct _SpitTransitionsMotionPrivate SpitTransitionsMotionPrivate; -enum { - SPIT_TRANSITIONS_MOTION_0_PROPERTY, - SPIT_TRANSITIONS_MOTION_DIRECTION_PROPERTY, - SPIT_TRANSITIONS_MOTION_FPS_PROPERTY, - SPIT_TRANSITIONS_MOTION_DURATION_MSEC_PROPERTY, - SPIT_TRANSITIONS_MOTION_TOTAL_FRAMES_PROPERTY, - SPIT_TRANSITIONS_MOTION_TICK_MSEC_PROPERTY, - SPIT_TRANSITIONS_MOTION_NUM_PROPERTIES -}; -static GParamSpec* spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_NUM_PROPERTIES]; - -#define SPIT_TYPE_PLUGGABLE (spit_pluggable_get_type ()) -#define SPIT_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggable)) -#define SPIT_IS_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_PLUGGABLE)) -#define SPIT_PLUGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggableIface)) - -typedef struct _SpitPluggable SpitPluggable; -typedef struct _SpitPluggableIface SpitPluggableIface; - -#define SPIT_TYPE_PLUGGABLE_INFO (spit_pluggable_info_get_type ()) -typedef struct _SpitPluggableInfo SpitPluggableInfo; - -#define SPIT_TRANSITIONS_TYPE_DESCRIPTOR (spit_transitions_descriptor_get_type ()) -#define SPIT_TRANSITIONS_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptor)) -#define SPIT_TRANSITIONS_IS_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_DESCRIPTOR)) -#define SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptorIface)) - -typedef struct _SpitTransitionsDescriptor SpitTransitionsDescriptor; -typedef struct _SpitTransitionsDescriptorIface SpitTransitionsDescriptorIface; - -#define SPIT_TYPE_HOST_INTERFACE (spit_host_interface_get_type ()) -#define SPIT_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterface)) -#define SPIT_IS_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_HOST_INTERFACE)) -#define SPIT_HOST_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterfaceIface)) - -typedef struct _SpitHostInterface SpitHostInterface; -typedef struct _SpitHostInterfaceIface SpitHostInterfaceIface; - -#define SPIT_TRANSITIONS_TYPE_EFFECT (spit_transitions_effect_get_type ()) -#define SPIT_TRANSITIONS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect)) -#define SPIT_TRANSITIONS_IS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_EFFECT)) -#define SPIT_TRANSITIONS_EFFECT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffectIface)) - -typedef struct _SpitTransitionsEffect SpitTransitionsEffect; -typedef struct _SpitTransitionsEffectIface SpitTransitionsEffectIface; - -typedef enum { - SPIT_TRANSITIONS_DIRECTION_LEFT = 0, - SPIT_TRANSITIONS_DIRECTION_RIGHT = 1, - SPIT_TRANSITIONS_DIRECTION_FORWARD = SPIT_TRANSITIONS_DIRECTION_LEFT, - SPIT_TRANSITIONS_DIRECTION_BACKWARD = SPIT_TRANSITIONS_DIRECTION_RIGHT -} SpitTransitionsDirection; - -struct _SpitTransitionsVisuals { - GObject parent_instance; - SpitTransitionsVisualsPrivate * priv; -}; - -struct _SpitTransitionsVisualsClass { - GObjectClass parent_class; - void (*reserved0) (SpitTransitionsVisuals* self); - void (*reserved1) (SpitTransitionsVisuals* self); - void (*reserved2) (SpitTransitionsVisuals* self); - void (*reserved3) (SpitTransitionsVisuals* self); - void (*reserved4) (SpitTransitionsVisuals* self); - void (*reserved5) (SpitTransitionsVisuals* self); - void (*reserved6) (SpitTransitionsVisuals* self); - void (*reserved7) (SpitTransitionsVisuals* self); -}; - -struct _SpitTransitionsVisualsPrivate { - GdkPixbuf* _from_pixbuf; - GdkRectangle _from_pos; - GdkPixbuf* _to_pixbuf; - GdkRectangle _to_pos; - GdkRGBA _bg_color; -}; - -struct _SpitTransitionsMotion { - GObject parent_instance; - SpitTransitionsMotionPrivate * priv; -}; - -struct _SpitTransitionsMotionClass { - GObjectClass parent_class; - void (*reserved0) (SpitTransitionsMotion* self); - void (*reserved1) (SpitTransitionsMotion* self); - void (*reserved2) (SpitTransitionsMotion* self); - void (*reserved3) (SpitTransitionsMotion* self); - void (*reserved4) (SpitTransitionsMotion* self); - void (*reserved5) (SpitTransitionsMotion* self); - void (*reserved6) (SpitTransitionsMotion* self); - void (*reserved7) (SpitTransitionsMotion* self); -}; - -struct _SpitTransitionsMotionPrivate { - SpitTransitionsDirection _direction; - gint _fps; - gint _duration_msec; -}; - -struct _SpitPluggableInfo { - gchar* version; - gchar* brief_description; - gchar* authors; - gchar* copyright; - gchar* license; - gboolean is_license_wordwrapped; - gchar* website_url; - gchar* website_name; - gchar* translators; - GdkPixbuf** icons; - gint icons_length1; -}; - -struct _SpitPluggableIface { - GTypeInterface parent_iface; - gint (*get_pluggable_interface) (SpitPluggable* self, gint min_host_interface, gint max_host_interface); - const gchar* (*get_id) (SpitPluggable* self); - const gchar* (*get_pluggable_name) (SpitPluggable* self); - void (*get_info) (SpitPluggable* self, SpitPluggableInfo* info); - void (*activation) (SpitPluggable* self, gboolean enabled); - void (*reserved0) (SpitPluggable* self); - void (*reserved1) (SpitPluggable* self); - void (*reserved2) (SpitPluggable* self); - void (*reserved3) (SpitPluggable* self); - void (*reserved4) (SpitPluggable* self); - void (*reserved5) (SpitPluggable* self); - void (*reserved6) (SpitPluggable* self); - void (*reserved7) (SpitPluggable* self); -}; - -struct _SpitHostInterfaceIface { - GTypeInterface parent_iface; - GFile* (*get_module_file) (SpitHostInterface* self); - gboolean (*get_config_bool) (SpitHostInterface* self, const gchar* key, gboolean def); - void (*set_config_bool) (SpitHostInterface* self, const gchar* key, gboolean val); - gint (*get_config_int) (SpitHostInterface* self, const gchar* key, gint def); - void (*set_config_int) (SpitHostInterface* self, const gchar* key, gint val); - gchar* (*get_config_string) (SpitHostInterface* self, const gchar* key, const gchar* def); - void (*set_config_string) (SpitHostInterface* self, const gchar* key, const gchar* val); - gdouble (*get_config_double) (SpitHostInterface* self, const gchar* key, gdouble def); - void (*set_config_double) (SpitHostInterface* self, const gchar* key, gdouble val); - void (*unset_config_key) (SpitHostInterface* self, const gchar* key); - void (*reserved0) (SpitHostInterface* self); - void (*reserved1) (SpitHostInterface* self); - void (*reserved2) (SpitHostInterface* self); - void (*reserved3) (SpitHostInterface* self); - void (*reserved4) (SpitHostInterface* self); - void (*reserved5) (SpitHostInterface* self); - void (*reserved6) (SpitHostInterface* self); - void (*reserved7) (SpitHostInterface* self); -}; - -struct _SpitTransitionsEffectIface { - GTypeInterface parent_iface; - void (*get_fps) (SpitTransitionsEffect* self, gint* desired_fps, gint* min_fps); - void (*start) (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion); - gboolean (*needs_clear_background) (SpitTransitionsEffect* self); - void (*paint) (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number); - void (*advance) (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number); - void (*cancel) (SpitTransitionsEffect* self); - void (*reserved0) (SpitTransitionsEffect* self); - void (*reserved1) (SpitTransitionsEffect* self); - void (*reserved2) (SpitTransitionsEffect* self); - void (*reserved3) (SpitTransitionsEffect* self); - void (*reserved4) (SpitTransitionsEffect* self); - void (*reserved5) (SpitTransitionsEffect* self); - void (*reserved6) (SpitTransitionsEffect* self); - void (*reserved7) (SpitTransitionsEffect* self); -}; - -struct _SpitTransitionsDescriptorIface { - GTypeInterface parent_iface; - SpitTransitionsEffect* (*create) (SpitTransitionsDescriptor* self, SpitHostInterface* host); - void (*reserved0) (SpitTransitionsDescriptor* self); - void (*reserved1) (SpitTransitionsDescriptor* self); - void (*reserved2) (SpitTransitionsDescriptor* self); - void (*reserved3) (SpitTransitionsDescriptor* self); - void (*reserved4) (SpitTransitionsDescriptor* self); - void (*reserved5) (SpitTransitionsDescriptor* self); - void (*reserved6) (SpitTransitionsDescriptor* self); - void (*reserved7) (SpitTransitionsDescriptor* self); -}; - - -static gpointer spit_transitions_visuals_parent_class = NULL; -static gpointer spit_transitions_motion_parent_class = NULL; - -#define SPIT_TRANSITIONS_CURRENT_INTERFACE 0 -GType spit_transitions_direction_get_type (void) G_GNUC_CONST; -GType spit_transitions_visuals_get_type (void) G_GNUC_CONST; -#define SPIT_TRANSITIONS_VISUALS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisualsPrivate)) -SpitTransitionsVisuals* spit_transitions_visuals_new (GdkPixbuf* from_pixbuf, - GdkRectangle* from_pos, - GdkPixbuf* to_pixbuf, - GdkRectangle* to_pos, - GdkRGBA* bg_color); -SpitTransitionsVisuals* spit_transitions_visuals_construct (GType object_type, - GdkPixbuf* from_pixbuf, - GdkRectangle* from_pos, - GdkPixbuf* to_pixbuf, - GdkRectangle* to_pos, - GdkRGBA* bg_color); -static void spit_transitions_visuals_set_from_pixbuf (SpitTransitionsVisuals* self, - GdkPixbuf* value); -static void spit_transitions_visuals_set_from_pos (SpitTransitionsVisuals* self, - GdkRectangle * value); -static void spit_transitions_visuals_set_to_pixbuf (SpitTransitionsVisuals* self, - GdkPixbuf* value); -static void spit_transitions_visuals_set_to_pos (SpitTransitionsVisuals* self, - GdkRectangle * value); -static void spit_transitions_visuals_set_bg_color (SpitTransitionsVisuals* self, - GdkRGBA * value); -void spit_transitions_visuals_reserved0 (SpitTransitionsVisuals* self); -static void spit_transitions_visuals_real_reserved0 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved1 (SpitTransitionsVisuals* self); -static void spit_transitions_visuals_real_reserved1 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved2 (SpitTransitionsVisuals* self); -static void spit_transitions_visuals_real_reserved2 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved3 (SpitTransitionsVisuals* self); -static void spit_transitions_visuals_real_reserved3 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved4 (SpitTransitionsVisuals* self); -static void spit_transitions_visuals_real_reserved4 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved5 (SpitTransitionsVisuals* self); -static void spit_transitions_visuals_real_reserved5 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved6 (SpitTransitionsVisuals* self); -static void spit_transitions_visuals_real_reserved6 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved7 (SpitTransitionsVisuals* self); -static void spit_transitions_visuals_real_reserved7 (SpitTransitionsVisuals* self); -GdkPixbuf* spit_transitions_visuals_get_from_pixbuf (SpitTransitionsVisuals* self); -void spit_transitions_visuals_get_from_pos (SpitTransitionsVisuals* self, - GdkRectangle * result); -static gboolean _cairo_rectangle_int_equal (const cairo_rectangle_int_t * s1, - const cairo_rectangle_int_t * s2); -GdkPixbuf* spit_transitions_visuals_get_to_pixbuf (SpitTransitionsVisuals* self); -void spit_transitions_visuals_get_to_pos (SpitTransitionsVisuals* self, - GdkRectangle * result); -void spit_transitions_visuals_get_bg_color (SpitTransitionsVisuals* self, - GdkRGBA * result); -static gboolean _gdk_rgba_equal (const GdkRGBA * s1, - const GdkRGBA * s2); -static void spit_transitions_visuals_finalize (GObject * obj); -static void _vala_spit_transitions_visuals_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_spit_transitions_visuals_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -GType spit_transitions_motion_get_type (void) G_GNUC_CONST; -#define SPIT_TRANSITIONS_MOTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotionPrivate)) -SpitTransitionsMotion* spit_transitions_motion_new (SpitTransitionsDirection direction, - gint fps, - gint duration_msec); -SpitTransitionsMotion* spit_transitions_motion_construct (GType object_type, - SpitTransitionsDirection direction, - gint fps, - gint duration_msec); -static void spit_transitions_motion_set_direction (SpitTransitionsMotion* self, - SpitTransitionsDirection value); -static void spit_transitions_motion_set_fps (SpitTransitionsMotion* self, - gint value); -static void spit_transitions_motion_set_duration_msec (SpitTransitionsMotion* self, - gint value); -gdouble spit_transitions_motion_get_alpha (SpitTransitionsMotion* self, - gint frame_number); -gint spit_transitions_motion_get_total_frames (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved0 (SpitTransitionsMotion* self); -static void spit_transitions_motion_real_reserved0 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved1 (SpitTransitionsMotion* self); -static void spit_transitions_motion_real_reserved1 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved2 (SpitTransitionsMotion* self); -static void spit_transitions_motion_real_reserved2 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved3 (SpitTransitionsMotion* self); -static void spit_transitions_motion_real_reserved3 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved4 (SpitTransitionsMotion* self); -static void spit_transitions_motion_real_reserved4 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved5 (SpitTransitionsMotion* self); -static void spit_transitions_motion_real_reserved5 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved6 (SpitTransitionsMotion* self); -static void spit_transitions_motion_real_reserved6 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved7 (SpitTransitionsMotion* self); -static void spit_transitions_motion_real_reserved7 (SpitTransitionsMotion* self); -SpitTransitionsDirection spit_transitions_motion_get_direction (SpitTransitionsMotion* self); -gint spit_transitions_motion_get_fps (SpitTransitionsMotion* self); -gint spit_transitions_motion_get_duration_msec (SpitTransitionsMotion* self); -gint spit_transitions_motion_get_tick_msec (SpitTransitionsMotion* self); -static void spit_transitions_motion_finalize (GObject * obj); -static void _vala_spit_transitions_motion_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_spit_transitions_motion_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -GType spit_pluggable_info_get_type (void) G_GNUC_CONST; -SpitPluggableInfo* spit_pluggable_info_dup (const SpitPluggableInfo* self); -void spit_pluggable_info_free (SpitPluggableInfo* self); -void spit_pluggable_info_copy (const SpitPluggableInfo* self, - SpitPluggableInfo* dest); -void spit_pluggable_info_destroy (SpitPluggableInfo* self); -GType spit_pluggable_get_type (void) G_GNUC_CONST; -GType spit_host_interface_get_type (void) G_GNUC_CONST; -GType spit_transitions_effect_get_type (void) G_GNUC_CONST; -GType spit_transitions_descriptor_get_type (void) G_GNUC_CONST; -SpitTransitionsEffect* spit_transitions_descriptor_create (SpitTransitionsDescriptor* self, - SpitHostInterface* host); -void spit_transitions_descriptor_reserved0 (SpitTransitionsDescriptor* self); -static void spit_transitions_descriptor_real_reserved0 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved1 (SpitTransitionsDescriptor* self); -static void spit_transitions_descriptor_real_reserved1 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved2 (SpitTransitionsDescriptor* self); -static void spit_transitions_descriptor_real_reserved2 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved3 (SpitTransitionsDescriptor* self); -static void spit_transitions_descriptor_real_reserved3 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved4 (SpitTransitionsDescriptor* self); -static void spit_transitions_descriptor_real_reserved4 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved5 (SpitTransitionsDescriptor* self); -static void spit_transitions_descriptor_real_reserved5 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved6 (SpitTransitionsDescriptor* self); -static void spit_transitions_descriptor_real_reserved6 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved7 (SpitTransitionsDescriptor* self); -static void spit_transitions_descriptor_real_reserved7 (SpitTransitionsDescriptor* self); -void spit_transitions_effect_get_fps (SpitTransitionsEffect* self, - gint* desired_fps, - gint* min_fps); -void spit_transitions_effect_start (SpitTransitionsEffect* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -gboolean spit_transitions_effect_needs_clear_background (SpitTransitionsEffect* self); -void spit_transitions_effect_paint (SpitTransitionsEffect* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -void spit_transitions_effect_advance (SpitTransitionsEffect* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -void spit_transitions_effect_cancel (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved0 (SpitTransitionsEffect* self); -static void spit_transitions_effect_real_reserved0 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved1 (SpitTransitionsEffect* self); -static void spit_transitions_effect_real_reserved1 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved2 (SpitTransitionsEffect* self); -static void spit_transitions_effect_real_reserved2 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved3 (SpitTransitionsEffect* self); -static void spit_transitions_effect_real_reserved3 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved4 (SpitTransitionsEffect* self); -static void spit_transitions_effect_real_reserved4 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved5 (SpitTransitionsEffect* self); -static void spit_transitions_effect_real_reserved5 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved6 (SpitTransitionsEffect* self); -static void spit_transitions_effect_real_reserved6 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved7 (SpitTransitionsEffect* self); -static void spit_transitions_effect_real_reserved7 (SpitTransitionsEffect* self); - - -/** - * Direction indicates what direction (animated motion) the {@link Effect} should simulate the - * images are moving, if appropriate. - * - * The direction indicates from what side or corner of the screen the new image should come in from. - * Thus, a LEFT slide means the current image exits via the left-hand edge of the screen and the - * new image moves into place from the right-hand edge. - * - * UP, DOWN, and diagonals may be added at some point. - */ -GType -spit_transitions_direction_get_type (void) -{ - static volatile gsize spit_transitions_direction_type_id__volatile = 0; - if (g_once_init_enter (&spit_transitions_direction_type_id__volatile)) { - static const GEnumValue values[] = {{SPIT_TRANSITIONS_DIRECTION_LEFT, "SPIT_TRANSITIONS_DIRECTION_LEFT", "left"}, {SPIT_TRANSITIONS_DIRECTION_RIGHT, "SPIT_TRANSITIONS_DIRECTION_RIGHT", "right"}, {SPIT_TRANSITIONS_DIRECTION_FORWARD, "SPIT_TRANSITIONS_DIRECTION_FORWARD", "forward"}, {SPIT_TRANSITIONS_DIRECTION_BACKWARD, "SPIT_TRANSITIONS_DIRECTION_BACKWARD", "backward"}, {0, NULL, NULL}}; - GType spit_transitions_direction_type_id; - spit_transitions_direction_type_id = g_enum_register_static ("SpitTransitionsDirection", values); - g_once_init_leave (&spit_transitions_direction_type_id__volatile, spit_transitions_direction_type_id); - } - return spit_transitions_direction_type_id__volatile; -} - - -SpitTransitionsVisuals* -spit_transitions_visuals_construct (GType object_type, - GdkPixbuf* from_pixbuf, - GdkRectangle* from_pos, - GdkPixbuf* to_pixbuf, - GdkRectangle* to_pos, - GdkRGBA* bg_color) -{ - SpitTransitionsVisuals * self = NULL; - GdkRectangle _tmp0_; - GdkRectangle _tmp1_; - GdkRGBA _tmp2_; -#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail ((from_pixbuf == NULL) || GDK_IS_PIXBUF (from_pixbuf), NULL); -#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (from_pos != NULL, NULL); -#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail ((to_pixbuf == NULL) || GDK_IS_PIXBUF (to_pixbuf), NULL); -#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (to_pos != NULL, NULL); -#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (bg_color != NULL, NULL); -#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self = (SpitTransitionsVisuals*) g_object_new (object_type, NULL); -#line 96 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_from_pixbuf (self, from_pixbuf); -#line 97 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = *from_pos; -#line 97 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_from_pos (self, &_tmp0_); -#line 98 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_to_pixbuf (self, to_pixbuf); -#line 99 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp1_ = *to_pos; -#line 99 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_to_pos (self, &_tmp1_); -#line 100 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp2_ = *bg_color; -#line 100 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_bg_color (self, &_tmp2_); -#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return self; -#line 487 "TransitionsInterfaces.c" -} - - -SpitTransitionsVisuals* -spit_transitions_visuals_new (GdkPixbuf* from_pixbuf, - GdkRectangle* from_pos, - GdkPixbuf* to_pixbuf, - GdkRectangle* to_pos, - GdkRGBA* bg_color) -{ -#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return spit_transitions_visuals_construct (SPIT_TRANSITIONS_TYPE_VISUALS, from_pixbuf, from_pos, to_pixbuf, to_pos, bg_color); -#line 500 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_real_reserved0 (SpitTransitionsVisuals* self) -{ -} - - -void -spit_transitions_visuals_reserved0 (SpitTransitionsVisuals* self) -{ -#line 106 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 106 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved0 (self); -#line 517 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_real_reserved1 (SpitTransitionsVisuals* self) -{ -} - - -void -spit_transitions_visuals_reserved1 (SpitTransitionsVisuals* self) -{ -#line 107 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 107 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved1 (self); -#line 534 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_real_reserved2 (SpitTransitionsVisuals* self) -{ -} - - -void -spit_transitions_visuals_reserved2 (SpitTransitionsVisuals* self) -{ -#line 108 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 108 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved2 (self); -#line 551 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_real_reserved3 (SpitTransitionsVisuals* self) -{ -} - - -void -spit_transitions_visuals_reserved3 (SpitTransitionsVisuals* self) -{ -#line 109 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 109 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved3 (self); -#line 568 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_real_reserved4 (SpitTransitionsVisuals* self) -{ -} - - -void -spit_transitions_visuals_reserved4 (SpitTransitionsVisuals* self) -{ -#line 110 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 110 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved4 (self); -#line 585 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_real_reserved5 (SpitTransitionsVisuals* self) -{ -} - - -void -spit_transitions_visuals_reserved5 (SpitTransitionsVisuals* self) -{ -#line 111 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 111 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved5 (self); -#line 602 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_real_reserved6 (SpitTransitionsVisuals* self) -{ -} - - -void -spit_transitions_visuals_reserved6 (SpitTransitionsVisuals* self) -{ -#line 112 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 112 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved6 (self); -#line 619 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_real_reserved7 (SpitTransitionsVisuals* self) -{ -} - - -void -spit_transitions_visuals_reserved7 (SpitTransitionsVisuals* self) -{ -#line 113 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 113 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved7 (self); -#line 636 "TransitionsInterfaces.c" -} - - -GdkPixbuf* -spit_transitions_visuals_get_from_pixbuf (SpitTransitionsVisuals* self) -{ - GdkPixbuf* result; - GdkPixbuf* _tmp0_; -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self), NULL); -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_from_pixbuf; -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - result = _tmp0_; -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return result; -#line 653 "TransitionsInterfaces.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return self ? g_object_ref (self) : NULL; -#line 662 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_set_from_pixbuf (SpitTransitionsVisuals* self, - GdkPixbuf* value) -{ -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (spit_transitions_visuals_get_from_pixbuf (self) != value) { -#line 674 "TransitionsInterfaces.c" - GdkPixbuf* _tmp0_; -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = _g_object_ref0 (value); -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _g_object_unref0 (self->priv->_from_pixbuf); -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv->_from_pixbuf = _tmp0_; -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_notify_by_pspec ((GObject *) self, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF_PROPERTY]); -#line 684 "TransitionsInterfaces.c" - } -} - - -void -spit_transitions_visuals_get_from_pos (SpitTransitionsVisuals* self, - GdkRectangle * result) -{ - GdkRectangle _tmp0_; -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_from_pos; -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - *result = _tmp0_; -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return; -#line 702 "TransitionsInterfaces.c" -} - - -static gboolean -_cairo_rectangle_int_equal (const cairo_rectangle_int_t * s1, - const cairo_rectangle_int_t * s2) -{ -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1 == s2) { -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return TRUE; -#line 714 "TransitionsInterfaces.c" - } -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1 == NULL) { -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 720 "TransitionsInterfaces.c" - } -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s2 == NULL) { -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 726 "TransitionsInterfaces.c" - } -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1->x != s2->x) { -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 732 "TransitionsInterfaces.c" - } -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1->y != s2->y) { -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 738 "TransitionsInterfaces.c" - } -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1->width != s2->width) { -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 744 "TransitionsInterfaces.c" - } -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1->height != s2->height) { -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 750 "TransitionsInterfaces.c" - } -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return TRUE; -#line 754 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_set_from_pos (SpitTransitionsVisuals* self, - GdkRectangle * value) -{ - GdkRectangle old_value; -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (_cairo_rectangle_int_equal (value, (spit_transitions_visuals_get_from_pos (self, &old_value), &old_value)) != TRUE) { -#line 767 "TransitionsInterfaces.c" - GdkRectangle _tmp0_; -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = *value; -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv->_from_pos = _tmp0_; -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_notify_by_pspec ((GObject *) self, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_FROM_POS_PROPERTY]); -#line 775 "TransitionsInterfaces.c" - } -} - - -GdkPixbuf* -spit_transitions_visuals_get_to_pixbuf (SpitTransitionsVisuals* self) -{ - GdkPixbuf* result; - GdkPixbuf* _tmp0_; -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self), NULL); -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_to_pixbuf; -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - result = _tmp0_; -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return result; -#line 793 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_set_to_pixbuf (SpitTransitionsVisuals* self, - GdkPixbuf* value) -{ -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (spit_transitions_visuals_get_to_pixbuf (self) != value) { -#line 805 "TransitionsInterfaces.c" - GdkPixbuf* _tmp0_; -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = _g_object_ref0 (value); -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _g_object_unref0 (self->priv->_to_pixbuf); -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv->_to_pixbuf = _tmp0_; -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_notify_by_pspec ((GObject *) self, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_TO_PIXBUF_PROPERTY]); -#line 815 "TransitionsInterfaces.c" - } -} - - -void -spit_transitions_visuals_get_to_pos (SpitTransitionsVisuals* self, - GdkRectangle * result) -{ - GdkRectangle _tmp0_; -#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_to_pos; -#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - *result = _tmp0_; -#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return; -#line 833 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_set_to_pos (SpitTransitionsVisuals* self, - GdkRectangle * value) -{ - GdkRectangle old_value; -#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (_cairo_rectangle_int_equal (value, (spit_transitions_visuals_get_to_pos (self, &old_value), &old_value)) != TRUE) { -#line 846 "TransitionsInterfaces.c" - GdkRectangle _tmp0_; -#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = *value; -#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv->_to_pos = _tmp0_; -#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_notify_by_pspec ((GObject *) self, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_TO_POS_PROPERTY]); -#line 854 "TransitionsInterfaces.c" - } -} - - -void -spit_transitions_visuals_get_bg_color (SpitTransitionsVisuals* self, - GdkRGBA * result) -{ - GdkRGBA _tmp0_; -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_bg_color; -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - *result = _tmp0_; -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return; -#line 872 "TransitionsInterfaces.c" -} - - -static gboolean -_gdk_rgba_equal (const GdkRGBA * s1, - const GdkRGBA * s2) -{ -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1 == s2) { -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return TRUE; -#line 884 "TransitionsInterfaces.c" - } -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1 == NULL) { -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 890 "TransitionsInterfaces.c" - } -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s2 == NULL) { -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 896 "TransitionsInterfaces.c" - } -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1->red != s2->red) { -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 902 "TransitionsInterfaces.c" - } -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1->green != s2->green) { -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 908 "TransitionsInterfaces.c" - } -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1->blue != s2->blue) { -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 914 "TransitionsInterfaces.c" - } -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1->alpha != s2->alpha) { -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 920 "TransitionsInterfaces.c" - } -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return TRUE; -#line 924 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_set_bg_color (SpitTransitionsVisuals* self, - GdkRGBA * value) -{ - GdkRGBA old_value; -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (_gdk_rgba_equal (value, (spit_transitions_visuals_get_bg_color (self, &old_value), &old_value)) != TRUE) { -#line 937 "TransitionsInterfaces.c" - GdkRGBA _tmp0_; -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = *value; -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv->_bg_color = _tmp0_; -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_notify_by_pspec ((GObject *) self, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_BG_COLOR_PROPERTY]); -#line 945 "TransitionsInterfaces.c" - } -} - - -static void -spit_transitions_visuals_class_init (SpitTransitionsVisualsClass * klass) -{ -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_parent_class = g_type_class_peek_parent (klass); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_type_class_add_private (klass, sizeof (SpitTransitionsVisualsPrivate)); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsVisualsClass *) klass)->reserved0 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved0; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsVisualsClass *) klass)->reserved1 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved1; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsVisualsClass *) klass)->reserved2 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved2; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsVisualsClass *) klass)->reserved3 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved3; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsVisualsClass *) klass)->reserved4 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved4; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsVisualsClass *) klass)->reserved5 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved5; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsVisualsClass *) klass)->reserved6 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved6; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsVisualsClass *) klass)->reserved7 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved7; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_spit_transitions_visuals_get_property; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_spit_transitions_visuals_set_property; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_CLASS (klass)->finalize = spit_transitions_visuals_finalize; -#line 979 "TransitionsInterfaces.c" - /** - * Returns the starting pixbuf (the pixbuf currently on the display). - * - * If transitioning from a blank screen, this will return null. - */ -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF_PROPERTY, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF_PROPERTY] = g_param_spec_object ("from-pixbuf", "from-pixbuf", "from-pixbuf", gdk_pixbuf_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 987 "TransitionsInterfaces.c" - /** - * Returns the position of the starting pixbuf on the display. - * - * If transitioning from a blank screen, this will be zeroed. - */ -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_FROM_POS_PROPERTY, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_FROM_POS_PROPERTY] = g_param_spec_boxed ("from-pos", "from-pos", "from-pos", gdk_rectangle_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 995 "TransitionsInterfaces.c" - /** - * Returns the ending pixbuf (the pixbuf that the transition should result in). - * - * If transitioning to a blank screen, this will return null. - */ -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_TO_PIXBUF_PROPERTY, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_TO_PIXBUF_PROPERTY] = g_param_spec_object ("to-pixbuf", "to-pixbuf", "to-pixbuf", gdk_pixbuf_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1003 "TransitionsInterfaces.c" - /** - * Returns the position of the ending pixbuf on the display. - * - * If transitioning to a blank screen, this will be zeroed. - */ -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_TO_POS_PROPERTY, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_TO_POS_PROPERTY] = g_param_spec_boxed ("to-pos", "to-pos", "to-pos", gdk_rectangle_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1011 "TransitionsInterfaces.c" - /** - * Returns the background color of the viewport. - */ -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_BG_COLOR_PROPERTY, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_BG_COLOR_PROPERTY] = g_param_spec_boxed ("bg-color", "bg-color", "bg-color", gdk_rgba_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1017 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_instance_init (SpitTransitionsVisuals * self) -{ -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv = SPIT_TRANSITIONS_VISUALS_GET_PRIVATE (self); -#line 1026 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_finalize (GObject * obj) -{ - SpitTransitionsVisuals * self; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisuals); -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _g_object_unref0 (self->priv->_from_pixbuf); -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _g_object_unref0 (self->priv->_to_pixbuf); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_CLASS (spit_transitions_visuals_parent_class)->finalize (obj); -#line 1042 "TransitionsInterfaces.c" -} - - -/** - * Visuals contains the pertinent drawing information for the transition that must occur. - * - * A Visuals object is supplied to {@link Effect} at the start of the transition and during each - * call to paint to the screen. - * - * Note that if starting with a blank screen, from_pixbuf will be null and from_pos will be - * zeroed. The transition should be considered to start from a blank screen of the supplied - * background color. - * - * Also note that if transitioning to a blank screen, to_pixbuf will be null and to_pos will be - * zeroed. Like the prior case, the transition should move toward a blank screen of the background - * color. - */ -GType -spit_transitions_visuals_get_type (void) -{ - static volatile gsize spit_transitions_visuals_type_id__volatile = 0; - if (g_once_init_enter (&spit_transitions_visuals_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitTransitionsVisualsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_transitions_visuals_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitTransitionsVisuals), 0, (GInstanceInitFunc) spit_transitions_visuals_instance_init, NULL }; - GType spit_transitions_visuals_type_id; - spit_transitions_visuals_type_id = g_type_register_static (G_TYPE_OBJECT, "SpitTransitionsVisuals", &g_define_type_info, 0); - g_once_init_leave (&spit_transitions_visuals_type_id__volatile, spit_transitions_visuals_type_id); - } - return spit_transitions_visuals_type_id__volatile; -} - - -static void -_vala_spit_transitions_visuals_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - SpitTransitionsVisuals * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisuals); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - switch (property_id) { -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF_PROPERTY: -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_object (value, spit_transitions_visuals_get_from_pixbuf (self)); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_FROM_POS_PROPERTY: -#line 1092 "TransitionsInterfaces.c" - { - GdkRectangle boxed; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_get_from_pos (self, &boxed); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_boxed (value, &boxed); -#line 1099 "TransitionsInterfaces.c" - } -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_TO_PIXBUF_PROPERTY: -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_object (value, spit_transitions_visuals_get_to_pixbuf (self)); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_TO_POS_PROPERTY: -#line 1111 "TransitionsInterfaces.c" - { - GdkRectangle boxed; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_get_to_pos (self, &boxed); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_boxed (value, &boxed); -#line 1118 "TransitionsInterfaces.c" - } -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_BG_COLOR_PROPERTY: -#line 1124 "TransitionsInterfaces.c" - { - GdkRGBA boxed; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_get_bg_color (self, &boxed); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_boxed (value, &boxed); -#line 1131 "TransitionsInterfaces.c" - } -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 1135 "TransitionsInterfaces.c" - default: -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 1141 "TransitionsInterfaces.c" - } -} - - -static void -_vala_spit_transitions_visuals_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - SpitTransitionsVisuals * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisuals); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - switch (property_id) { -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF_PROPERTY: -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_from_pixbuf (self, g_value_get_object (value)); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_FROM_POS_PROPERTY: -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_from_pos (self, g_value_get_boxed (value)); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_TO_PIXBUF_PROPERTY: -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_to_pixbuf (self, g_value_get_object (value)); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_TO_POS_PROPERTY: -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_to_pos (self, g_value_get_boxed (value)); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_BG_COLOR_PROPERTY: -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_bg_color (self, g_value_get_boxed (value)); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 1186 "TransitionsInterfaces.c" - default: -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 1192 "TransitionsInterfaces.c" - } -} - - -SpitTransitionsMotion* -spit_transitions_motion_construct (GType object_type, - SpitTransitionsDirection direction, - gint fps, - gint duration_msec) -{ - SpitTransitionsMotion * self = NULL; -#line 157 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self = (SpitTransitionsMotion*) g_object_new (object_type, NULL); -#line 158 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_motion_set_direction (self, direction); -#line 159 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_motion_set_fps (self, fps); -#line 160 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_motion_set_duration_msec (self, duration_msec); -#line 157 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return self; -#line 1214 "TransitionsInterfaces.c" -} - - -SpitTransitionsMotion* -spit_transitions_motion_new (SpitTransitionsDirection direction, - gint fps, - gint duration_msec) -{ -#line 157 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return spit_transitions_motion_construct (SPIT_TRANSITIONS_TYPE_MOTION, direction, fps, duration_msec); -#line 1225 "TransitionsInterfaces.c" -} - - -/** - * Returns a value from 0.0 to 1.0 that represents the percentage of the transition's completion - * for the specified frame. - */ -gdouble -spit_transitions_motion_get_alpha (SpitTransitionsMotion* self, - gint frame_number) -{ - gdouble result = 0.0; - gint _tmp0_; - gint _tmp1_; -#line 167 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_MOTION (self), 0.0); -#line 168 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = spit_transitions_motion_get_total_frames (self); -#line 168 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp1_ = _tmp0_; -#line 168 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - result = ((gdouble) frame_number) / ((gdouble) _tmp1_); -#line 168 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return result; -#line 1250 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_real_reserved0 (SpitTransitionsMotion* self) -{ -} - - -void -spit_transitions_motion_reserved0 (SpitTransitionsMotion* self) -{ -#line 174 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 174 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved0 (self); -#line 1267 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_real_reserved1 (SpitTransitionsMotion* self) -{ -} - - -void -spit_transitions_motion_reserved1 (SpitTransitionsMotion* self) -{ -#line 175 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 175 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved1 (self); -#line 1284 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_real_reserved2 (SpitTransitionsMotion* self) -{ -} - - -void -spit_transitions_motion_reserved2 (SpitTransitionsMotion* self) -{ -#line 176 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 176 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved2 (self); -#line 1301 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_real_reserved3 (SpitTransitionsMotion* self) -{ -} - - -void -spit_transitions_motion_reserved3 (SpitTransitionsMotion* self) -{ -#line 177 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 177 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved3 (self); -#line 1318 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_real_reserved4 (SpitTransitionsMotion* self) -{ -} - - -void -spit_transitions_motion_reserved4 (SpitTransitionsMotion* self) -{ -#line 178 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 178 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved4 (self); -#line 1335 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_real_reserved5 (SpitTransitionsMotion* self) -{ -} - - -void -spit_transitions_motion_reserved5 (SpitTransitionsMotion* self) -{ -#line 179 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 179 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved5 (self); -#line 1352 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_real_reserved6 (SpitTransitionsMotion* self) -{ -} - - -void -spit_transitions_motion_reserved6 (SpitTransitionsMotion* self) -{ -#line 180 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 180 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved6 (self); -#line 1369 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_real_reserved7 (SpitTransitionsMotion* self) -{ -} - - -void -spit_transitions_motion_reserved7 (SpitTransitionsMotion* self) -{ -#line 181 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 181 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved7 (self); -#line 1386 "TransitionsInterfaces.c" -} - - -SpitTransitionsDirection -spit_transitions_motion_get_direction (SpitTransitionsMotion* self) -{ - SpitTransitionsDirection result; - SpitTransitionsDirection _tmp0_; -#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_MOTION (self), 0); -#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_direction; -#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - result = _tmp0_; -#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return result; -#line 1403 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_set_direction (SpitTransitionsMotion* self, - SpitTransitionsDirection value) -{ -#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (spit_transitions_motion_get_direction (self) != value) { -#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv->_direction = value; -#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_notify_by_pspec ((GObject *) self, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_DIRECTION_PROPERTY]); -#line 1419 "TransitionsInterfaces.c" - } -} - - -gint -spit_transitions_motion_get_fps (SpitTransitionsMotion* self) -{ - gint result; - gint _tmp0_; -#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_MOTION (self), 0); -#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_fps; -#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - result = _tmp0_; -#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return result; -#line 1437 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_set_fps (SpitTransitionsMotion* self, - gint value) -{ -#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (spit_transitions_motion_get_fps (self) != value) { -#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv->_fps = value; -#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_notify_by_pspec ((GObject *) self, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_FPS_PROPERTY]); -#line 1453 "TransitionsInterfaces.c" - } -} - - -gint -spit_transitions_motion_get_duration_msec (SpitTransitionsMotion* self) -{ - gint result; - gint _tmp0_; -#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_MOTION (self), 0); -#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_duration_msec; -#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - result = _tmp0_; -#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return result; -#line 1471 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_set_duration_msec (SpitTransitionsMotion* self, - gint value) -{ -#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (spit_transitions_motion_get_duration_msec (self) != value) { -#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv->_duration_msec = value; -#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_notify_by_pspec ((GObject *) self, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_DURATION_MSEC_PROPERTY]); -#line 1487 "TransitionsInterfaces.c" - } -} - - -gint -spit_transitions_motion_get_total_frames (SpitTransitionsMotion* self) -{ - gint result; - gint _tmp0_; - gint _tmp1_; -#line 143 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_MOTION (self), 0); -#line 144 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_fps; -#line 144 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp1_ = self->priv->_duration_msec; -#line 144 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - result = (gint) (((gdouble) _tmp0_) * (((gdouble) _tmp1_) / 1000.0)); -#line 144 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return result; -#line 1508 "TransitionsInterfaces.c" -} - - -gint -spit_transitions_motion_get_tick_msec (SpitTransitionsMotion* self) -{ - gint result; - gint _tmp0_; -#line 152 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_MOTION (self), 0); -#line 153 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_fps; -#line 153 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - result = (gint) (1000.0 / ((gdouble) _tmp0_)); -#line 153 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return result; -#line 1525 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_class_init (SpitTransitionsMotionClass * klass) -{ -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_motion_parent_class = g_type_class_peek_parent (klass); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_type_class_add_private (klass, sizeof (SpitTransitionsMotionPrivate)); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsMotionClass *) klass)->reserved0 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved0; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsMotionClass *) klass)->reserved1 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved1; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsMotionClass *) klass)->reserved2 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved2; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsMotionClass *) klass)->reserved3 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved3; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsMotionClass *) klass)->reserved4 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved4; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsMotionClass *) klass)->reserved5 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved5; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsMotionClass *) klass)->reserved6 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved6; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsMotionClass *) klass)->reserved7 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved7; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_spit_transitions_motion_get_property; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_spit_transitions_motion_set_property; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_CLASS (klass)->finalize = spit_transitions_motion_finalize; -#line 1558 "TransitionsInterfaces.c" - /** - * Returns the direction the transition should occur in (if pertinent to the {@link Effect}. - */ -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_MOTION_DIRECTION_PROPERTY, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_DIRECTION_PROPERTY] = g_param_spec_enum ("direction", "direction", "direction", SPIT_TRANSITIONS_TYPE_DIRECTION, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1564 "TransitionsInterfaces.c" - /** - * Returns the frames per second of the {@link Effect}. - */ -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_MOTION_FPS_PROPERTY, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_FPS_PROPERTY] = g_param_spec_int ("fps", "fps", "fps", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1570 "TransitionsInterfaces.c" - /** - * Returns the amount of time the transition should take (in milliseconds). - */ -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_MOTION_DURATION_MSEC_PROPERTY, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_DURATION_MSEC_PROPERTY] = g_param_spec_int ("duration-msec", "duration-msec", "duration-msec", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1576 "TransitionsInterfaces.c" - /** - * Returns the number of frames that should be required to perform the transition in the - * expected {@link duration_msec}. - */ -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_MOTION_TOTAL_FRAMES_PROPERTY, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_TOTAL_FRAMES_PROPERTY] = g_param_spec_int ("total-frames", "total-frames", "total-frames", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1583 "TransitionsInterfaces.c" - /** - * Returns the approximate time between each frame draw (in milliseconds). - */ -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_MOTION_TICK_MSEC_PROPERTY, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_TICK_MSEC_PROPERTY] = g_param_spec_int ("tick-msec", "tick-msec", "tick-msec", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1589 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_instance_init (SpitTransitionsMotion * self) -{ -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv = SPIT_TRANSITIONS_MOTION_GET_PRIVATE (self); -#line 1598 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_finalize (GObject * obj) -{ - SpitTransitionsMotion * self; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotion); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_CLASS (spit_transitions_motion_parent_class)->finalize (obj); -#line 1610 "TransitionsInterfaces.c" -} - - -/** - * Motion contains all the pertinent information regarding the animation of the transition. - * - * Some of Motion's information may not apply to a transition effect (such as Direction for a - * fade effect). - */ -GType -spit_transitions_motion_get_type (void) -{ - static volatile gsize spit_transitions_motion_type_id__volatile = 0; - if (g_once_init_enter (&spit_transitions_motion_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitTransitionsMotionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_transitions_motion_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitTransitionsMotion), 0, (GInstanceInitFunc) spit_transitions_motion_instance_init, NULL }; - GType spit_transitions_motion_type_id; - spit_transitions_motion_type_id = g_type_register_static (G_TYPE_OBJECT, "SpitTransitionsMotion", &g_define_type_info, 0); - g_once_init_leave (&spit_transitions_motion_type_id__volatile, spit_transitions_motion_type_id); - } - return spit_transitions_motion_type_id__volatile; -} - - -static void -_vala_spit_transitions_motion_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - SpitTransitionsMotion * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotion); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - switch (property_id) { -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_MOTION_DIRECTION_PROPERTY: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_enum (value, spit_transitions_motion_get_direction (self)); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_MOTION_FPS_PROPERTY: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_int (value, spit_transitions_motion_get_fps (self)); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_MOTION_DURATION_MSEC_PROPERTY: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_int (value, spit_transitions_motion_get_duration_msec (self)); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_MOTION_TOTAL_FRAMES_PROPERTY: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_int (value, spit_transitions_motion_get_total_frames (self)); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_MOTION_TICK_MSEC_PROPERTY: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_int (value, spit_transitions_motion_get_tick_msec (self)); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 1674 "TransitionsInterfaces.c" - default: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 1680 "TransitionsInterfaces.c" - } -} - - -static void -_vala_spit_transitions_motion_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - SpitTransitionsMotion * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotion); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - switch (property_id) { -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_MOTION_DIRECTION_PROPERTY: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_motion_set_direction (self, g_value_get_enum (value)); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_MOTION_FPS_PROPERTY: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_motion_set_fps (self, g_value_get_int (value)); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_MOTION_DURATION_MSEC_PROPERTY: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_motion_set_duration_msec (self, g_value_get_int (value)); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 1713 "TransitionsInterfaces.c" - default: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 1719 "TransitionsInterfaces.c" - } -} - - -/** - * Returns an instance of the {@link Effect} this descriptor represents. - */ -SpitTransitionsEffect* -spit_transitions_descriptor_create (SpitTransitionsDescriptor* self, - SpitHostInterface* host) -{ -#line 191 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self), NULL); -#line 191 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->create (self, host); -#line 1735 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_descriptor_real_reserved0 (SpitTransitionsDescriptor* self) -{ -} - - -void -spit_transitions_descriptor_reserved0 (SpitTransitionsDescriptor* self) -{ -#line 196 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self)); -#line 196 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved0 (self); -#line 1752 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_descriptor_real_reserved1 (SpitTransitionsDescriptor* self) -{ -} - - -void -spit_transitions_descriptor_reserved1 (SpitTransitionsDescriptor* self) -{ -#line 197 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self)); -#line 197 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved1 (self); -#line 1769 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_descriptor_real_reserved2 (SpitTransitionsDescriptor* self) -{ -} - - -void -spit_transitions_descriptor_reserved2 (SpitTransitionsDescriptor* self) -{ -#line 198 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self)); -#line 198 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved2 (self); -#line 1786 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_descriptor_real_reserved3 (SpitTransitionsDescriptor* self) -{ -} - - -void -spit_transitions_descriptor_reserved3 (SpitTransitionsDescriptor* self) -{ -#line 199 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self)); -#line 199 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved3 (self); -#line 1803 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_descriptor_real_reserved4 (SpitTransitionsDescriptor* self) -{ -} - - -void -spit_transitions_descriptor_reserved4 (SpitTransitionsDescriptor* self) -{ -#line 200 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self)); -#line 200 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved4 (self); -#line 1820 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_descriptor_real_reserved5 (SpitTransitionsDescriptor* self) -{ -} - - -void -spit_transitions_descriptor_reserved5 (SpitTransitionsDescriptor* self) -{ -#line 201 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self)); -#line 201 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved5 (self); -#line 1837 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_descriptor_real_reserved6 (SpitTransitionsDescriptor* self) -{ -} - - -void -spit_transitions_descriptor_reserved6 (SpitTransitionsDescriptor* self) -{ -#line 202 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self)); -#line 202 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved6 (self); -#line 1854 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_descriptor_real_reserved7 (SpitTransitionsDescriptor* self) -{ -} - - -void -spit_transitions_descriptor_reserved7 (SpitTransitionsDescriptor* self) -{ -#line 203 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self)); -#line 203 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved7 (self); -#line 1871 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_descriptor_base_init (SpitTransitionsDescriptorIface * iface) -{ -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - static gboolean initialized = FALSE; -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (!initialized) { -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - initialized = TRUE; -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved0 = spit_transitions_descriptor_real_reserved0; -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved1 = spit_transitions_descriptor_real_reserved1; -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved2 = spit_transitions_descriptor_real_reserved2; -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved3 = spit_transitions_descriptor_real_reserved3; -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved4 = spit_transitions_descriptor_real_reserved4; -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved5 = spit_transitions_descriptor_real_reserved5; -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved6 = spit_transitions_descriptor_real_reserved6; -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved7 = spit_transitions_descriptor_real_reserved7; -#line 1900 "TransitionsInterfaces.c" - } -} - - -/** - * A Descriptor offers a factory method for creating {@link Effect} instances. - */ -GType -spit_transitions_descriptor_get_type (void) -{ - static volatile gsize spit_transitions_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&spit_transitions_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitTransitionsDescriptorIface), (GBaseInitFunc) spit_transitions_descriptor_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_transitions_descriptor_type_id; - spit_transitions_descriptor_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitTransitionsDescriptor", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_transitions_descriptor_type_id, G_TYPE_OBJECT); - g_type_interface_add_prerequisite (spit_transitions_descriptor_type_id, SPIT_TYPE_PLUGGABLE); - g_once_init_leave (&spit_transitions_descriptor_type_id__volatile, spit_transitions_descriptor_type_id); - } - return spit_transitions_descriptor_type_id__volatile; -} - - -/** - * Returns frames per second (FPS) information for this effect. - * - * If the min_fps is not met, the Effect may be cancelled or the host will skip ahead. - * - * @param desired_fps The desired FPS of the transition. Return zero if no - * transition is to occur (instantaneous or null transition). - * @param min_fps The minimum FPS before the effect is consider "ruined". - * Return zero if any FPS is acceptable. - */ -void -spit_transitions_effect_get_fps (SpitTransitionsEffect* self, - gint* desired_fps, - gint* min_fps) -{ -#line 240 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 240 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->get_fps (self, desired_fps, min_fps); -#line 1943 "TransitionsInterfaces.c" -} - - -/** - * Called when the effect is starting. - * - * All state should be reset. The frame number, which is not supplied, is one. - */ -void -spit_transitions_effect_start (SpitTransitionsEffect* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ -#line 247 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 247 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->start (self, visuals, motion); -#line 1961 "TransitionsInterfaces.c" -} - - -/** - * Return true if the Effect needs the background cleared prior to calling {@link paint}. - */ -gboolean -spit_transitions_effect_needs_clear_background (SpitTransitionsEffect* self) -{ -#line 252 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self), FALSE); -#line 252 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->needs_clear_background (self); -#line 1975 "TransitionsInterfaces.c" -} - - -/** - * Called when the effect needs to paint (i.e. an expose or draw event has occurred). - * - * This call should ''not'' advance the state of the effect (i.e. it may be called more than - * once for the same frame). - * - * @param ctx The Cairo context the Effect should use to paint the transition. - * @param width The width (in pixels) of the Cairo surface. - * @param height The height (in pixels) of the Cairo surface. - * @param frame_number The ''one-based'' frame being drawn. - */ -void -spit_transitions_effect_paint (SpitTransitionsEffect* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ -#line 265 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 265 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->paint (self, visuals, motion, ctx, width, height, frame_number); -#line 2003 "TransitionsInterfaces.c" -} - - -/** - * Called to notify the effect that the state of the transition should advance to the specified - * frame number. - * - * Note: There is no guarantee frame numbers will be consecutive between calls - * to next, especially if the transition clock is attempting to catch up. - * - * @param frame_number The ''one-based'' frame being advanced to. - */ -void -spit_transitions_effect_advance (SpitTransitionsEffect* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ -#line 277 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 277 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->advance (self, visuals, motion, frame_number); -#line 2026 "TransitionsInterfaces.c" -} - - -/** - * Called if the Effect should halt the transition. - * - * It only needs to reset state if {@link start} is called again. - */ -void -spit_transitions_effect_cancel (SpitTransitionsEffect* self) -{ -#line 284 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 284 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->cancel (self); -#line 2042 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_effect_real_reserved0 (SpitTransitionsEffect* self) -{ -} - - -void -spit_transitions_effect_reserved0 (SpitTransitionsEffect* self) -{ -#line 289 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 289 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved0 (self); -#line 2059 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_effect_real_reserved1 (SpitTransitionsEffect* self) -{ -} - - -void -spit_transitions_effect_reserved1 (SpitTransitionsEffect* self) -{ -#line 290 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 290 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved1 (self); -#line 2076 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_effect_real_reserved2 (SpitTransitionsEffect* self) -{ -} - - -void -spit_transitions_effect_reserved2 (SpitTransitionsEffect* self) -{ -#line 291 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 291 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved2 (self); -#line 2093 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_effect_real_reserved3 (SpitTransitionsEffect* self) -{ -} - - -void -spit_transitions_effect_reserved3 (SpitTransitionsEffect* self) -{ -#line 292 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 292 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved3 (self); -#line 2110 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_effect_real_reserved4 (SpitTransitionsEffect* self) -{ -} - - -void -spit_transitions_effect_reserved4 (SpitTransitionsEffect* self) -{ -#line 293 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 293 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved4 (self); -#line 2127 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_effect_real_reserved5 (SpitTransitionsEffect* self) -{ -} - - -void -spit_transitions_effect_reserved5 (SpitTransitionsEffect* self) -{ -#line 294 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 294 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved5 (self); -#line 2144 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_effect_real_reserved6 (SpitTransitionsEffect* self) -{ -} - - -void -spit_transitions_effect_reserved6 (SpitTransitionsEffect* self) -{ -#line 295 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 295 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved6 (self); -#line 2161 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_effect_real_reserved7 (SpitTransitionsEffect* self) -{ -} - - -void -spit_transitions_effect_reserved7 (SpitTransitionsEffect* self) -{ -#line 296 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 296 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved7 (self); -#line 2178 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_effect_base_init (SpitTransitionsEffectIface * iface) -{ -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - static gboolean initialized = FALSE; -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (!initialized) { -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - initialized = TRUE; -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved0 = spit_transitions_effect_real_reserved0; -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved1 = spit_transitions_effect_real_reserved1; -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved2 = spit_transitions_effect_real_reserved2; -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved3 = spit_transitions_effect_real_reserved3; -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved4 = spit_transitions_effect_real_reserved4; -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved5 = spit_transitions_effect_real_reserved5; -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved6 = spit_transitions_effect_real_reserved6; -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved7 = spit_transitions_effect_real_reserved7; -#line 2207 "TransitionsInterfaces.c" - } -} - - -/** - * An Effect represents an interstitial effect that is used to transition the display from one - * image to another. - * - * An Effect must hold state so that it knows what it should be drawn at any call to {@link paint} - * (which is called regularly during a transition). That is, it should be able to draw any frame of - * the transition at any time. The same frame may need to be drawn multiple times, or the host - * may skip ahead and ask for a frame well ahead of the last requested one. - * - * ''Frame numbers are one-based throughout this interface''. This is because the initial state (the - * blank viewport or the starting pixbuf) is frame zero. The Effect is never called to paint this - * frame. The Effect is also not called to paint the final frame (a blank viewport or the ending - * pixbuf). - * - * If the Effect uses background threads for its work, it should use the appropriate primitives - * for critical sections. All calls to this interface will be from the context of the main UI - * thread. ''None of these calls should block.'' - * - * If the Details object needs to be held by the Effect, its reference to it should be dropped at - * the end of the cycle (or shortly thereafter). - * - * An instance may be reused and should be prepared for restarts. - */ -GType -spit_transitions_effect_get_type (void) -{ - static volatile gsize spit_transitions_effect_type_id__volatile = 0; - if (g_once_init_enter (&spit_transitions_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitTransitionsEffectIface), (GBaseInitFunc) spit_transitions_effect_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_transitions_effect_type_id; - spit_transitions_effect_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitTransitionsEffect", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_transitions_effect_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_transitions_effect_type_id__volatile, spit_transitions_effect_type_id); - } - return spit_transitions_effect_type_id__volatile; -} - - - |