summaryrefslogtreecommitdiff
path: root/src/library/LibraryBranch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/LibraryBranch.c')
-rw-r--r--src/library/LibraryBranch.c926
1 files changed, 562 insertions, 364 deletions
diff --git a/src/library/LibraryBranch.c b/src/library/LibraryBranch.c
index 1cd27cb..d46cc91 100644
--- a/src/library/LibraryBranch.c
+++ b/src/library/LibraryBranch.c
@@ -1,4 +1,4 @@
-/* LibraryBranch.c generated by valac 0.36.6, the Vala compiler
+/* LibraryBranch.c generated by valac 0.40.4, the Vala compiler
* generated from LibraryBranch.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -7,6 +7,7 @@
* (version 2.1 or later). See the COPYING file in this distribution.
*/
+
#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
@@ -119,6 +120,17 @@ typedef struct _LibraryOfflineSidebarEntryClass LibraryOfflineSidebarEntryClass;
typedef struct _LibraryTrashSidebarEntry LibraryTrashSidebarEntry;
typedef struct _LibraryTrashSidebarEntryClass LibraryTrashSidebarEntryClass;
+enum {
+ LIBRARY_BRANCH_0_PROPERTY,
+ LIBRARY_BRANCH_PHOTOS_ENTRY_PROPERTY,
+ LIBRARY_BRANCH_FLAGGED_ENTRY_PROPERTY,
+ LIBRARY_BRANCH_LAST_IMPORTED_ENTRY_PROPERTY,
+ LIBRARY_BRANCH_IMPORT_QUEUE_ENTRY_PROPERTY,
+ LIBRARY_BRANCH_OFFLINE_ENTRY_PROPERTY,
+ LIBRARY_BRANCH_TRASH_ENTRY_PROPERTY,
+ LIBRARY_BRANCH_NUM_PROPERTIES
+};
+static GParamSpec* library_branch_properties[LIBRARY_BRANCH_NUM_PROPERTIES];
#define LIBRARY_BRANCH_TYPE_ENTRY_POSITION (library_branch_entry_position_get_type ())
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
@@ -198,6 +210,11 @@ typedef struct _SidebarContextable SidebarContextable;
typedef struct _SidebarContextableIface SidebarContextableIface;
typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate;
typedef struct _LibraryPhotosEntryPrivate LibraryPhotosEntryPrivate;
+enum {
+ LIBRARY_PHOTOS_ENTRY_0_PROPERTY,
+ LIBRARY_PHOTOS_ENTRY_NUM_PROPERTIES
+};
+static GParamSpec* library_photos_entry_properties[LIBRARY_PHOTOS_ENTRY_NUM_PROPERTIES];
#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
@@ -240,10 +257,16 @@ typedef struct _LibraryMainPage LibraryMainPage;
typedef struct _LibraryMainPageClass LibraryMainPageClass;
typedef struct _LibraryHideablePageEntryPrivate LibraryHideablePageEntryPrivate;
enum {
+ LIBRARY_HIDEABLE_PAGE_ENTRY_0_PROPERTY,
+ LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE_PROPERTY,
+ LIBRARY_HIDEABLE_PAGE_ENTRY_NUM_PROPERTIES
+};
+static GParamSpec* library_hideable_page_entry_properties[LIBRARY_HIDEABLE_PAGE_ENTRY_NUM_PROPERTIES];
+enum {
LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBILITY_CHANGED_SIGNAL,
- LIBRARY_HIDEABLE_PAGE_ENTRY_LAST_SIGNAL
+ LIBRARY_HIDEABLE_PAGE_ENTRY_NUM_SIGNALS
};
-static guint library_hideable_page_entry_signals[LIBRARY_HIDEABLE_PAGE_ENTRY_LAST_SIGNAL] = {0};
+static guint library_hideable_page_entry_signals[LIBRARY_HIDEABLE_PAGE_ENTRY_NUM_SIGNALS] = {0};
typedef struct _PagePrivate PagePrivate;
#define TYPE_PAGE_WINDOW (page_window_get_type ())
@@ -378,6 +401,11 @@ typedef struct _DataSource DataSource;
typedef struct _DataSourceClass DataSourceClass;
typedef struct _CollectionPagePrivate CollectionPagePrivate;
typedef struct _LibraryMainPagePrivate LibraryMainPagePrivate;
+enum {
+ LIBRARY_MAIN_PAGE_0_PROPERTY,
+ LIBRARY_MAIN_PAGE_NUM_PROPERTIES
+};
+static GParamSpec* library_main_page_properties[LIBRARY_MAIN_PAGE_NUM_PROPERTIES];
#define TYPE_DATA_COLLECTION (data_collection_get_type ())
#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
@@ -789,107 +817,150 @@ GType library_import_queue_sidebar_entry_get_type (void) G_GNUC_CONST;
GType library_offline_sidebar_entry_get_type (void) G_GNUC_CONST;
GType library_trash_sidebar_entry_get_type (void) G_GNUC_CONST;
#define LIBRARY_BRANCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), LIBRARY_TYPE_BRANCH, LibraryBranchPrivate))
-enum {
- LIBRARY_BRANCH_DUMMY_PROPERTY,
- LIBRARY_BRANCH_PHOTOS_ENTRY_PROPERTY,
- LIBRARY_BRANCH_FLAGGED_ENTRY_PROPERTY,
- LIBRARY_BRANCH_LAST_IMPORTED_ENTRY_PROPERTY,
- LIBRARY_BRANCH_IMPORT_QUEUE_ENTRY_PROPERTY,
- LIBRARY_BRANCH_OFFLINE_ENTRY_PROPERTY,
- LIBRARY_BRANCH_TRASH_ENTRY_PROPERTY
-};
static GType library_branch_entry_position_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
#define LIBRARY_BRANCH_POSITION_DATA "x-photos-entry-position"
LibraryBranch* library_branch_new (void);
LibraryBranch* library_branch_construct (GType object_type);
-SidebarHeader* sidebar_header_new (const gchar* name, const gchar* tooltip, gboolean emphasized);
-SidebarHeader* sidebar_header_construct (GType object_type, const gchar* name, const gchar* tooltip, gboolean emphasized);
+SidebarHeader* sidebar_header_new (const gchar* name,
+ const gchar* tooltip,
+ gboolean emphasized);
+SidebarHeader* sidebar_header_construct (GType object_type,
+ const gchar* name,
+ const gchar* tooltip,
+ gboolean emphasized);
GType sidebar_grouping_get_type (void) G_GNUC_CONST;
GType sidebar_header_get_type (void) G_GNUC_CONST;
GType sidebar_tree_get_type (void) G_GNUC_CONST;
GType sidebar_entry_get_type (void) G_GNUC_CONST;
GType sidebar_branch_options_get_type (void) G_GNUC_CONST;
-static gint library_branch_comparator (SidebarEntry* a, SidebarEntry* b);
-static gint _library_branch_comparator_gcompare_func (gconstpointer a, gconstpointer b);
-SidebarBranch* sidebar_branch_new (SidebarEntry* root, SidebarBranchOptions options, GCompareFunc default_comparator, GCompareFunc root_comparator);
-SidebarBranch* sidebar_branch_construct (GType object_type, SidebarEntry* root, SidebarBranchOptions options, GCompareFunc default_comparator, GCompareFunc root_comparator);
+static gint library_branch_comparator (SidebarEntry* a,
+ SidebarEntry* b);
+static gint _library_branch_comparator_gcompare_func (gconstpointer a,
+ gconstpointer b);
+SidebarBranch* sidebar_branch_new (SidebarEntry* root,
+ SidebarBranchOptions options,
+ GCompareFunc default_comparator,
+ GCompareFunc root_comparator);
+SidebarBranch* sidebar_branch_construct (GType object_type,
+ SidebarEntry* root,
+ SidebarBranchOptions options,
+ GCompareFunc default_comparator,
+ GCompareFunc root_comparator);
LibraryPhotosEntry* library_photos_entry_new (void);
LibraryPhotosEntry* library_photos_entry_construct (GType object_type);
-static void library_branch_set_photos_entry (LibraryBranch* self, LibraryPhotosEntry* value);
+static void library_branch_set_photos_entry (LibraryBranch* self,
+ LibraryPhotosEntry* value);
LibraryTrashSidebarEntry* library_trash_sidebar_entry_new (void);
LibraryTrashSidebarEntry* library_trash_sidebar_entry_construct (GType object_type);
-static void library_branch_set_trash_entry (LibraryBranch* self, LibraryTrashSidebarEntry* value);
+static void library_branch_set_trash_entry (LibraryBranch* self,
+ LibraryTrashSidebarEntry* value);
LibraryLastImportSidebarEntry* library_last_import_sidebar_entry_new (void);
LibraryLastImportSidebarEntry* library_last_import_sidebar_entry_construct (GType object_type);
-static void library_branch_set_last_imported_entry (LibraryBranch* self, LibraryLastImportSidebarEntry* value);
+static void library_branch_set_last_imported_entry (LibraryBranch* self,
+ LibraryLastImportSidebarEntry* value);
LibraryFlaggedSidebarEntry* library_flagged_sidebar_entry_new (void);
LibraryFlaggedSidebarEntry* library_flagged_sidebar_entry_construct (GType object_type);
-static void library_branch_set_flagged_entry (LibraryBranch* self, LibraryFlaggedSidebarEntry* value);
+static void library_branch_set_flagged_entry (LibraryBranch* self,
+ LibraryFlaggedSidebarEntry* value);
LibraryOfflineSidebarEntry* library_offline_sidebar_entry_new (void);
LibraryOfflineSidebarEntry* library_offline_sidebar_entry_construct (GType object_type);
-static void library_branch_set_offline_entry (LibraryBranch* self, LibraryOfflineSidebarEntry* value);
+static void library_branch_set_offline_entry (LibraryBranch* self,
+ LibraryOfflineSidebarEntry* value);
LibraryImportQueueSidebarEntry* library_import_queue_sidebar_entry_new (void);
LibraryImportQueueSidebarEntry* library_import_queue_sidebar_entry_construct (GType object_type);
-static void library_branch_set_import_queue_entry (LibraryBranch* self, LibraryImportQueueSidebarEntry* value);
-static void library_branch_insert (LibraryBranch* self, SidebarEntry* entry, gint position);
+static void library_branch_set_import_queue_entry (LibraryBranch* self,
+ LibraryImportQueueSidebarEntry* value);
+static void library_branch_insert (LibraryBranch* self,
+ SidebarEntry* entry,
+ gint position);
LibraryPhotosEntry* library_branch_get_photos_entry (LibraryBranch* self);
LibraryTrashSidebarEntry* library_branch_get_trash_entry (LibraryBranch* self);
LibraryFlaggedSidebarEntry* library_branch_get_flagged_entry (LibraryBranch* self);
static void library_branch_on_flagged_visibility_changed (LibraryBranch* self);
-static void _library_branch_on_flagged_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, gboolean visible, gpointer self);
+static void _library_branch_on_flagged_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender,
+ gboolean visible,
+ gpointer self);
LibraryLastImportSidebarEntry* library_branch_get_last_imported_entry (LibraryBranch* self);
static void library_branch_on_last_imported_visibility_changed (LibraryBranch* self);
-static void _library_branch_on_last_imported_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, gboolean visible, gpointer self);
+static void _library_branch_on_last_imported_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender,
+ gboolean visible,
+ gpointer self);
LibraryImportQueueSidebarEntry* library_branch_get_import_queue_entry (LibraryBranch* self);
static void library_branch_on_import_queue_visibility_changed (LibraryBranch* self);
-static void _library_branch_on_import_queue_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, gboolean visible, gpointer self);
+static void _library_branch_on_import_queue_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender,
+ gboolean visible,
+ gpointer self);
LibraryOfflineSidebarEntry* library_branch_get_offline_entry (LibraryBranch* self);
static void library_branch_on_offline_visibility_changed (LibraryBranch* self);
-static void _library_branch_on_offline_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, gboolean visible, gpointer self);
-void sidebar_branch_graft (SidebarBranch* self, SidebarEntry* parent, SidebarEntry* entry, GCompareFunc comparator);
+static void _library_branch_on_offline_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender,
+ gboolean visible,
+ gpointer self);
+void sidebar_branch_graft (SidebarBranch* self,
+ SidebarEntry* parent,
+ SidebarEntry* entry,
+ GCompareFunc comparator);
SidebarEntry* sidebar_branch_get_root (SidebarBranch* self);
-static void library_branch_update_entry_visibility (LibraryBranch* self, LibraryHideablePageEntry* entry, gint position);
+static void library_branch_update_entry_visibility (LibraryBranch* self,
+ LibraryHideablePageEntry* entry,
+ gint position);
gboolean library_hideable_page_entry_get_visible (LibraryHideablePageEntry* self);
-gboolean sidebar_branch_has_entry (SidebarBranch* self, SidebarEntry* entry);
-void sidebar_branch_prune (SidebarBranch* self, SidebarEntry* entry);
+gboolean sidebar_branch_has_entry (SidebarBranch* self,
+ SidebarEntry* entry);
+void sidebar_branch_prune (SidebarBranch* self,
+ SidebarEntry* entry);
static void library_branch_finalize (GObject * obj);
-static void _vala_library_branch_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
-static void _vala_library_branch_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
+static void _vala_library_branch_get_property (GObject * object,
+ guint property_id,
+ GValue * value,
+ GParamSpec * pspec);
+static void _vala_library_branch_set_property (GObject * object,
+ guint property_id,
+ const GValue * value,
+ GParamSpec * pspec);
GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST;
GType page_get_type (void) G_GNUC_CONST;
GType sidebar_page_representative_get_type (void) G_GNUC_CONST;
GType sidebar_contextable_get_type (void) G_GNUC_CONST;
-enum {
- LIBRARY_PHOTOS_ENTRY_DUMMY_PROPERTY
-};
SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type);
static gchar* library_photos_entry_real_get_sidebar_name (SidebarSimplePageEntry* base);
static gchar* library_photos_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base);
#define RESOURCES_ICON_PHOTOS "shotwell"
static Page* library_photos_entry_real_create_page (SidebarSimplePageEntry* base);
-LibraryMainPage* library_main_page_new (ProgressMonitor monitor, void* monitor_target);
-LibraryMainPage* library_main_page_construct (GType object_type, ProgressMonitor monitor, void* monitor_target);
+LibraryMainPage* library_main_page_new (ProgressMonitor monitor,
+ void* monitor_target);
+LibraryMainPage* library_main_page_construct (GType object_type,
+ ProgressMonitor monitor,
+ void* monitor_target);
GType checkerboard_page_get_type (void) G_GNUC_CONST;
GType media_page_get_type (void) G_GNUC_CONST;
GType collection_page_get_type (void) G_GNUC_CONST;
GType library_main_page_get_type (void) G_GNUC_CONST;
#define LIBRARY_HIDEABLE_PAGE_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryPrivate))
-enum {
- LIBRARY_HIDEABLE_PAGE_ENTRY_DUMMY_PROPERTY,
- LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE_PROPERTY
-};
LibraryHideablePageEntry* library_hideable_page_entry_construct (GType object_type);
-void library_hideable_page_entry_set_visible (LibraryHideablePageEntry* self, gboolean value);
+void library_hideable_page_entry_set_visible (LibraryHideablePageEntry* self,
+ gboolean value);
static void library_hideable_page_entry_finalize (GObject * obj);
-static void _vala_library_hideable_page_entry_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
-static void _vala_library_hideable_page_entry_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
+static void _vala_library_hideable_page_entry_get_property (GObject * object,
+ guint property_id,
+ GValue * value,
+ GParamSpec * pspec);
+static void _vala_library_hideable_page_entry_set_property (GObject * object,
+ guint property_id,
+ const GValue * value,
+ GParamSpec * pspec);
GType page_window_get_type (void) G_GNUC_CONST;
GType fullscreen_window_get_type (void) G_GNUC_CONST;
gpointer injection_group_ref (gpointer instance);
void injection_group_unref (gpointer instance);
-GParamSpec* param_spec_injection_group (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_injection_group (GValue* value, gpointer v_object);
-void value_take_injection_group (GValue* value, gpointer v_object);
+GParamSpec* param_spec_injection_group (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_injection_group (GValue* value,
+ gpointer v_object);
+void value_take_injection_group (GValue* value,
+ gpointer v_object);
gpointer value_get_injection_group (const GValue* value);
GType injection_group_get_type (void) G_GNUC_CONST;
GType data_object_get_type (void) G_GNUC_CONST;
@@ -902,33 +973,49 @@ CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (con
void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self);
gpointer view_filter_ref (gpointer instance);
void view_filter_unref (gpointer instance);
-GParamSpec* param_spec_view_filter (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_view_filter (GValue* value, gpointer v_object);
-void value_take_view_filter (GValue* value, gpointer v_object);
+GParamSpec* param_spec_view_filter (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_view_filter (GValue* value,
+ gpointer v_object);
+void value_take_view_filter (GValue* value,
+ gpointer v_object);
gpointer value_get_view_filter (const GValue* value);
GType view_filter_get_type (void) G_GNUC_CONST;
GType search_view_filter_get_type (void) G_GNUC_CONST;
gpointer core_tracker_ref (gpointer instance);
void core_tracker_unref (gpointer instance);
-GParamSpec* core_param_spec_tracker (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void core_value_set_tracker (GValue* value, gpointer v_object);
-void core_value_take_tracker (GValue* value, gpointer v_object);
+GParamSpec* core_param_spec_tracker (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void core_value_set_tracker (GValue* value,
+ gpointer v_object);
+void core_value_take_tracker (GValue* value,
+ gpointer v_object);
gpointer core_value_get_tracker (const GValue* value);
GType core_tracker_get_type (void) G_GNUC_CONST;
GType core_view_tracker_get_type (void) G_GNUC_CONST;
GType rating_get_type (void) G_GNUC_CONST;
GType raw_developer_get_type (void) G_GNUC_CONST;
GType data_source_get_type (void) G_GNUC_CONST;
-enum {
- LIBRARY_MAIN_PAGE_DUMMY_PROPERTY
-};
#define LIBRARY_MAIN_PAGE_NAME _ ("Library")
-CollectionPage* collection_page_construct (GType object_type, const gchar* page_name);
+CollectionPage* collection_page_construct (GType object_type,
+ const gchar* page_name);
gpointer data_collection_ref (gpointer instance);
void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_data_collection (GValue* value, gpointer v_object);
-void value_take_data_collection (GValue* value, gpointer v_object);
+GParamSpec* param_spec_data_collection (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_data_collection (GValue* value,
+ gpointer v_object);
+void value_take_data_collection (GValue* value,
+ gpointer v_object);
gpointer value_get_data_collection (const GValue* value);
GType data_collection_get_type (void) G_GNUC_CONST;
GType source_collection_get_type (void) G_GNUC_CONST;
@@ -936,9 +1023,15 @@ GType database_source_collection_get_type (void) G_GNUC_CONST;
GType media_source_collection_get_type (void) G_GNUC_CONST;
gpointer media_collection_registry_ref (gpointer instance);
void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_media_collection_registry (GValue* value, gpointer v_object);
-void value_take_media_collection_registry (GValue* value, gpointer v_object);
+GParamSpec* param_spec_media_collection_registry (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_media_collection_registry (GValue* value,
+ gpointer v_object);
+void value_take_media_collection_registry (GValue* value,
+ gpointer v_object);
gpointer value_get_media_collection_registry (const GValue* value);
GType media_collection_registry_get_type (void) G_GNUC_CONST;
MediaCollectionRegistry* media_collection_registry_get_instance (void);
@@ -947,39 +1040,74 @@ GType view_collection_get_type (void) G_GNUC_CONST;
ViewCollection* page_get_view (Page* self);
gpointer view_manager_ref (gpointer instance);
void view_manager_unref (gpointer instance);
-GParamSpec* param_spec_view_manager (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_view_manager (GValue* value, gpointer v_object);
-void value_take_view_manager (GValue* value, gpointer v_object);
+GParamSpec* param_spec_view_manager (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_view_manager (GValue* value,
+ gpointer v_object);
+void value_take_view_manager (GValue* value,
+ gpointer v_object);
gpointer value_get_view_manager (const GValue* value);
GType view_manager_get_type (void) G_GNUC_CONST;
gpointer alteration_ref (gpointer instance);
void alteration_unref (gpointer instance);
-GParamSpec* param_spec_alteration (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_alteration (GValue* value, gpointer v_object);
-void value_take_alteration (GValue* value, gpointer v_object);
+GParamSpec* param_spec_alteration (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_alteration (GValue* value,
+ gpointer v_object);
+void value_take_alteration (GValue* value,
+ gpointer v_object);
gpointer value_get_alteration (const GValue* value);
GType alteration_get_type (void) G_GNUC_CONST;
gpointer view_collection_monitor_ref (gpointer instance);
void view_collection_monitor_unref (gpointer instance);
-GParamSpec* view_collection_param_spec_monitor (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void view_collection_value_set_monitor (GValue* value, gpointer v_object);
-void view_collection_value_take_monitor (GValue* value, gpointer v_object);
+GParamSpec* view_collection_param_spec_monitor (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void view_collection_value_set_monitor (GValue* value,
+ gpointer v_object);
+void view_collection_value_take_monitor (GValue* value,
+ gpointer v_object);
gpointer view_collection_value_get_monitor (const GValue* value);
GType view_collection_monitor_get_type (void) G_GNUC_CONST;
-ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self, SourceCollection* sources, ViewManager* manager, Alteration* prereq, GeeCollection* initial, ProgressMonitor progress_monitor, void* progress_monitor_target);
+ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self,
+ SourceCollection* sources,
+ ViewManager* manager,
+ Alteration* prereq,
+ GeeCollection* initial,
+ ProgressMonitor progress_monitor,
+ void* progress_monitor_target);
CollectionViewManager* collection_view_manager_new (CollectionPage* page);
-CollectionViewManager* collection_view_manager_construct (GType object_type, CollectionPage* page);
+CollectionViewManager* collection_view_manager_construct (GType object_type,
+ CollectionPage* page);
GType collection_view_manager_get_type (void) G_GNUC_CONST;
-static void library_main_page_real_get_config_photos_sort (MediaPage* base, gboolean* sort_order, gint* sort_by);
+static void library_main_page_real_get_config_photos_sort (MediaPage* base,
+ gboolean* sort_order,
+ gint* sort_by);
GType configuration_facade_get_type (void) G_GNUC_CONST;
GType config_facade_get_type (void) G_GNUC_CONST;
ConfigFacade* config_facade_get_instance (void);
-void configuration_facade_get_library_photos_sort (ConfigurationFacade* self, gboolean* sort_order, gint* sort_by);
-static void library_main_page_real_set_config_photos_sort (MediaPage* base, gboolean sort_order, gint sort_by);
-void configuration_facade_set_library_photos_sort (ConfigurationFacade* self, gboolean sort_order, gint sort_by);
-
-
-static GType library_branch_entry_position_get_type (void) {
+void configuration_facade_get_library_photos_sort (ConfigurationFacade* self,
+ gboolean* sort_order,
+ gint* sort_by);
+static void library_main_page_real_set_config_photos_sort (MediaPage* base,
+ gboolean sort_order,
+ gint sort_by);
+void configuration_facade_set_library_photos_sort (ConfigurationFacade* self,
+ gboolean sort_order,
+ gint sort_by);
+
+
+static GType
+library_branch_entry_position_get_type (void)
+{
static volatile gsize library_branch_entry_position_type_id__volatile = 0;
if (g_once_init_enter (&library_branch_entry_position_type_id__volatile)) {
static const GEnumValue values[] = {{LIBRARY_BRANCH_ENTRY_POSITION_PHOTOS, "LIBRARY_BRANCH_ENTRY_POSITION_PHOTOS", "photos"}, {LIBRARY_BRANCH_ENTRY_POSITION_FLAGGED, "LIBRARY_BRANCH_ENTRY_POSITION_FLAGGED", "flagged"}, {LIBRARY_BRANCH_ENTRY_POSITION_LAST_IMPORTED, "LIBRARY_BRANCH_ENTRY_POSITION_LAST_IMPORTED", "last-imported"}, {LIBRARY_BRANCH_ENTRY_POSITION_IMPORT_QUEUE, "LIBRARY_BRANCH_ENTRY_POSITION_IMPORT_QUEUE", "import-queue"}, {LIBRARY_BRANCH_ENTRY_POSITION_OFFLINE, "LIBRARY_BRANCH_ENTRY_POSITION_OFFLINE", "offline"}, {LIBRARY_BRANCH_ENTRY_POSITION_TRASH, "LIBRARY_BRANCH_ENTRY_POSITION_TRASH", "trash"}, {0, NULL, NULL}};
@@ -991,44 +1119,65 @@ static GType library_branch_entry_position_get_type (void) {
}
-static gint _library_branch_comparator_gcompare_func (gconstpointer a, gconstpointer b) {
+static gint
+_library_branch_comparator_gcompare_func (gconstpointer a,
+ gconstpointer b)
+{
gint result;
result = library_branch_comparator ((SidebarEntry*) a, (SidebarEntry*) b);
#line 30 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return result;
-#line 1000 "LibraryBranch.c"
+#line 1131 "LibraryBranch.c"
}
-static void _library_branch_on_flagged_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, gboolean visible, gpointer self) {
+static void
+_library_branch_on_flagged_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender,
+ gboolean visible,
+ gpointer self)
+{
#line 43 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
library_branch_on_flagged_visibility_changed ((LibraryBranch*) self);
-#line 1007 "LibraryBranch.c"
+#line 1142 "LibraryBranch.c"
}
-static void _library_branch_on_last_imported_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, gboolean visible, gpointer self) {
+static void
+_library_branch_on_last_imported_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender,
+ gboolean visible,
+ gpointer self)
+{
#line 46 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
library_branch_on_last_imported_visibility_changed ((LibraryBranch*) self);
-#line 1014 "LibraryBranch.c"
+#line 1153 "LibraryBranch.c"
}
-static void _library_branch_on_import_queue_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, gboolean visible, gpointer self) {
+static void
+_library_branch_on_import_queue_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender,
+ gboolean visible,
+ gpointer self)
+{
#line 49 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
library_branch_on_import_queue_visibility_changed ((LibraryBranch*) self);
-#line 1021 "LibraryBranch.c"
+#line 1164 "LibraryBranch.c"
}
-static void _library_branch_on_offline_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, gboolean visible, gpointer self) {
+static void
+_library_branch_on_offline_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender,
+ gboolean visible,
+ gpointer self)
+{
#line 52 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
library_branch_on_offline_visibility_changed ((LibraryBranch*) self);
-#line 1028 "LibraryBranch.c"
+#line 1175 "LibraryBranch.c"
}
-LibraryBranch* library_branch_construct (GType object_type) {
+LibraryBranch*
+library_branch_construct (GType object_type)
+{
LibraryBranch * self = NULL;
SidebarHeader* _tmp0_;
SidebarHeader* _tmp1_;
@@ -1140,48 +1289,47 @@ LibraryBranch* library_branch_construct (GType object_type) {
library_branch_on_offline_visibility_changed (self);
#line 29 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return self;
-#line 1144 "LibraryBranch.c"
+#line 1293 "LibraryBranch.c"
}
-LibraryBranch* library_branch_new (void) {
+LibraryBranch*
+library_branch_new (void)
+{
#line 29 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return library_branch_construct (LIBRARY_TYPE_BRANCH);
-#line 1151 "LibraryBranch.c"
+#line 1302 "LibraryBranch.c"
}
-static void library_branch_insert (LibraryBranch* self, SidebarEntry* entry, gint position) {
+static void
+library_branch_insert (LibraryBranch* self,
+ SidebarEntry* entry,
+ gint position)
+{
SidebarEntry* _tmp0_;
- gint _tmp1_;
- SidebarEntry* _tmp2_;
- SidebarEntry* _tmp3_;
- SidebarEntry* _tmp4_;
+ SidebarEntry* _tmp1_;
#line 56 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
g_return_if_fail (LIBRARY_IS_BRANCH (self));
#line 56 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
g_return_if_fail (SIDEBAR_IS_ENTRY (entry));
#line 57 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = entry;
-#line 57 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp1_ = position;
-#line 57 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_set_data_full (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, G_TYPE_OBJECT, GObject), LIBRARY_BRANCH_POSITION_DATA, (gpointer) ((gintptr) _tmp1_), NULL);
-#line 58 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp2_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch));
+ g_object_set_data_full (G_TYPE_CHECK_INSTANCE_CAST (entry, G_TYPE_OBJECT, GObject), LIBRARY_BRANCH_POSITION_DATA, (gpointer) ((gintptr) position), NULL);
#line 58 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp3_ = _tmp2_;
+ _tmp0_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch));
#line 58 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp4_ = entry;
+ _tmp1_ = _tmp0_;
#line 58 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp3_, _tmp4_, NULL);
+ sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp1_, entry, NULL);
#line 58 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _g_object_unref0 (_tmp3_);
-#line 1181 "LibraryBranch.c"
+ _g_object_unref0 (_tmp1_);
+#line 1327 "LibraryBranch.c"
}
-static void library_branch_on_flagged_visibility_changed (LibraryBranch* self) {
+static void
+library_branch_on_flagged_visibility_changed (LibraryBranch* self)
+{
LibraryFlaggedSidebarEntry* _tmp0_;
#line 61 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
g_return_if_fail (LIBRARY_IS_BRANCH (self));
@@ -1189,11 +1337,13 @@ static void library_branch_on_flagged_visibility_changed (LibraryBranch* self) {
_tmp0_ = self->priv->_flagged_entry;
#line 62 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
library_branch_update_entry_visibility (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_FLAGGED);
-#line 1193 "LibraryBranch.c"
+#line 1341 "LibraryBranch.c"
}
-static void library_branch_on_last_imported_visibility_changed (LibraryBranch* self) {
+static void
+library_branch_on_last_imported_visibility_changed (LibraryBranch* self)
+{
LibraryLastImportSidebarEntry* _tmp0_;
#line 65 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
g_return_if_fail (LIBRARY_IS_BRANCH (self));
@@ -1201,11 +1351,13 @@ static void library_branch_on_last_imported_visibility_changed (LibraryBranch* s
_tmp0_ = self->priv->_last_imported_entry;
#line 66 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
library_branch_update_entry_visibility (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_LAST_IMPORTED);
-#line 1205 "LibraryBranch.c"
+#line 1355 "LibraryBranch.c"
}
-static void library_branch_on_import_queue_visibility_changed (LibraryBranch* self) {
+static void
+library_branch_on_import_queue_visibility_changed (LibraryBranch* self)
+{
LibraryImportQueueSidebarEntry* _tmp0_;
#line 69 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
g_return_if_fail (LIBRARY_IS_BRANCH (self));
@@ -1213,11 +1365,13 @@ static void library_branch_on_import_queue_visibility_changed (LibraryBranch* se
_tmp0_ = self->priv->_import_queue_entry;
#line 70 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
library_branch_update_entry_visibility (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_IMPORT_QUEUE);
-#line 1217 "LibraryBranch.c"
+#line 1369 "LibraryBranch.c"
}
-static void library_branch_on_offline_visibility_changed (LibraryBranch* self) {
+static void
+library_branch_on_offline_visibility_changed (LibraryBranch* self)
+{
LibraryOfflineSidebarEntry* _tmp0_;
#line 73 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
g_return_if_fail (LIBRARY_IS_BRANCH (self));
@@ -1225,94 +1379,70 @@ static void library_branch_on_offline_visibility_changed (LibraryBranch* self) {
_tmp0_ = self->priv->_offline_entry;
#line 74 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
library_branch_update_entry_visibility (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_OFFLINE);
-#line 1229 "LibraryBranch.c"
+#line 1383 "LibraryBranch.c"
}
-static void library_branch_update_entry_visibility (LibraryBranch* self, LibraryHideablePageEntry* entry, gint position) {
- LibraryHideablePageEntry* _tmp0_;
+static void
+library_branch_update_entry_visibility (LibraryBranch* self,
+ LibraryHideablePageEntry* entry,
+ gint position)
+{
+ gboolean _tmp0_;
gboolean _tmp1_;
- gboolean _tmp2_;
#line 77 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
g_return_if_fail (LIBRARY_IS_BRANCH (self));
#line 77 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
g_return_if_fail (LIBRARY_IS_HIDEABLE_PAGE_ENTRY (entry));
#line 78 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = entry;
-#line 78 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp1_ = library_hideable_page_entry_get_visible (_tmp0_);
+ _tmp0_ = library_hideable_page_entry_get_visible (entry);
#line 78 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp2_ = _tmp1_;
+ _tmp1_ = _tmp0_;
#line 78 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- if (_tmp2_) {
-#line 1249 "LibraryBranch.c"
- LibraryHideablePageEntry* _tmp3_;
- gboolean _tmp4_;
-#line 79 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp3_ = entry;
-#line 79 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp4_ = sidebar_branch_has_entry (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
+ if (_tmp1_) {
#line 79 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- if (!_tmp4_) {
-#line 1258 "LibraryBranch.c"
- LibraryHideablePageEntry* _tmp5_;
- gint _tmp6_;
-#line 80 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp5_ = entry;
-#line 80 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp6_ = position;
+ if (!sidebar_branch_has_entry (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry))) {
#line 80 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- library_branch_insert (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SIDEBAR_TYPE_ENTRY, SidebarEntry), _tmp6_);
-#line 1267 "LibraryBranch.c"
+ library_branch_insert (self, G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry), position);
+#line 1408 "LibraryBranch.c"
}
} else {
- LibraryHideablePageEntry* _tmp7_;
- gboolean _tmp8_;
#line 81 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp7_ = entry;
-#line 81 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp8_ = sidebar_branch_has_entry (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 81 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- if (_tmp8_) {
-#line 1278 "LibraryBranch.c"
- LibraryHideablePageEntry* _tmp9_;
-#line 82 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp9_ = entry;
+ if (sidebar_branch_has_entry (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry))) {
#line 82 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
-#line 1284 "LibraryBranch.c"
+ sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry));
+#line 1415 "LibraryBranch.c"
}
}
}
-static gint library_branch_comparator (SidebarEntry* a, SidebarEntry* b) {
+static gint
+library_branch_comparator (SidebarEntry* a,
+ SidebarEntry* b)
+{
gint result = 0;
- SidebarEntry* _tmp0_;
+ gconstpointer _tmp0_;
gconstpointer _tmp1_;
- SidebarEntry* _tmp2_;
- gconstpointer _tmp3_;
#line 86 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0);
#line 86 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0);
#line 87 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = a;
-#line 87 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp1_ = g_object_get_data (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, G_TYPE_OBJECT, GObject), LIBRARY_BRANCH_POSITION_DATA);
+ _tmp0_ = g_object_get_data (G_TYPE_CHECK_INSTANCE_CAST (a, G_TYPE_OBJECT, GObject), LIBRARY_BRANCH_POSITION_DATA);
#line 87 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp2_ = b;
+ _tmp1_ = g_object_get_data (G_TYPE_CHECK_INSTANCE_CAST (b, G_TYPE_OBJECT, GObject), LIBRARY_BRANCH_POSITION_DATA);
#line 87 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp3_ = g_object_get_data (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, G_TYPE_OBJECT, GObject), LIBRARY_BRANCH_POSITION_DATA);
-#line 87 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- result = ((gint) ((gintptr) _tmp1_)) - ((gint) ((gintptr) _tmp3_));
+ result = ((gint) ((gintptr) _tmp0_)) - ((gint) ((gintptr) _tmp1_));
#line 87 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return result;
-#line 1312 "LibraryBranch.c"
+#line 1440 "LibraryBranch.c"
}
-LibraryPhotosEntry* library_branch_get_photos_entry (LibraryBranch* self) {
+LibraryPhotosEntry*
+library_branch_get_photos_entry (LibraryBranch* self)
+{
LibraryPhotosEntry* result;
LibraryPhotosEntry* _tmp0_;
#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
@@ -1323,41 +1453,45 @@ LibraryPhotosEntry* library_branch_get_photos_entry (LibraryBranch* self) {
result = _tmp0_;
#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return result;
-#line 1327 "LibraryBranch.c"
+#line 1457 "LibraryBranch.c"
}
-static gpointer _g_object_ref0 (gpointer self) {
+static gpointer
+_g_object_ref0 (gpointer self)
+{
#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return self ? g_object_ref (self) : NULL;
-#line 1334 "LibraryBranch.c"
+#line 1466 "LibraryBranch.c"
}
-static void library_branch_set_photos_entry (LibraryBranch* self, LibraryPhotosEntry* value) {
+static void
+library_branch_set_photos_entry (LibraryBranch* self,
+ LibraryPhotosEntry* value)
+{
#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
g_return_if_fail (LIBRARY_IS_BRANCH (self));
#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
if (library_branch_get_photos_entry (self) != value) {
-#line 1343 "LibraryBranch.c"
+#line 1478 "LibraryBranch.c"
LibraryPhotosEntry* _tmp0_;
- LibraryPhotosEntry* _tmp1_;
#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = value;
-#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
+ _tmp0_ = _g_object_ref0 (value);
#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
_g_object_unref0 (self->priv->_photos_entry);
#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self->priv->_photos_entry = _tmp1_;
+ self->priv->_photos_entry = _tmp0_;
#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_notify ((GObject *) self, "photos-entry");
-#line 1356 "LibraryBranch.c"
+ g_object_notify_by_pspec ((GObject *) self, library_branch_properties[LIBRARY_BRANCH_PHOTOS_ENTRY_PROPERTY]);
+#line 1488 "LibraryBranch.c"
}
}
-LibraryFlaggedSidebarEntry* library_branch_get_flagged_entry (LibraryBranch* self) {
+LibraryFlaggedSidebarEntry*
+library_branch_get_flagged_entry (LibraryBranch* self)
+{
LibraryFlaggedSidebarEntry* result;
LibraryFlaggedSidebarEntry* _tmp0_;
#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
@@ -1368,34 +1502,36 @@ LibraryFlaggedSidebarEntry* library_branch_get_flagged_entry (LibraryBranch* sel
result = _tmp0_;
#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return result;
-#line 1372 "LibraryBranch.c"
+#line 1506 "LibraryBranch.c"
}
-static void library_branch_set_flagged_entry (LibraryBranch* self, LibraryFlaggedSidebarEntry* value) {
+static void
+library_branch_set_flagged_entry (LibraryBranch* self,
+ LibraryFlaggedSidebarEntry* value)
+{
#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
g_return_if_fail (LIBRARY_IS_BRANCH (self));
#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
if (library_branch_get_flagged_entry (self) != value) {
-#line 1381 "LibraryBranch.c"
+#line 1518 "LibraryBranch.c"
LibraryFlaggedSidebarEntry* _tmp0_;
- LibraryFlaggedSidebarEntry* _tmp1_;
-#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = value;
#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
+ _tmp0_ = _g_object_ref0 (value);
#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
_g_object_unref0 (self->priv->_flagged_entry);
#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self->priv->_flagged_entry = _tmp1_;
+ self->priv->_flagged_entry = _tmp0_;
#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_notify ((GObject *) self, "flagged-entry");
-#line 1394 "LibraryBranch.c"
+ g_object_notify_by_pspec ((GObject *) self, library_branch_properties[LIBRARY_BRANCH_FLAGGED_ENTRY_PROPERTY]);
+#line 1528 "LibraryBranch.c"
}
}
-LibraryLastImportSidebarEntry* library_branch_get_last_imported_entry (LibraryBranch* self) {
+LibraryLastImportSidebarEntry*
+library_branch_get_last_imported_entry (LibraryBranch* self)
+{
LibraryLastImportSidebarEntry* result;
LibraryLastImportSidebarEntry* _tmp0_;
#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
@@ -1406,34 +1542,36 @@ LibraryLastImportSidebarEntry* library_branch_get_last_imported_entry (LibraryBr
result = _tmp0_;
#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return result;
-#line 1410 "LibraryBranch.c"
+#line 1546 "LibraryBranch.c"
}
-static void library_branch_set_last_imported_entry (LibraryBranch* self, LibraryLastImportSidebarEntry* value) {
+static void
+library_branch_set_last_imported_entry (LibraryBranch* self,
+ LibraryLastImportSidebarEntry* value)
+{
#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
g_return_if_fail (LIBRARY_IS_BRANCH (self));
#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
if (library_branch_get_last_imported_entry (self) != value) {
-#line 1419 "LibraryBranch.c"
+#line 1558 "LibraryBranch.c"
LibraryLastImportSidebarEntry* _tmp0_;
- LibraryLastImportSidebarEntry* _tmp1_;
-#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = value;
#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
+ _tmp0_ = _g_object_ref0 (value);
#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
_g_object_unref0 (self->priv->_last_imported_entry);
#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self->priv->_last_imported_entry = _tmp1_;
+ self->priv->_last_imported_entry = _tmp0_;
#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_notify ((GObject *) self, "last-imported-entry");
-#line 1432 "LibraryBranch.c"
+ g_object_notify_by_pspec ((GObject *) self, library_branch_properties[LIBRARY_BRANCH_LAST_IMPORTED_ENTRY_PROPERTY]);
+#line 1568 "LibraryBranch.c"
}
}
-LibraryImportQueueSidebarEntry* library_branch_get_import_queue_entry (LibraryBranch* self) {
+LibraryImportQueueSidebarEntry*
+library_branch_get_import_queue_entry (LibraryBranch* self)
+{
LibraryImportQueueSidebarEntry* result;
LibraryImportQueueSidebarEntry* _tmp0_;
#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
@@ -1444,34 +1582,36 @@ LibraryImportQueueSidebarEntry* library_branch_get_import_queue_entry (LibraryBr
result = _tmp0_;
#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return result;
-#line 1448 "LibraryBranch.c"
+#line 1586 "LibraryBranch.c"
}
-static void library_branch_set_import_queue_entry (LibraryBranch* self, LibraryImportQueueSidebarEntry* value) {
+static void
+library_branch_set_import_queue_entry (LibraryBranch* self,
+ LibraryImportQueueSidebarEntry* value)
+{
#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
g_return_if_fail (LIBRARY_IS_BRANCH (self));
#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
if (library_branch_get_import_queue_entry (self) != value) {
-#line 1457 "LibraryBranch.c"
+#line 1598 "LibraryBranch.c"
LibraryImportQueueSidebarEntry* _tmp0_;
- LibraryImportQueueSidebarEntry* _tmp1_;
-#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = value;
#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
+ _tmp0_ = _g_object_ref0 (value);
#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
_g_object_unref0 (self->priv->_import_queue_entry);
#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self->priv->_import_queue_entry = _tmp1_;
+ self->priv->_import_queue_entry = _tmp0_;
#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_notify ((GObject *) self, "import-queue-entry");
-#line 1470 "LibraryBranch.c"
+ g_object_notify_by_pspec ((GObject *) self, library_branch_properties[LIBRARY_BRANCH_IMPORT_QUEUE_ENTRY_PROPERTY]);
+#line 1608 "LibraryBranch.c"
}
}
-LibraryOfflineSidebarEntry* library_branch_get_offline_entry (LibraryBranch* self) {
+LibraryOfflineSidebarEntry*
+library_branch_get_offline_entry (LibraryBranch* self)
+{
LibraryOfflineSidebarEntry* result;
LibraryOfflineSidebarEntry* _tmp0_;
#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
@@ -1482,34 +1622,36 @@ LibraryOfflineSidebarEntry* library_branch_get_offline_entry (LibraryBranch* sel
result = _tmp0_;
#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return result;
-#line 1486 "LibraryBranch.c"
+#line 1626 "LibraryBranch.c"
}
-static void library_branch_set_offline_entry (LibraryBranch* self, LibraryOfflineSidebarEntry* value) {
+static void
+library_branch_set_offline_entry (LibraryBranch* self,
+ LibraryOfflineSidebarEntry* value)
+{
#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
g_return_if_fail (LIBRARY_IS_BRANCH (self));
#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
if (library_branch_get_offline_entry (self) != value) {
-#line 1495 "LibraryBranch.c"
+#line 1638 "LibraryBranch.c"
LibraryOfflineSidebarEntry* _tmp0_;
- LibraryOfflineSidebarEntry* _tmp1_;
#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = value;
-#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
+ _tmp0_ = _g_object_ref0 (value);
#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
_g_object_unref0 (self->priv->_offline_entry);
#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self->priv->_offline_entry = _tmp1_;
+ self->priv->_offline_entry = _tmp0_;
#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_notify ((GObject *) self, "offline-entry");
-#line 1508 "LibraryBranch.c"
+ g_object_notify_by_pspec ((GObject *) self, library_branch_properties[LIBRARY_BRANCH_OFFLINE_ENTRY_PROPERTY]);
+#line 1648 "LibraryBranch.c"
}
}
-LibraryTrashSidebarEntry* library_branch_get_trash_entry (LibraryBranch* self) {
+LibraryTrashSidebarEntry*
+library_branch_get_trash_entry (LibraryBranch* self)
+{
LibraryTrashSidebarEntry* result;
LibraryTrashSidebarEntry* _tmp0_;
#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
@@ -1520,34 +1662,36 @@ LibraryTrashSidebarEntry* library_branch_get_trash_entry (LibraryBranch* self) {
result = _tmp0_;
#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return result;
-#line 1524 "LibraryBranch.c"
+#line 1666 "LibraryBranch.c"
}
-static void library_branch_set_trash_entry (LibraryBranch* self, LibraryTrashSidebarEntry* value) {
+static void
+library_branch_set_trash_entry (LibraryBranch* self,
+ LibraryTrashSidebarEntry* value)
+{
#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
g_return_if_fail (LIBRARY_IS_BRANCH (self));
#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
if (library_branch_get_trash_entry (self) != value) {
-#line 1533 "LibraryBranch.c"
+#line 1678 "LibraryBranch.c"
LibraryTrashSidebarEntry* _tmp0_;
- LibraryTrashSidebarEntry* _tmp1_;
-#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = value;
#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
+ _tmp0_ = _g_object_ref0 (value);
#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
_g_object_unref0 (self->priv->_trash_entry);
#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self->priv->_trash_entry = _tmp1_;
+ self->priv->_trash_entry = _tmp0_;
#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_notify ((GObject *) self, "trash-entry");
-#line 1546 "LibraryBranch.c"
+ g_object_notify_by_pspec ((GObject *) self, library_branch_properties[LIBRARY_BRANCH_TRASH_ENTRY_PROPERTY]);
+#line 1688 "LibraryBranch.c"
}
}
-static void library_branch_class_init (LibraryBranchClass * klass) {
+static void
+library_branch_class_init (LibraryBranchClass * klass)
+{
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
library_branch_parent_class = g_type_class_peek_parent (klass);
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
@@ -1559,29 +1703,33 @@ static void library_branch_class_init (LibraryBranchClass * klass) {
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
G_OBJECT_CLASS (klass)->finalize = library_branch_finalize;
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_PHOTOS_ENTRY_PROPERTY, g_param_spec_object ("photos-entry", "photos-entry", "photos-entry", LIBRARY_TYPE_PHOTOS_ENTRY, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
+ g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_PHOTOS_ENTRY_PROPERTY, library_branch_properties[LIBRARY_BRANCH_PHOTOS_ENTRY_PROPERTY] = g_param_spec_object ("photos-entry", "photos-entry", "photos-entry", LIBRARY_TYPE_PHOTOS_ENTRY, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_FLAGGED_ENTRY_PROPERTY, g_param_spec_object ("flagged-entry", "flagged-entry", "flagged-entry", LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
+ g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_FLAGGED_ENTRY_PROPERTY, library_branch_properties[LIBRARY_BRANCH_FLAGGED_ENTRY_PROPERTY] = g_param_spec_object ("flagged-entry", "flagged-entry", "flagged-entry", LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_LAST_IMPORTED_ENTRY_PROPERTY, g_param_spec_object ("last-imported-entry", "last-imported-entry", "last-imported-entry", LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
+ g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_LAST_IMPORTED_ENTRY_PROPERTY, library_branch_properties[LIBRARY_BRANCH_LAST_IMPORTED_ENTRY_PROPERTY] = g_param_spec_object ("last-imported-entry", "last-imported-entry", "last-imported-entry", LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_IMPORT_QUEUE_ENTRY_PROPERTY, g_param_spec_object ("import-queue-entry", "import-queue-entry", "import-queue-entry", LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
+ g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_IMPORT_QUEUE_ENTRY_PROPERTY, library_branch_properties[LIBRARY_BRANCH_IMPORT_QUEUE_ENTRY_PROPERTY] = g_param_spec_object ("import-queue-entry", "import-queue-entry", "import-queue-entry", LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_OFFLINE_ENTRY_PROPERTY, g_param_spec_object ("offline-entry", "offline-entry", "offline-entry", LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
+ g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_OFFLINE_ENTRY_PROPERTY, library_branch_properties[LIBRARY_BRANCH_OFFLINE_ENTRY_PROPERTY] = g_param_spec_object ("offline-entry", "offline-entry", "offline-entry", LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_TRASH_ENTRY_PROPERTY, g_param_spec_object ("trash-entry", "trash-entry", "trash-entry", LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
-#line 1574 "LibraryBranch.c"
+ g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_TRASH_ENTRY_PROPERTY, library_branch_properties[LIBRARY_BRANCH_TRASH_ENTRY_PROPERTY] = g_param_spec_object ("trash-entry", "trash-entry", "trash-entry", LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
+#line 1718 "LibraryBranch.c"
}
-static void library_branch_instance_init (LibraryBranch * self) {
+static void
+library_branch_instance_init (LibraryBranch * self)
+{
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
self->priv = LIBRARY_BRANCH_GET_PRIVATE (self);
-#line 1581 "LibraryBranch.c"
+#line 1727 "LibraryBranch.c"
}
-static void library_branch_finalize (GObject * obj) {
+static void
+library_branch_finalize (GObject * obj)
+{
LibraryBranch * self;
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_TYPE_BRANCH, LibraryBranch);
@@ -1599,11 +1747,13 @@ static void library_branch_finalize (GObject * obj) {
_g_object_unref0 (self->priv->_trash_entry);
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
G_OBJECT_CLASS (library_branch_parent_class)->finalize (obj);
-#line 1603 "LibraryBranch.c"
+#line 1751 "LibraryBranch.c"
}
-GType library_branch_get_type (void) {
+GType
+library_branch_get_type (void)
+{
static volatile gsize library_branch_type_id__volatile = 0;
if (g_once_init_enter (&library_branch_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (LibraryBranchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_branch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryBranch), 0, (GInstanceInitFunc) library_branch_instance_init, NULL };
@@ -1615,7 +1765,12 @@ GType library_branch_get_type (void) {
}
-static void _vala_library_branch_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
+static void
+_vala_library_branch_get_property (GObject * object,
+ guint property_id,
+ GValue * value,
+ GParamSpec * pspec)
+{
LibraryBranch * self;
self = G_TYPE_CHECK_INSTANCE_CAST (object, LIBRARY_TYPE_BRANCH, LibraryBranch);
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
@@ -1656,18 +1811,23 @@ static void _vala_library_branch_get_property (GObject * object, guint property_
g_value_set_object (value, library_branch_get_trash_entry (self));
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
break;
-#line 1660 "LibraryBranch.c"
+#line 1815 "LibraryBranch.c"
default:
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
break;
-#line 1666 "LibraryBranch.c"
+#line 1821 "LibraryBranch.c"
}
}
-static void _vala_library_branch_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
+static void
+_vala_library_branch_set_property (GObject * object,
+ guint property_id,
+ const GValue * value,
+ GParamSpec * pspec)
+{
LibraryBranch * self;
self = G_TYPE_CHECK_INSTANCE_CAST (object, LIBRARY_TYPE_BRANCH, LibraryBranch);
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
@@ -1708,35 +1868,41 @@ static void _vala_library_branch_set_property (GObject * object, guint property_
library_branch_set_trash_entry (self, g_value_get_object (value));
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
break;
-#line 1712 "LibraryBranch.c"
+#line 1872 "LibraryBranch.c"
default:
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
break;
-#line 1718 "LibraryBranch.c"
+#line 1878 "LibraryBranch.c"
}
}
-LibraryPhotosEntry* library_photos_entry_construct (GType object_type) {
+LibraryPhotosEntry*
+library_photos_entry_construct (GType object_type)
+{
LibraryPhotosEntry * self = NULL;
#line 93 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
self = (LibraryPhotosEntry*) sidebar_simple_page_entry_construct (object_type);
#line 93 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return self;
-#line 1729 "LibraryBranch.c"
+#line 1891 "LibraryBranch.c"
}
-LibraryPhotosEntry* library_photos_entry_new (void) {
+LibraryPhotosEntry*
+library_photos_entry_new (void)
+{
#line 93 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return library_photos_entry_construct (LIBRARY_TYPE_PHOTOS_ENTRY);
-#line 1736 "LibraryBranch.c"
+#line 1900 "LibraryBranch.c"
}
-static gchar* library_photos_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) {
+static gchar*
+library_photos_entry_real_get_sidebar_name (SidebarSimplePageEntry* base)
+{
LibraryPhotosEntry * self;
gchar* result = NULL;
gchar* _tmp0_;
@@ -1748,11 +1914,13 @@ static gchar* library_photos_entry_real_get_sidebar_name (SidebarSimplePageEntry
result = _tmp0_;
#line 97 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return result;
-#line 1752 "LibraryBranch.c"
+#line 1918 "LibraryBranch.c"
}
-static gchar* library_photos_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base) {
+static gchar*
+library_photos_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base)
+{
LibraryPhotosEntry * self;
gchar* result = NULL;
gchar* _tmp0_;
@@ -1764,11 +1932,13 @@ static gchar* library_photos_entry_real_get_sidebar_icon (SidebarSimplePageEntry
result = _tmp0_;
#line 101 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return result;
-#line 1768 "LibraryBranch.c"
+#line 1936 "LibraryBranch.c"
}
-static Page* library_photos_entry_real_create_page (SidebarSimplePageEntry* base) {
+static Page*
+library_photos_entry_real_create_page (SidebarSimplePageEntry* base)
+{
LibraryPhotosEntry * self;
Page* result = NULL;
LibraryMainPage* _tmp0_;
@@ -1782,11 +1952,13 @@ static Page* library_photos_entry_real_create_page (SidebarSimplePageEntry* base
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page);
#line 105 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return result;
-#line 1786 "LibraryBranch.c"
+#line 1956 "LibraryBranch.c"
}
-static void library_photos_entry_class_init (LibraryPhotosEntryClass * klass) {
+static void
+library_photos_entry_class_init (LibraryPhotosEntryClass * klass)
+{
#line 91 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
library_photos_entry_parent_class = g_type_class_peek_parent (klass);
#line 91 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
@@ -1795,15 +1967,19 @@ static void library_photos_entry_class_init (LibraryPhotosEntryClass * klass) {
((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) library_photos_entry_real_get_sidebar_icon;
#line 91 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) library_photos_entry_real_create_page;
-#line 1799 "LibraryBranch.c"
+#line 1971 "LibraryBranch.c"
}
-static void library_photos_entry_instance_init (LibraryPhotosEntry * self) {
+static void
+library_photos_entry_instance_init (LibraryPhotosEntry * self)
+{
}
-GType library_photos_entry_get_type (void) {
+GType
+library_photos_entry_get_type (void)
+{
static volatile gsize library_photos_entry_type_id__volatile = 0;
if (g_once_init_enter (&library_photos_entry_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (LibraryPhotosEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_photos_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryPhotosEntry), 0, (GInstanceInitFunc) library_photos_entry_instance_init, NULL };
@@ -1815,17 +1991,21 @@ GType library_photos_entry_get_type (void) {
}
-LibraryHideablePageEntry* library_hideable_page_entry_construct (GType object_type) {
+LibraryHideablePageEntry*
+library_hideable_page_entry_construct (GType object_type)
+{
LibraryHideablePageEntry * self = NULL;
#line 125 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
self = (LibraryHideablePageEntry*) sidebar_simple_page_entry_construct (object_type);
#line 125 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return self;
-#line 1825 "LibraryBranch.c"
+#line 2003 "LibraryBranch.c"
}
-gboolean library_hideable_page_entry_get_visible (LibraryHideablePageEntry* self) {
+gboolean
+library_hideable_page_entry_get_visible (LibraryHideablePageEntry* self)
+{
gboolean result;
gboolean _tmp0_;
#line 115 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
@@ -1836,42 +2016,38 @@ gboolean library_hideable_page_entry_get_visible (LibraryHideablePageEntry* self
result = _tmp0_;
#line 115 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return result;
-#line 1840 "LibraryBranch.c"
+#line 2020 "LibraryBranch.c"
}
-void library_hideable_page_entry_set_visible (LibraryHideablePageEntry* self, gboolean value) {
+void
+library_hideable_page_entry_set_visible (LibraryHideablePageEntry* self,
+ gboolean value)
+{
gboolean _tmp0_;
- gboolean _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_;
#line 116 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
g_return_if_fail (LIBRARY_IS_HIDEABLE_PAGE_ENTRY (self));
#line 117 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp0_ = value;
-#line 117 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp1_ = self->priv->show_entry;
+ _tmp0_ = self->priv->show_entry;
#line 117 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- if (_tmp0_ == _tmp1_) {
+ if (value == _tmp0_) {
#line 118 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return;
-#line 1859 "LibraryBranch.c"
+#line 2037 "LibraryBranch.c"
}
#line 120 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp2_ = value;
-#line 120 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- self->priv->show_entry = _tmp2_;
-#line 121 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp3_ = value;
+ self->priv->show_entry = value;
#line 121 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_signal_emit (self, library_hideable_page_entry_signals[LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBILITY_CHANGED_SIGNAL], 0, _tmp3_);
+ g_signal_emit (self, library_hideable_page_entry_signals[LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBILITY_CHANGED_SIGNAL], 0, value);
#line 116 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_notify ((GObject *) self, "visible");
-#line 1871 "LibraryBranch.c"
+ g_object_notify_by_pspec ((GObject *) self, library_hideable_page_entry_properties[LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE_PROPERTY]);
+#line 2045 "LibraryBranch.c"
}
-static void library_hideable_page_entry_class_init (LibraryHideablePageEntryClass * klass) {
+static void
+library_hideable_page_entry_class_init (LibraryHideablePageEntryClass * klass)
+{
#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
library_hideable_page_entry_parent_class = g_type_class_peek_parent (klass);
#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
@@ -1883,33 +2059,39 @@ static void library_hideable_page_entry_class_init (LibraryHideablePageEntryClas
#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
G_OBJECT_CLASS (klass)->finalize = library_hideable_page_entry_finalize;
#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE_PROPERTY, g_param_spec_boolean ("visible", "visible", "visible", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
+ g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE_PROPERTY, library_hideable_page_entry_properties[LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE_PROPERTY] = g_param_spec_boolean ("visible", "visible", "visible", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
library_hideable_page_entry_signals[LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBILITY_CHANGED_SIGNAL] = g_signal_new ("visibility-changed", LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
-#line 1890 "LibraryBranch.c"
+#line 2066 "LibraryBranch.c"
}
-static void library_hideable_page_entry_instance_init (LibraryHideablePageEntry * self) {
+static void
+library_hideable_page_entry_instance_init (LibraryHideablePageEntry * self)
+{
#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
self->priv = LIBRARY_HIDEABLE_PAGE_ENTRY_GET_PRIVATE (self);
#line 113 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
self->priv->show_entry = FALSE;
-#line 1899 "LibraryBranch.c"
+#line 2077 "LibraryBranch.c"
}
-static void library_hideable_page_entry_finalize (GObject * obj) {
+static void
+library_hideable_page_entry_finalize (GObject * obj)
+{
LibraryHideablePageEntry * self;
#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry);
#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
G_OBJECT_CLASS (library_hideable_page_entry_parent_class)->finalize (obj);
-#line 1909 "LibraryBranch.c"
+#line 2089 "LibraryBranch.c"
}
-GType library_hideable_page_entry_get_type (void) {
+GType
+library_hideable_page_entry_get_type (void)
+{
static volatile gsize library_hideable_page_entry_type_id__volatile = 0;
if (g_once_init_enter (&library_hideable_page_entry_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (LibraryHideablePageEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_hideable_page_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryHideablePageEntry), 0, (GInstanceInitFunc) library_hideable_page_entry_instance_init, NULL };
@@ -1921,7 +2103,12 @@ GType library_hideable_page_entry_get_type (void) {
}
-static void _vala_library_hideable_page_entry_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
+static void
+_vala_library_hideable_page_entry_get_property (GObject * object,
+ guint property_id,
+ GValue * value,
+ GParamSpec * pspec)
+{
LibraryHideablePageEntry * self;
self = G_TYPE_CHECK_INSTANCE_CAST (object, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry);
#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
@@ -1932,18 +2119,23 @@ static void _vala_library_hideable_page_entry_get_property (GObject * object, gu
g_value_set_boolean (value, library_hideable_page_entry_get_visible (self));
#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
break;
-#line 1936 "LibraryBranch.c"
+#line 2123 "LibraryBranch.c"
default:
#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
break;
-#line 1942 "LibraryBranch.c"
+#line 2129 "LibraryBranch.c"
}
}
-static void _vala_library_hideable_page_entry_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
+static void
+_vala_library_hideable_page_entry_set_property (GObject * object,
+ guint property_id,
+ const GValue * value,
+ GParamSpec * pspec)
+{
LibraryHideablePageEntry * self;
self = G_TYPE_CHECK_INSTANCE_CAST (object, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry);
#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
@@ -1954,22 +2146,26 @@ static void _vala_library_hideable_page_entry_set_property (GObject * object, gu
library_hideable_page_entry_set_visible (self, g_value_get_boolean (value));
#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
break;
-#line 1958 "LibraryBranch.c"
+#line 2150 "LibraryBranch.c"
default:
#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
break;
-#line 1964 "LibraryBranch.c"
+#line 2156 "LibraryBranch.c"
}
}
-LibraryMainPage* library_main_page_construct (GType object_type, ProgressMonitor monitor, void* monitor_target) {
+LibraryMainPage*
+library_main_page_construct (GType object_type,
+ ProgressMonitor monitor,
+ void* monitor_target)
+{
LibraryMainPage * self = NULL;
#line 133 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
self = (LibraryMainPage*) collection_page_construct (object_type, LIBRARY_MAIN_PAGE_NAME);
-#line 1973 "LibraryBranch.c"
+#line 2169 "LibraryBranch.c"
{
GeeIterator* _sources_it = NULL;
MediaCollectionRegistry* _tmp0_;
@@ -1998,83 +2194,81 @@ LibraryMainPage* library_main_page_construct (GType object_type, ProgressMonitor
_sources_it = _tmp5_;
#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
while (TRUE) {
-#line 2002 "LibraryBranch.c"
+#line 2198 "LibraryBranch.c"
GeeIterator* _tmp6_;
- gboolean _tmp7_;
MediaSourceCollection* sources = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
+ GeeIterator* _tmp7_;
+ gpointer _tmp8_;
+ ViewCollection* _tmp9_;
ViewCollection* _tmp10_;
- ViewCollection* _tmp11_;
- MediaSourceCollection* _tmp12_;
+ MediaSourceCollection* _tmp11_;
+ CollectionViewManager* _tmp12_;
CollectionViewManager* _tmp13_;
- CollectionViewManager* _tmp14_;
- ProgressMonitor _tmp15_;
- void* _tmp15__target;
- ViewCollectionMonitor* _tmp16_;
- ViewCollectionMonitor* _tmp17_;
+ ViewCollectionMonitor* _tmp14_;
+ ViewCollectionMonitor* _tmp15_;
#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
_tmp6_ = _sources_it;
#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp7_ = gee_iterator_next (_tmp6_);
-#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- if (!_tmp7_) {
+ if (!gee_iterator_next (_tmp6_)) {
#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
break;
-#line 2025 "LibraryBranch.c"
+#line 2216 "LibraryBranch.c"
}
#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp8_ = _sources_it;
+ _tmp7_ = _sources_it;
#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
+ _tmp8_ = gee_iterator_get (_tmp7_);
#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- sources = (MediaSourceCollection*) _tmp9_;
+ sources = (MediaSourceCollection*) _tmp8_;
#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+ _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp11_ = _tmp10_;
+ _tmp10_ = _tmp9_;
#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp12_ = sources;
+ _tmp11_ = sources;
#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp13_ = collection_view_manager_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage));
+ _tmp12_ = collection_view_manager_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage));
#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp14_ = _tmp13_;
+ _tmp13_ = _tmp12_;
#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp15_ = monitor;
+ _tmp14_ = view_collection_monitor_source_collection (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_VIEW_MANAGER, ViewManager), NULL, NULL, monitor, monitor_target);
#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp15__target = monitor_target;
+ _tmp15_ = _tmp14_;
#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp16_ = view_collection_monitor_source_collection (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_VIEW_MANAGER, ViewManager), NULL, NULL, _tmp15_, _tmp15__target);
+ _view_collection_monitor_unref0 (_tmp15_);
#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp17_ = _tmp16_;
+ _view_manager_unref0 (_tmp13_);
#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _view_collection_monitor_unref0 (_tmp17_);
-#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _view_manager_unref0 (_tmp14_);
-#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _data_collection_unref0 (_tmp11_);
+ _data_collection_unref0 (_tmp10_);
#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
_data_collection_unref0 (sources);
-#line 2059 "LibraryBranch.c"
+#line 2246 "LibraryBranch.c"
}
#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
_g_object_unref0 (_sources_it);
-#line 2063 "LibraryBranch.c"
+#line 2250 "LibraryBranch.c"
}
#line 132 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return self;
-#line 2067 "LibraryBranch.c"
+#line 2254 "LibraryBranch.c"
}
-LibraryMainPage* library_main_page_new (ProgressMonitor monitor, void* monitor_target) {
+LibraryMainPage*
+library_main_page_new (ProgressMonitor monitor,
+ void* monitor_target)
+{
#line 132 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
return library_main_page_construct (LIBRARY_TYPE_MAIN_PAGE, monitor, monitor_target);
-#line 2074 "LibraryBranch.c"
+#line 2264 "LibraryBranch.c"
}
-static void library_main_page_real_get_config_photos_sort (MediaPage* base, gboolean* sort_order, gint* sort_by) {
+static void
+library_main_page_real_get_config_photos_sort (MediaPage* base,
+ gboolean* sort_order,
+ gint* sort_by)
+{
LibraryMainPage * self;
gboolean _vala_sort_order = FALSE;
gint _vala_sort_by = 0;
@@ -2100,23 +2294,25 @@ static void library_main_page_real_get_config_photos_sort (MediaPage* base, gboo
if (sort_order) {
#line 139 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
*sort_order = _vala_sort_order;
-#line 2104 "LibraryBranch.c"
+#line 2298 "LibraryBranch.c"
}
#line 139 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
if (sort_by) {
#line 139 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
*sort_by = _vala_sort_by;
-#line 2110 "LibraryBranch.c"
+#line 2304 "LibraryBranch.c"
}
}
-static void library_main_page_real_set_config_photos_sort (MediaPage* base, gboolean sort_order, gint sort_by) {
+static void
+library_main_page_real_set_config_photos_sort (MediaPage* base,
+ gboolean sort_order,
+ gint sort_by)
+{
LibraryMainPage * self;
ConfigFacade* _tmp0_;
ConfigFacade* _tmp1_;
- gboolean _tmp2_;
- gint _tmp3_;
#line 143 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_MAIN_PAGE, LibraryMainPage);
#line 144 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
@@ -2124,33 +2320,35 @@ static void library_main_page_real_set_config_photos_sort (MediaPage* base, gboo
#line 144 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
_tmp1_ = _tmp0_;
#line 144 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp2_ = sort_order;
-#line 144 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- _tmp3_ = sort_by;
-#line 144 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
- configuration_facade_set_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_);
+ configuration_facade_set_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), sort_order, sort_by);
#line 144 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
_g_object_unref0 (_tmp1_);
-#line 2135 "LibraryBranch.c"
+#line 2327 "LibraryBranch.c"
}
-static void library_main_page_class_init (LibraryMainPageClass * klass) {
+static void
+library_main_page_class_init (LibraryMainPageClass * klass)
+{
#line 129 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
library_main_page_parent_class = g_type_class_peek_parent (klass);
#line 129 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) library_main_page_real_get_config_photos_sort;
#line 129 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala"
((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) library_main_page_real_set_config_photos_sort;
-#line 2146 "LibraryBranch.c"
+#line 2340 "LibraryBranch.c"
}
-static void library_main_page_instance_init (LibraryMainPage * self) {
+static void
+library_main_page_instance_init (LibraryMainPage * self)
+{
}
-GType library_main_page_get_type (void) {
+GType
+library_main_page_get_type (void)
+{
static volatile gsize library_main_page_type_id__volatile = 0;
if (g_once_init_enter (&library_main_page_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (LibraryMainPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_main_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryMainPage), 0, (GInstanceInitFunc) library_main_page_instance_init, NULL };