summaryrefslogtreecommitdiff
path: root/src/tags/TagPage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tags/TagPage.c')
-rw-r--r--src/tags/TagPage.c651
1 files changed, 377 insertions, 274 deletions
diff --git a/src/tags/TagPage.c b/src/tags/TagPage.c
index efc0340..fa5f9eb 100644
--- a/src/tags/TagPage.c
+++ b/src/tags/TagPage.c
@@ -1,4 +1,4 @@
-/* TagPage.c generated by valac 0.36.6, the Vala compiler
+/* TagPage.c generated by valac 0.40.4, the Vala compiler
* generated from TagPage.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 <gtk/gtk.h>
@@ -210,6 +211,11 @@ typedef struct _TagPagePrivate TagPagePrivate;
typedef struct _Tag Tag;
typedef struct _TagClass TagClass;
+enum {
+ TAG_PAGE_0_PROPERTY,
+ TAG_PAGE_NUM_PROPERTIES
+};
+static GParamSpec* tag_page_properties[TAG_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))
@@ -592,9 +598,15 @@ 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 checkerboard_page_get_type (void) G_GNUC_CONST;
@@ -608,17 +620,29 @@ 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;
@@ -630,14 +654,17 @@ GType collection_page_get_type (void) G_GNUC_CONST;
GType tag_page_get_type (void) G_GNUC_CONST;
GType tag_get_type (void) G_GNUC_CONST;
#define TAG_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TAG_PAGE, TagPagePrivate))
-enum {
- TAG_PAGE_DUMMY_PROPERTY
-};
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 view_collection_get_type (void) G_GNUC_CONST;
@@ -649,223 +676,311 @@ GType container_source_collection_get_type (void) G_GNUC_CONST;
GType tag_source_collection_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;
-static void tag_page_on_tags_altered (TagPage* self, GeeMap* map);
-static void _tag_page_on_tags_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self);
+static void tag_page_on_tags_altered (TagPage* self,
+ GeeMap* map);
+static void _tag_page_on_tags_altered_data_collection_items_altered (DataCollection* _sender,
+ GeeMap* items,
+ gpointer self);
static void tag_page_on_delete_tag (TagPage* self);
-static void _tag_page_on_delete_tag_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _tag_page_on_delete_tag_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
static void tag_page_on_rename_tag (TagPage* self);
-static void _tag_page_on_rename_tag_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _tag_page_on_rename_tag_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
static void tag_page_on_remove_tag_from_photos (TagPage* self);
-static void _tag_page_on_remove_tag_from_photos_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _tag_page_on_remove_tag_from_photos_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
static void tag_page_on_new_child_tag_sidebar (TagPage* self);
-static void _tag_page_on_new_child_tag_sidebar_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _tag_page_on_new_child_tag_sidebar_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
TagPage* tag_page_new (Tag* tag);
-TagPage* tag_page_construct (GType object_type, Tag* tag);
+TagPage* tag_page_construct (GType object_type,
+ Tag* tag);
gchar* data_object_get_name (DataObject* self);
-CollectionPage* collection_page_construct (GType object_type, const gchar* page_name);
-void tag_mirror_sources (Tag* self, ViewCollection* view, CreateView mirroring_ctor, void* mirroring_ctor_target);
-DataView* media_page_create_thumbnail (MediaPage* self, DataSource* source);
-static DataView* _media_page_create_thumbnail_create_view (DataSource* source, gpointer self);
-void checkerboard_page_init_page_context_menu (CheckerboardPage* self, const gchar* path);
-static void tag_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames);
-void page_init_collect_ui_filenames (Page* self, GeeList* ui_filenames);
+CollectionPage* collection_page_construct (GType object_type,
+ const gchar* page_name);
+void tag_mirror_sources (Tag* self,
+ ViewCollection* view,
+ CreateView mirroring_ctor,
+ void* mirroring_ctor_target);
+DataView* media_page_create_thumbnail (MediaPage* self,
+ DataSource* source);
+static DataView* _media_page_create_thumbnail_create_view (DataSource* source,
+ gpointer self);
+void checkerboard_page_init_page_context_menu (CheckerboardPage* self,
+ const gchar* path);
+static void tag_page_real_init_collect_ui_filenames (Page* base,
+ GeeList* ui_filenames);
+void page_init_collect_ui_filenames (Page* self,
+ GeeList* ui_filenames);
Tag* tag_page_get_tag (TagPage* self);
-static void tag_page_real_get_config_photos_sort (MediaPage* base, gboolean* sort_order, gint* sort_by);
+static void tag_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_event_photos_sort (ConfigurationFacade* self, gboolean* sort_order, gint* sort_by);
-static void tag_page_real_set_config_photos_sort (MediaPage* base, gboolean sort_order, gint sort_by);
-void configuration_facade_set_event_photos_sort (ConfigurationFacade* self, gboolean sort_order, gint sort_by);
-static void tag_page_real_add_actions (Page* base, GActionMap* map);
-void page_add_actions (Page* self, GActionMap* map);
-static void tag_page_real_remove_actions (Page* base, GActionMap* map);
-void page_remove_actions (Page* self, GActionMap* map);
-void page_set_page_name (Page* self, const gchar* page_name);
-void page_update_actions (Page* self, gint selected_count, gint count);
+void configuration_facade_get_event_photos_sort (ConfigurationFacade* self,
+ gboolean* sort_order,
+ gint* sort_by);
+static void tag_page_real_set_config_photos_sort (MediaPage* base,
+ gboolean sort_order,
+ gint sort_by);
+void configuration_facade_set_event_photos_sort (ConfigurationFacade* self,
+ gboolean sort_order,
+ gint sort_by);
+static void tag_page_real_add_actions (Page* base,
+ GActionMap* map);
+void page_add_actions (Page* self,
+ GActionMap* map);
+static void tag_page_real_remove_actions (Page* base,
+ GActionMap* map);
+void page_remove_actions (Page* self,
+ GActionMap* map);
+void page_set_page_name (Page* self,
+ const gchar* page_name);
+void page_update_actions (Page* self,
+ gint selected_count,
+ gint count);
gint view_collection_get_selected_count (ViewCollection* self);
gint data_collection_get_count (DataCollection* self);
static void tag_page_real_switched_to (Page* base);
void page_switched_to (Page* self);
-void page_update_menu_item_label (Page* self, const gchar* id, const gchar* new_label);
+void page_update_menu_item_label (Page* self,
+ const gchar* id,
+ const gchar* new_label);
gchar* resources_delete_tag_menu (const gchar* name);
gchar* tag_get_user_visible_name (Tag* self);
gchar* resources_rename_tag_menu (const gchar* name);
-gchar* resources_untag_photos_menu (const gchar* name, gint count);
-static void tag_page_real_update_actions (Page* base, gint selected_count, gint count);
-void page_set_action_details (Page* self, const gchar* name, const gchar* label, const gchar* tooltip, gboolean sensitive);
+gchar* resources_untag_photos_menu (const gchar* name,
+ gint count);
+static void tag_page_real_update_actions (Page* base,
+ gint selected_count,
+ gint count);
+void page_set_action_details (Page* self,
+ const gchar* name,
+ const gchar* label,
+ const gchar* tooltip,
+ gboolean sensitive);
GType command_get_type (void) G_GNUC_CONST;
GType page_command_get_type (void) G_GNUC_CONST;
GType simple_proxyable_command_get_type (void) G_GNUC_CONST;
GType new_child_tag_command_get_type (void) G_GNUC_CONST;
NewChildTagCommand* new_child_tag_command_new (Tag* tag);
-NewChildTagCommand* new_child_tag_command_construct (GType object_type, Tag* tag);
+NewChildTagCommand* new_child_tag_command_construct (GType object_type,
+ Tag* tag);
gpointer command_manager_ref (gpointer instance);
void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_command_manager (GValue* value, gpointer v_object);
-void value_take_command_manager (GValue* value, gpointer v_object);
+GParamSpec* param_spec_command_manager (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_command_manager (GValue* value,
+ gpointer v_object);
+void value_take_command_manager (GValue* value,
+ gpointer v_object);
gpointer value_get_command_manager (const GValue* value);
GType command_manager_get_type (void) G_GNUC_CONST;
CommandManager* app_window_get_command_manager (void);
-void command_manager_execute (CommandManager* self, Command* command);
+void command_manager_execute (CommandManager* self,
+ Command* command);
GType app_window_get_type (void) G_GNUC_CONST;
GType library_window_get_type (void) G_GNUC_CONST;
LibraryWindow* library_window_get_app (void);
-void library_window_rename_tag_in_sidebar (LibraryWindow* self, Tag* tag);
+void library_window_rename_tag_in_sidebar (LibraryWindow* self,
+ Tag* tag);
Tag* new_child_tag_command_get_created_child (NewChildTagCommand* self);
gboolean dialogs_confirm_delete_tag (Tag* tag);
DeleteTagCommand* delete_tag_command_new (Tag* tag);
-DeleteTagCommand* delete_tag_command_construct (GType object_type, Tag* tag);
+DeleteTagCommand* delete_tag_command_construct (GType object_type,
+ Tag* tag);
GType delete_tag_command_get_type (void) G_GNUC_CONST;
CommandManager* page_get_command_manager (Page* self);
GeeList* view_collection_get_selected_sources (ViewCollection* self);
GType thumbnail_source_get_type (void) G_GNUC_CONST;
GType media_source_get_type (void) G_GNUC_CONST;
-TagUntagPhotosCommand* tag_untag_photos_command_new (Tag* tag, GeeCollection* sources, gint count, gboolean attach);
-TagUntagPhotosCommand* tag_untag_photos_command_construct (GType object_type, Tag* tag, GeeCollection* sources, gint count, gboolean attach);
+TagUntagPhotosCommand* tag_untag_photos_command_new (Tag* tag,
+ GeeCollection* sources,
+ gint count,
+ gboolean attach);
+TagUntagPhotosCommand* tag_untag_photos_command_construct (GType object_type,
+ Tag* tag,
+ GeeCollection* sources,
+ gint count,
+ gboolean attach);
GType tag_untag_photos_command_get_type (void) G_GNUC_CONST;
static void tag_page_finalize (GObject * obj);
static const GActionEntry TAG_PAGE_entries[4] = {{"DeleteTag", _tag_page_on_delete_tag_gsimple_action_activate_callback}, {"RenameTag", _tag_page_on_rename_tag_gsimple_action_activate_callback}, {"RemoveTagFromPhotos", _tag_page_on_remove_tag_from_photos_gsimple_action_activate_callback}, {"NewChildTagSidebar", _tag_page_on_new_child_tag_sidebar_gsimple_action_activate_callback}};
-static void _tag_page_on_tags_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) {
+static void
+_tag_page_on_tags_altered_data_collection_items_altered (DataCollection* _sender,
+ GeeMap* items,
+ gpointer self)
+{
#line 23 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
tag_page_on_tags_altered ((TagPage*) self, items);
-#line 741 "TagPage.c"
+#line 840 "TagPage.c"
}
-static void _tag_page_on_delete_tag_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_tag_page_on_delete_tag_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 43 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
tag_page_on_delete_tag ((TagPage*) self);
-#line 748 "TagPage.c"
+#line 851 "TagPage.c"
}
-static void _tag_page_on_rename_tag_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_tag_page_on_rename_tag_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 43 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
tag_page_on_rename_tag ((TagPage*) self);
-#line 755 "TagPage.c"
+#line 862 "TagPage.c"
}
-static void _tag_page_on_remove_tag_from_photos_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_tag_page_on_remove_tag_from_photos_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 43 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
tag_page_on_remove_tag_from_photos ((TagPage*) self);
-#line 762 "TagPage.c"
+#line 873 "TagPage.c"
}
-static void _tag_page_on_new_child_tag_sidebar_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_tag_page_on_new_child_tag_sidebar_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 43 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
tag_page_on_new_child_tag_sidebar ((TagPage*) self);
-#line 769 "TagPage.c"
+#line 884 "TagPage.c"
}
-static gpointer _g_object_ref0 (gpointer self) {
+static gpointer
+_g_object_ref0 (gpointer self)
+{
#line 13 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
return self ? g_object_ref (self) : NULL;
-#line 776 "TagPage.c"
+#line 893 "TagPage.c"
}
-static DataView* _media_page_create_thumbnail_create_view (DataSource* source, gpointer self) {
+static DataView*
+_media_page_create_thumbnail_create_view (DataSource* source,
+ gpointer self)
+{
DataView* result;
result = media_page_create_thumbnail ((MediaPage*) self, source);
#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
return result;
-#line 785 "TagPage.c"
+#line 905 "TagPage.c"
}
-TagPage* tag_page_construct (GType object_type, Tag* tag) {
+TagPage*
+tag_page_construct (GType object_type,
+ Tag* tag)
+{
TagPage * self = NULL;
- Tag* _tmp0_;
+ gchar* _tmp0_;
gchar* _tmp1_;
- gchar* _tmp2_;
- Tag* _tmp3_;
- Tag* _tmp4_;
- TagSourceCollection* _tmp5_;
- Tag* _tmp6_;
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
+ Tag* _tmp2_;
+ TagSourceCollection* _tmp3_;
+ ViewCollection* _tmp4_;
+ ViewCollection* _tmp5_;
#line 10 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
g_return_val_if_fail (IS_TAG (tag), NULL);
#line 11 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp0_ = tag;
+ _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject));
#line 11 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject));
-#line 11 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp2_ = _tmp1_;
+ _tmp1_ = _tmp0_;
#line 11 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- self = (TagPage*) collection_page_construct (object_type, _tmp2_);
+ self = (TagPage*) collection_page_construct (object_type, _tmp1_);
#line 11 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_free0 (_tmp2_);
-#line 13 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp3_ = tag;
+ _g_free0 (_tmp1_);
#line 13 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp4_ = _g_object_ref0 (_tmp3_);
+ _tmp2_ = _g_object_ref0 (tag);
#line 13 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
_g_object_unref0 (self->priv->tag);
#line 13 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- self->priv->tag = _tmp4_;
+ self->priv->tag = _tmp2_;
#line 15 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp5_ = tag_global;
+ _tmp3_ = tag_global;
#line 15 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _tag_page_on_tags_altered_data_collection_items_altered, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _tag_page_on_tags_altered_data_collection_items_altered, self, 0);
#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp6_ = tag;
+ _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp8_ = _tmp7_;
+ _tmp5_ = _tmp4_;
#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- tag_mirror_sources (_tmp6_, _tmp8_, _media_page_create_thumbnail_create_view, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage));
+ tag_mirror_sources (tag, _tmp5_, _media_page_create_thumbnail_create_view, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage));
#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _data_collection_unref0 (_tmp8_);
+ _data_collection_unref0 (_tmp5_);
#line 18 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
checkerboard_page_init_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "TagsContextMenu");
#line 10 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
return self;
-#line 838 "TagPage.c"
+#line 952 "TagPage.c"
}
-TagPage* tag_page_new (Tag* tag) {
+TagPage*
+tag_page_new (Tag* tag)
+{
#line 10 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
return tag_page_construct (TYPE_TAG_PAGE, tag);
-#line 845 "TagPage.c"
+#line 961 "TagPage.c"
}
-static void tag_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames) {
+static void
+tag_page_real_init_collect_ui_filenames (Page* base,
+ GeeList* ui_filenames)
+{
TagPage * self;
- GeeList* _tmp0_;
- GeeList* _tmp1_;
#line 26 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage);
#line 26 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
g_return_if_fail (GEE_IS_LIST (ui_filenames));
#line 27 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp0_ = ui_filenames;
-#line 27 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- PAGE_CLASS (tag_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp0_);
-#line 28 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = ui_filenames;
+ PAGE_CLASS (tag_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), ui_filenames);
#line 28 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), "tags.ui");
-#line 865 "TagPage.c"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "tags.ui");
+#line 978 "TagPage.c"
}
-Tag* tag_page_get_tag (TagPage* self) {
+Tag*
+tag_page_get_tag (TagPage* self)
+{
Tag* result = NULL;
Tag* _tmp0_;
Tag* _tmp1_;
@@ -879,11 +994,15 @@ Tag* tag_page_get_tag (TagPage* self) {
result = _tmp1_;
#line 32 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
return result;
-#line 883 "TagPage.c"
+#line 998 "TagPage.c"
}
-static void tag_page_real_get_config_photos_sort (MediaPage* base, gboolean* sort_order, gint* sort_by) {
+static void
+tag_page_real_get_config_photos_sort (MediaPage* base,
+ gboolean* sort_order,
+ gint* sort_by)
+{
TagPage * self;
gboolean _vala_sort_order = FALSE;
gint _vala_sort_by = 0;
@@ -909,23 +1028,25 @@ static void tag_page_real_get_config_photos_sort (MediaPage* base, gboolean* sor
if (sort_order) {
#line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
*sort_order = _vala_sort_order;
-#line 913 "TagPage.c"
+#line 1032 "TagPage.c"
}
#line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
if (sort_by) {
#line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
*sort_by = _vala_sort_by;
-#line 919 "TagPage.c"
+#line 1038 "TagPage.c"
}
}
-static void tag_page_real_set_config_photos_sort (MediaPage* base, gboolean sort_order, gint sort_by) {
+static void
+tag_page_real_set_config_photos_sort (MediaPage* base,
+ gboolean sort_order,
+ gint sort_by)
+{
TagPage * self;
ConfigFacade* _tmp0_;
ConfigFacade* _tmp1_;
- gboolean _tmp2_;
- gint _tmp3_;
#line 39 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage);
#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
@@ -933,49 +1054,42 @@ static void tag_page_real_set_config_photos_sort (MediaPage* base, gboolean sort
#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
_tmp1_ = _tmp0_;
#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp2_ = sort_order;
-#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp3_ = sort_by;
-#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- configuration_facade_set_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_);
+ configuration_facade_set_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), sort_order, sort_by);
#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
_g_object_unref0 (_tmp1_);
-#line 944 "TagPage.c"
+#line 1061 "TagPage.c"
}
-static void tag_page_real_add_actions (Page* base, GActionMap* map) {
+static void
+tag_page_real_add_actions (Page* base,
+ GActionMap* map)
+{
TagPage * self;
- GActionMap* _tmp0_;
- GActionMap* _tmp1_;
#line 50 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage);
#line 50 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
g_return_if_fail (G_IS_ACTION_MAP (map));
#line 51 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp0_ = map;
-#line 51 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- PAGE_CLASS (tag_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp0_);
-#line 53 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = map;
+ PAGE_CLASS (tag_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), map);
#line 53 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- g_action_map_add_action_entries (_tmp1_, TAG_PAGE_entries, G_N_ELEMENTS (TAG_PAGE_entries), self);
-#line 964 "TagPage.c"
+ g_action_map_add_action_entries (map, TAG_PAGE_entries, G_N_ELEMENTS (TAG_PAGE_entries), self);
+#line 1078 "TagPage.c"
}
-static void tag_page_real_remove_actions (Page* base, GActionMap* map) {
+static void
+tag_page_real_remove_actions (Page* base,
+ GActionMap* map)
+{
TagPage * self;
- GActionMap* _tmp0_;
#line 56 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage);
#line 56 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
g_return_if_fail (G_IS_ACTION_MAP (map));
#line 57 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp0_ = map;
-#line 57 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- PAGE_CLASS (tag_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp0_);
-#line 979 "TagPage.c"
+ PAGE_CLASS (tag_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), map);
+#line 1093 "TagPage.c"
{
GActionEntry* entry_collection = NULL;
gint entry_collection_length1 = 0;
@@ -987,90 +1101,80 @@ static void tag_page_real_remove_actions (Page* base, GActionMap* map) {
entry_collection_length1 = G_N_ELEMENTS (TAG_PAGE_entries);
#line 58 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
for (entry_it = 0; entry_it < G_N_ELEMENTS (TAG_PAGE_entries); entry_it = entry_it + 1) {
-#line 991 "TagPage.c"
+#line 1105 "TagPage.c"
GActionEntry entry = {0};
#line 58 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
entry = entry_collection[entry_it];
-#line 995 "TagPage.c"
+#line 1109 "TagPage.c"
{
- GActionMap* _tmp1_;
- GActionEntry _tmp2_;
- const gchar* _tmp3_;
-#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = map;
+ GActionEntry _tmp0_;
+ const gchar* _tmp1_;
#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp2_ = entry;
+ _tmp0_ = entry;
#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp3_ = _tmp2_.name;
+ _tmp1_ = _tmp0_.name;
#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- g_action_map_remove_action (_tmp1_, _tmp3_);
-#line 1008 "TagPage.c"
+ g_action_map_remove_action (map, _tmp1_);
+#line 1119 "TagPage.c"
}
}
}
}
-static void tag_page_on_tags_altered (TagPage* self, GeeMap* map) {
- GeeMap* _tmp0_;
- Tag* _tmp1_;
- gboolean _tmp2_;
+static void
+tag_page_on_tags_altered (TagPage* self,
+ GeeMap* map)
+{
+ Tag* _tmp0_;
#line 63 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
g_return_if_fail (IS_TAG_PAGE (self));
#line 63 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
g_return_if_fail (GEE_IS_MAP (map));
#line 64 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp0_ = map;
-#line 64 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = self->priv->tag;
-#line 64 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp2_ = gee_map_has_key (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject));
+ _tmp0_ = self->priv->tag;
#line 64 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- if (_tmp2_) {
-#line 1031 "TagPage.c"
- Tag* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
+ if (gee_map_has_key (map, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject))) {
+#line 1139 "TagPage.c"
+ Tag* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
+ ViewCollection* _tmp4_;
+ ViewCollection* _tmp5_;
ViewCollection* _tmp6_;
ViewCollection* _tmp7_;
- gint _tmp8_;
- ViewCollection* _tmp9_;
- ViewCollection* _tmp10_;
- gint _tmp11_;
#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp3_ = self->priv->tag;
+ _tmp1_ = self->priv->tag;
#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp4_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_OBJECT, DataObject));
+ _tmp2_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject));
#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp5_ = _tmp4_;
+ _tmp3_ = _tmp2_;
#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- page_set_page_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp5_);
+ page_set_page_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp3_);
#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_free0 (_tmp5_);
-#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp7_ = _tmp6_;
+ _g_free0 (_tmp3_);
#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp8_ = view_collection_get_selected_count (_tmp7_);
+ _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp10_ = _tmp9_;
+ _tmp5_ = _tmp4_;
#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp11_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_COLLECTION, DataCollection));
+ _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- page_update_actions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp8_, _tmp11_);
+ _tmp7_ = _tmp6_;
#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _data_collection_unref0 (_tmp10_);
+ page_update_actions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), view_collection_get_selected_count (_tmp5_), data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection)));
#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
_data_collection_unref0 (_tmp7_);
-#line 1069 "TagPage.c"
+#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _data_collection_unref0 (_tmp5_);
+#line 1171 "TagPage.c"
}
}
-static void tag_page_real_switched_to (Page* base) {
+static void
+tag_page_real_switched_to (Page* base)
+{
TagPage * self;
Tag* _tmp0_;
gchar* _tmp1_;
@@ -1139,11 +1243,15 @@ static void tag_page_real_switched_to (Page* base) {
_g_free0 (_tmp14_);
#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
_g_free0 (_tmp12_);
-#line 1143 "TagPage.c"
+#line 1247 "TagPage.c"
}
-static void tag_page_real_update_actions (Page* base, gint selected_count, gint count) {
+static void
+tag_page_real_update_actions (Page* base,
+ gint selected_count,
+ gint count)
+{
TagPage * self;
Tag* _tmp0_;
gchar* _tmp1_;
@@ -1158,12 +1266,8 @@ static void tag_page_real_update_actions (Page* base, gint selected_count, gint
Tag* _tmp10_;
gchar* _tmp11_;
gchar* _tmp12_;
- gint _tmp13_;
+ gchar* _tmp13_;
gchar* _tmp14_;
- gchar* _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
- gint _tmp18_;
#line 80 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage);
#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
@@ -1205,30 +1309,24 @@ static void tag_page_real_update_actions (Page* base, gint selected_count, gint
#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
_tmp12_ = _tmp11_;
#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp13_ = selected_count;
-#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp14_ = resources_untag_photos_menu (_tmp12_, _tmp13_);
+ _tmp13_ = resources_untag_photos_menu (_tmp12_, selected_count);
#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp15_ = _tmp14_;
-#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp16_ = selected_count;
+ _tmp14_ = _tmp13_;
#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- page_set_action_details (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RemoveTagFromPhotos", _tmp15_, NULL, _tmp16_ > 0);
+ page_set_action_details (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RemoveTagFromPhotos", _tmp14_, NULL, selected_count > 0);
#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_free0 (_tmp15_);
+ _g_free0 (_tmp14_);
#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
_g_free0 (_tmp12_);
#line 96 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp17_ = selected_count;
-#line 96 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp18_ = count;
-#line 96 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- PAGE_CLASS (tag_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp17_, _tmp18_);
-#line 1228 "TagPage.c"
+ PAGE_CLASS (tag_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), selected_count, count);
+#line 1324 "TagPage.c"
}
-static void tag_page_on_new_child_tag_sidebar (TagPage* self) {
+static void
+tag_page_on_new_child_tag_sidebar (TagPage* self)
+{
NewChildTagCommand* creation_command = NULL;
Tag* _tmp0_;
NewChildTagCommand* _tmp1_;
@@ -1270,11 +1368,13 @@ static void tag_page_on_new_child_tag_sidebar (TagPage* self) {
_g_object_unref0 (_tmp5_);
#line 99 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
_g_object_unref0 (creation_command);
-#line 1274 "TagPage.c"
+#line 1372 "TagPage.c"
}
-static void tag_page_on_rename_tag (TagPage* self) {
+static void
+tag_page_on_rename_tag (TagPage* self)
+{
LibraryWindow* _tmp0_;
LibraryWindow* _tmp1_;
Tag* _tmp2_;
@@ -1290,53 +1390,53 @@ static void tag_page_on_rename_tag (TagPage* self) {
library_window_rename_tag_in_sidebar (_tmp1_, _tmp2_);
#line 108 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
_g_object_unref0 (_tmp1_);
-#line 1294 "TagPage.c"
+#line 1394 "TagPage.c"
}
-static void tag_page_on_delete_tag (TagPage* self) {
+static void
+tag_page_on_delete_tag (TagPage* self)
+{
Tag* _tmp0_;
- gboolean _tmp1_;
#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
g_return_if_fail (IS_TAG_PAGE (self));
#line 112 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
_tmp0_ = self->priv->tag;
#line 112 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp1_ = dialogs_confirm_delete_tag (_tmp0_);
-#line 112 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- if (_tmp1_) {
-#line 1309 "TagPage.c"
+ if (dialogs_confirm_delete_tag (_tmp0_)) {
+#line 1408 "TagPage.c"
+ CommandManager* _tmp1_;
CommandManager* _tmp2_;
- CommandManager* _tmp3_;
- Tag* _tmp4_;
+ Tag* _tmp3_;
+ DeleteTagCommand* _tmp4_;
DeleteTagCommand* _tmp5_;
- DeleteTagCommand* _tmp6_;
#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp2_ = app_window_get_command_manager ();
+ _tmp1_ = app_window_get_command_manager ();
#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp3_ = _tmp2_;
+ _tmp2_ = _tmp1_;
#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp4_ = self->priv->tag;
+ _tmp3_ = self->priv->tag;
#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp5_ = delete_tag_command_new (_tmp4_);
+ _tmp4_ = delete_tag_command_new (_tmp3_);
#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp6_ = _tmp5_;
+ _tmp5_ = _tmp4_;
#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- command_manager_execute (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_COMMAND, Command));
+ command_manager_execute (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_COMMAND, Command));
#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_object_unref0 (_tmp6_);
+ _g_object_unref0 (_tmp5_);
#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _command_manager_unref0 (_tmp3_);
-#line 1331 "TagPage.c"
+ _command_manager_unref0 (_tmp2_);
+#line 1430 "TagPage.c"
}
}
-static void tag_page_on_remove_tag_from_photos (TagPage* self) {
+static void
+tag_page_on_remove_tag_from_photos (TagPage* self)
+{
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
- gint _tmp2_;
- gboolean _tmp3_;
+ gboolean _tmp2_;
#line 116 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
g_return_if_fail (IS_TAG_PAGE (self));
#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
@@ -1344,68 +1444,65 @@ static void tag_page_on_remove_tag_from_photos (TagPage* self) {
#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
_tmp1_ = _tmp0_;
#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_);
-#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp3_ = _tmp2_ > 0;
+ _tmp2_ = view_collection_get_selected_count (_tmp1_) > 0;
#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
_data_collection_unref0 (_tmp1_);
#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- if (_tmp3_) {
-#line 1355 "TagPage.c"
+ if (_tmp2_) {
+#line 1453 "TagPage.c"
+ CommandManager* _tmp3_;
CommandManager* _tmp4_;
- CommandManager* _tmp5_;
- Tag* _tmp6_;
+ Tag* _tmp5_;
+ ViewCollection* _tmp6_;
ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
- GeeList* _tmp9_;
- GeeCollection* _tmp10_;
+ GeeList* _tmp8_;
+ GeeCollection* _tmp9_;
+ ViewCollection* _tmp10_;
ViewCollection* _tmp11_;
- ViewCollection* _tmp12_;
- gint _tmp13_;
- TagUntagPhotosCommand* _tmp14_;
- TagUntagPhotosCommand* _tmp15_;
+ TagUntagPhotosCommand* _tmp12_;
+ TagUntagPhotosCommand* _tmp13_;
#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp4_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp5_ = _tmp4_;
+ _tmp3_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp6_ = self->priv->tag;
+ _tmp4_ = _tmp3_;
#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+ _tmp5_ = self->priv->tag;
#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp8_ = _tmp7_;
+ _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp9_ = view_collection_get_selected_sources (_tmp8_);
+ _tmp7_ = _tmp6_;
#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection);
+ _tmp8_ = view_collection_get_selected_sources (_tmp7_);
#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp11_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+ _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection);
#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp12_ = _tmp11_;
+ _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp13_ = view_collection_get_selected_count (_tmp12_);
+ _tmp11_ = _tmp10_;
#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp14_ = tag_untag_photos_command_new (_tmp6_, _tmp10_, _tmp13_, FALSE);
+ _tmp12_ = tag_untag_photos_command_new (_tmp5_, _tmp9_, view_collection_get_selected_count (_tmp11_), FALSE);
#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _tmp15_ = _tmp14_;
+ _tmp13_ = _tmp12_;
#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- command_manager_execute (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_COMMAND, Command));
+ command_manager_execute (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_COMMAND, Command));
#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_object_unref0 (_tmp15_);
+ _g_object_unref0 (_tmp13_);
#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _data_collection_unref0 (_tmp12_);
+ _data_collection_unref0 (_tmp11_);
#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _g_object_unref0 (_tmp10_);
+ _g_object_unref0 (_tmp9_);
#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _data_collection_unref0 (_tmp8_);
+ _data_collection_unref0 (_tmp7_);
#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
- _command_manager_unref0 (_tmp5_);
-#line 1404 "TagPage.c"
+ _command_manager_unref0 (_tmp4_);
+#line 1499 "TagPage.c"
}
}
-static void tag_page_class_init (TagPageClass * klass) {
+static void
+tag_page_class_init (TagPageClass * klass)
+{
#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
tag_page_parent_class = g_type_class_peek_parent (klass);
#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
@@ -1426,18 +1523,22 @@ static void tag_page_class_init (TagPageClass * klass) {
((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) tag_page_real_update_actions;
#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
G_OBJECT_CLASS (klass)->finalize = tag_page_finalize;
-#line 1430 "TagPage.c"
+#line 1527 "TagPage.c"
}
-static void tag_page_instance_init (TagPage * self) {
+static void
+tag_page_instance_init (TagPage * self)
+{
#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
self->priv = TAG_PAGE_GET_PRIVATE (self);
-#line 1437 "TagPage.c"
+#line 1536 "TagPage.c"
}
-static void tag_page_finalize (GObject * obj) {
+static void
+tag_page_finalize (GObject * obj)
+{
TagPage * self;
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
@@ -1463,11 +1564,13 @@ static void tag_page_finalize (GObject * obj) {
_g_object_unref0 (self->priv->tag);
#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
G_OBJECT_CLASS (tag_page_parent_class)->finalize (obj);
-#line 1467 "TagPage.c"
+#line 1568 "TagPage.c"
}
-GType tag_page_get_type (void) {
+GType
+tag_page_get_type (void)
+{
static volatile gsize tag_page_type_id__volatile = 0;
if (g_once_init_enter (&tag_page_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (TagPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagPage), 0, (GInstanceInitFunc) tag_page_instance_init, NULL };