summaryrefslogtreecommitdiff
path: root/src/CollectionPage.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-07-09 12:10:38 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-07-09 12:10:38 +0200
commit709e2d6f5652ec90c194a4ec2b530bebc6f952cb (patch)
tree496b2f3899e1d5728ee9ae76095cc5056c317447 /src/CollectionPage.c
parentf1353e9ffd34db5f755c7da0b3f9c10638fbfd38 (diff)
parent5c8be07095cc04a6d8a95204b0504fd7ab030154 (diff)
Merge branch 'release/0.28.3-1'0.28.3-1
Diffstat (limited to 'src/CollectionPage.c')
-rw-r--r--src/CollectionPage.c6593
1 files changed, 3424 insertions, 3169 deletions
diff --git a/src/CollectionPage.c b/src/CollectionPage.c
index 87f07c8..6086969 100644
--- a/src/CollectionPage.c
+++ b/src/CollectionPage.c
@@ -1,4 +1,4 @@
-/* CollectionPage.c generated by valac 0.36.6, the Vala compiler
+/* CollectionPage.c generated by valac 0.40.4, the Vala compiler
* generated from CollectionPage.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -7,6 +7,7 @@
* See the COPYING file in this distribution.
*/
+
#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
@@ -18,6 +19,7 @@
#include <float.h>
#include <math.h>
#include <glib/gi18n-lib.h>
+#include "shotwell-graphics-processor.h"
#include <time.h>
@@ -246,6 +248,11 @@ typedef struct _DefaultSearchViewFilterClass DefaultSearchViewFilterClass;
typedef struct _CollectionPageCollectionSearchViewFilter CollectionPageCollectionSearchViewFilter;
typedef struct _CollectionPageCollectionSearchViewFilterClass CollectionPageCollectionSearchViewFilterClass;
+enum {
+ COLLECTION_PAGE_0_PROPERTY,
+ COLLECTION_PAGE_NUM_PROPERTIES
+};
+static GParamSpec* collection_page_properties[COLLECTION_PAGE_NUM_PROPERTIES];
#define _exporter_ui_unref0(var) ((var == NULL) ? NULL : (var = (exporter_ui_unref (var), NULL)))
#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL)))
@@ -544,16 +551,6 @@ typedef struct _MultiplePhotoTransformationCommandClass MultiplePhotoTransformat
typedef struct _RevertMultipleCommand RevertMultipleCommand;
typedef struct _RevertMultipleCommandClass RevertMultipleCommandClass;
-
-#define TYPE_PIXEL_TRANSFORMATION_BUNDLE (pixel_transformation_bundle_get_type ())
-#define PIXEL_TRANSFORMATION_BUNDLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundle))
-#define PIXEL_TRANSFORMATION_BUNDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundleClass))
-#define IS_PIXEL_TRANSFORMATION_BUNDLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE))
-#define IS_PIXEL_TRANSFORMATION_BUNDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMATION_BUNDLE))
-#define PIXEL_TRANSFORMATION_BUNDLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundleClass))
-
-typedef struct _PixelTransformationBundle PixelTransformationBundle;
-typedef struct _PixelTransformationBundleClass PixelTransformationBundleClass;
#define _pixel_transformation_bundle_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_bundle_unref (var), NULL)))
#define TYPE_ADJUST_COLORS_MULTIPLE_COMMAND (adjust_colors_multiple_command_get_type ())
@@ -1013,9 +1010,15 @@ static gpointer collection_page_collection_search_view_filter_parent_class = NUL
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;
GType data_object_get_type (void) G_GNUC_CONST;
@@ -1027,22 +1030,28 @@ 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;
#define COLLECTION_VIEW_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerPrivate))
-enum {
- COLLECTION_VIEW_MANAGER_DUMMY_PROPERTY
-};
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);
ViewManager* view_manager_construct (GType object_type);
-static DataView* collection_view_manager_real_create_view (ViewManager* base, DataSource* source);
-DataView* media_page_create_thumbnail (MediaPage* self, DataSource* source);
+static DataView* collection_view_manager_real_create_view (ViewManager* base,
+ DataSource* source);
+DataView* media_page_create_thumbnail (MediaPage* self,
+ DataSource* source);
static void collection_view_manager_finalize (ViewManager * obj);
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 thumbnail_view_get_type (void) G_GNUC_CONST;
@@ -1053,17 +1062,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;
@@ -1071,108 +1092,194 @@ GType rating_get_type (void) G_GNUC_CONST;
GType raw_developer_get_type (void) G_GNUC_CONST;
gpointer exporter_ui_ref (gpointer instance);
void exporter_ui_unref (gpointer instance);
-GParamSpec* param_spec_exporter_ui (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_exporter_ui (GValue* value, gpointer v_object);
-void value_take_exporter_ui (GValue* value, gpointer v_object);
+GParamSpec* param_spec_exporter_ui (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_exporter_ui (GValue* value,
+ gpointer v_object);
+void value_take_exporter_ui (GValue* value,
+ gpointer v_object);
gpointer value_get_exporter_ui (const GValue* value);
GType exporter_ui_get_type (void) G_GNUC_CONST;
GType default_search_view_filter_get_type (void) G_GNUC_CONST;
GType collection_page_collection_search_view_filter_get_type (void) G_GNUC_CONST;
#define COLLECTION_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_COLLECTION_PAGE, CollectionPagePrivate))
-enum {
- COLLECTION_PAGE_DUMMY_PROPERTY
-};
CollectionPageCollectionSearchViewFilter* collection_page_collection_search_view_filter_new (void);
CollectionPageCollectionSearchViewFilter* collection_page_collection_search_view_filter_construct (GType object_type);
#define COLLECTION_PAGE_DESKTOP_SLIDESHOW_TRANSITION_SEC 2.0
static void collection_page_on_print (CollectionPage* self);
-static void _collection_page_on_print_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _collection_page_on_print_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
static void collection_page_on_publish (CollectionPage* self);
-static void _collection_page_on_publish_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _collection_page_on_publish_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
static void collection_page_on_rotate_clockwise (CollectionPage* self);
-static void _collection_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _collection_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
static void collection_page_on_rotate_counterclockwise (CollectionPage* self);
-static void _collection_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _collection_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
static void collection_page_on_flip_horizontally (CollectionPage* self);
-static void _collection_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _collection_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
static void collection_page_on_flip_vertically (CollectionPage* self);
-static void _collection_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _collection_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
static void collection_page_on_enhance (CollectionPage* self);
-static void _collection_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _collection_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
void collection_page_on_copy_adjustments (CollectionPage* self);
-static void _collection_page_on_copy_adjustments_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _collection_page_on_copy_adjustments_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
void collection_page_on_paste_adjustments (CollectionPage* self);
-static void _collection_page_on_paste_adjustments_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _collection_page_on_paste_adjustments_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
static void collection_page_on_revert (CollectionPage* self);
-static void _collection_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _collection_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
void collection_page_on_set_background (CollectionPage* self);
-static void _collection_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _collection_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
static void collection_page_on_duplicate_photo (CollectionPage* self);
-static void _collection_page_on_duplicate_photo_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _collection_page_on_duplicate_photo_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
static void collection_page_on_adjust_date_time (CollectionPage* self);
-static void _collection_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _collection_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
static void collection_page_on_external_edit (CollectionPage* self);
-static void _collection_page_on_external_edit_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _collection_page_on_external_edit_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
static void collection_page_on_external_edit_raw (CollectionPage* self);
-static void _collection_page_on_external_edit_raw_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
+static void _collection_page_on_external_edit_raw_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
static void collection_page_on_slideshow (CollectionPage* self);
-static void _collection_page_on_slideshow_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
-CollectionPage* collection_page_construct (GType object_type, const gchar* page_name);
-MediaPage* media_page_construct (GType object_type, const gchar* page_name);
+static void _collection_page_on_slideshow_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self);
+CollectionPage* collection_page_construct (GType object_type,
+ const gchar* page_name);
+MediaPage* media_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 view_collection_get_type (void) G_GNUC_CONST;
ViewCollection* page_get_view (Page* self);
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 collection_page_on_photos_altered (CollectionPage* self, GeeMap* altered);
-static void _collection_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self);
-void checkerboard_page_init_item_context_menu (CheckerboardPage* self, const gchar* path);
-void page_init_toolbar (Page* self, const gchar* path);
+static void collection_page_on_photos_altered (CollectionPage* self,
+ GeeMap* altered);
+static void _collection_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender,
+ GeeMap* items,
+ gpointer self);
+void checkerboard_page_init_item_context_menu (CheckerboardPage* self,
+ const gchar* path);
+void page_init_toolbar (Page* self,
+ const gchar* path);
GType configuration_facade_get_type (void) G_GNUC_CONST;
GType config_facade_get_type (void) G_GNUC_CONST;
ConfigFacade* config_facade_get_instance (void);
static void collection_page_on_external_app_changed (CollectionPage* self);
-static void _collection_page_on_external_app_changed_configuration_facade_external_app_changed (ConfigurationFacade* _sender, gpointer self);
+static void _collection_page_on_external_app_changed_configuration_facade_external_app_changed (ConfigurationFacade* _sender,
+ gpointer self);
static GtkToolbar* collection_page_real_get_toolbar (Page* base);
GtkToolbar* page_get_toolbar (Page* self);
GType media_page_zoom_slider_assembly_get_type (void) G_GNUC_CONST;
MediaPageZoomSliderAssembly* media_page_create_zoom_slider_assembly (MediaPage* self);
-void media_page_connect_slider (MediaPage* self, MediaPageZoomSliderAssembly* slider);
+void media_page_connect_slider (MediaPage* self,
+ MediaPageZoomSliderAssembly* slider);
static InjectionGroup* collection_page_create_file_menu_injectables (void);
InjectionGroup* injection_group_new (const gchar* path);
-InjectionGroup* injection_group_construct (GType object_type, const gchar* path);
-void injection_group_add_menu_item (InjectionGroup* self, const gchar* name, const gchar* action, const gchar* accellerator);
+InjectionGroup* injection_group_construct (GType object_type,
+ const gchar* path);
+void injection_group_add_menu_item (InjectionGroup* self,
+ const gchar* name,
+ const gchar* action,
+ const gchar* accellerator);
void injection_group_add_separator (InjectionGroup* self);
static InjectionGroup* collection_page_create_edit_menu_injectables (void);
static InjectionGroup* collection_page_create_view_menu_fullscreen_injectables (void);
static InjectionGroup* collection_page_create_photos_menu_edits_injectables (void);
static InjectionGroup* collection_page_create_photos_menu_date_injectables (void);
static InjectionGroup* collection_page_create_photos_menu_externals_injectables (void);
-static void collection_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames);
-void page_init_collect_ui_filenames (Page* self, GeeList* ui_filenames);
-static void collection_page_real_add_actions (Page* base, GActionMap* map);
-void page_add_actions (Page* self, GActionMap* map);
-static void collection_page_real_remove_actions (Page* base, GActionMap* map);
-void page_remove_actions (Page* self, GActionMap* map);
-static InjectionGroup** collection_page_real_init_collect_injection_groups (Page* base, int* result_length1);
-InjectionGroup** page_init_collect_injection_groups (Page* self, int* result_length1);
-static void _vala_array_add76 (InjectionGroup** * array, int* length, int* size, InjectionGroup* value);
-static void _vala_array_add77 (InjectionGroup** * array, int* length, int* size, InjectionGroup* value);
-static void _vala_array_add78 (InjectionGroup** * array, int* length, int* size, InjectionGroup* value);
-static void _vala_array_add79 (InjectionGroup** * array, int* length, int* size, InjectionGroup* value);
-static void _vala_array_add80 (InjectionGroup** * array, int* length, int* size, InjectionGroup* value);
-static void _vala_array_add81 (InjectionGroup** * array, int* length, int* size, InjectionGroup* value);
+static void collection_page_real_init_collect_ui_filenames (Page* base,
+ GeeList* ui_filenames);
+void page_init_collect_ui_filenames (Page* self,
+ GeeList* ui_filenames);
+static void collection_page_real_add_actions (Page* base,
+ GActionMap* map);
+void page_add_actions (Page* self,
+ GActionMap* map);
+static void collection_page_real_remove_actions (Page* base,
+ GActionMap* map);
+void page_remove_actions (Page* self,
+ GActionMap* map);
+static InjectionGroup** collection_page_real_init_collect_injection_groups (Page* base,
+ int* result_length1);
+InjectionGroup** page_init_collect_injection_groups (Page* self,
+ int* result_length1);
+static void _vala_array_add80 (InjectionGroup** * array,
+ int* length,
+ int* size,
+ InjectionGroup* value);
+static void _vala_array_add81 (InjectionGroup** * array,
+ int* length,
+ int* size,
+ InjectionGroup* value);
+static void _vala_array_add82 (InjectionGroup** * array,
+ int* length,
+ int* size,
+ InjectionGroup* value);
+static void _vala_array_add83 (InjectionGroup** * array,
+ int* length,
+ int* size,
+ InjectionGroup* value);
+static void _vala_array_add84 (InjectionGroup** * array,
+ int* length,
+ int* size,
+ InjectionGroup* value);
+static void _vala_array_add85 (InjectionGroup** * array,
+ int* length,
+ int* size,
+ InjectionGroup* value);
static gboolean collection_page_selection_has_video (CollectionPage* self);
GType thumbnail_source_get_type (void) G_GNUC_CONST;
GType media_source_get_type (void) G_GNUC_CONST;
@@ -1182,24 +1289,29 @@ static gboolean collection_page_page_has_photo (CollectionPage* self);
gboolean media_source_collection_has_photo (GeeCollection* media);
GeeCollection* view_collection_get_sources (ViewCollection* self);
static gboolean collection_page_selection_has_photo (CollectionPage* self);
-static void collection_page_real_init_actions (Page* base, gint selected_count, gint count);
-void page_init_actions (Page* self, gint selected_count, gint count);
-void page_set_action_short_label (Page* self, const gchar* name, const gchar* short_label);
-#define RESOURCES_ROTATE_CW_LABEL _ ("Rotate")
-#define RESOURCES_ROTATE_CCW_LABEL _ ("Rotate")
-#define RESOURCES_PUBLISH_LABEL _ ("Publish")
-void page_set_action_important (Page* self, const gchar* name, gboolean important);
-static void collection_page_real_update_actions (Page* base, gint selected_count, gint count);
+static void collection_page_real_init_actions (Page* base,
+ gint selected_count,
+ gint count);
+void page_init_actions (Page* self,
+ gint selected_count,
+ gint count);
+void page_set_action_sensitive (Page* self,
+ const gchar* name,
+ gboolean sensitive);
+static void collection_page_real_update_actions (Page* base,
+ gint selected_count,
+ gint count);
GType app_window_get_type (void) G_GNUC_CONST;
AppWindow* app_window_get_instance (void);
Page* page_window_get_current_page (PageWindow* self);
-void page_update_actions (Page* self, gint selected_count, gint count);
-DataView* view_collection_get_selected_at (ViewCollection* self, gint index);
+void page_update_actions (Page* self,
+ gint selected_count,
+ gint count);
+DataView* view_collection_get_selected_at (ViewCollection* self,
+ gint index);
DataSource* data_view_get_source (DataView* self);
GType video_source_get_type (void) G_GNUC_CONST;
GType video_get_type (void) G_GNUC_CONST;
-void page_set_action_sensitive (Page* self, const gchar* name, gboolean sensitive);
-void page_set_action_visible (Page* self, const gchar* name, gboolean visible);
gboolean is_string_empty (const gchar* s);
gchar* configuration_facade_get_external_photo_app (ConfigurationFacade* self);
GType photo_source_get_type (void) G_GNUC_CONST;
@@ -1209,25 +1321,38 @@ PhotoFileFormat photo_get_master_file_format (Photo* self);
gchar* configuration_facade_get_external_raw_app (ConfigurationFacade* self);
static gboolean collection_page_can_revert_selected (CollectionPage* self);
gboolean photo_has_color_adjustments (Photo* self);
-gboolean pixel_transformation_bundle_has_copied_color_adjustments (void);
#define RESOURCES_SET_BACKGROUND_MENU _ ("Set as _Desktop Background")
#define RESOURCES_SET_BACKGROUND_SLIDESHOW_MENU _ ("Set as _Desktop Slideshow…")
-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);
gboolean data_view_is_selected (DataView* self);
-gboolean alteration_has_subject (Alteration* self, const gchar* subject);
+gboolean alteration_has_subject (Alteration* self,
+ const gchar* subject);
GType library_photo_get_type (void) G_GNUC_CONST;
gint view_collection_get_selected_count (ViewCollection* self);
gpointer print_manager_ref (gpointer instance);
void print_manager_unref (gpointer instance);
-GParamSpec* param_spec_print_manager (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_print_manager (GValue* value, gpointer v_object);
-void value_take_print_manager (GValue* value, gpointer v_object);
+GParamSpec* param_spec_print_manager (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_print_manager (GValue* value,
+ gpointer v_object);
+void value_take_print_manager (GValue* value,
+ gpointer v_object);
gpointer value_get_print_manager (const GValue* value);
GType print_manager_get_type (void) G_GNUC_CONST;
PrintManager* print_manager_get_instance (void);
-void print_manager_spool_photo (PrintManager* self, GeeCollection* to_print);
-GeeList* view_collection_get_selected_sources_of_type (ViewCollection* self, GType t);
-static void collection_page_real_on_item_activated (CheckerboardPage* base, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers);
+void print_manager_spool_photo (PrintManager* self,
+ GeeCollection* to_print);
+GeeList* view_collection_get_selected_sources_of_type (ViewCollection* self,
+ GType t);
+static void collection_page_real_on_item_activated (CheckerboardPage* base,
+ CheckerboardItem* item,
+ CheckerboardPageActivator activator,
+ CheckerboardPageKeyboardModifiers* modifiers);
GType media_source_item_get_type (void) G_GNUC_CONST;
GType thumbnail_get_type (void) G_GNUC_CONST;
MediaSource* thumbnail_get_media_source (Thumbnail* self);
@@ -1235,18 +1360,29 @@ void media_page_on_play_video (MediaPage* self);
gchar* data_object_to_string (DataObject* self);
GType library_window_get_type (void) G_GNUC_CONST;
LibraryWindow* library_window_get_app (void);
-void library_window_switch_to_photo_page (LibraryWindow* self, CollectionPage* controller, Photo* current);
-static gboolean collection_page_real_on_app_key_pressed (Page* base, GdkEventKey* event);
-void page_activate_action (Page* self, const gchar* name);
-gboolean page_on_app_key_pressed (Page* self, GdkEventKey* event);
+void library_window_switch_to_photo_page (LibraryWindow* self,
+ CollectionPage* controller,
+ Photo* current);
+static gboolean collection_page_real_on_app_key_pressed (Page* base,
+ GdkEventKey* event);
+void page_activate_action (Page* self,
+ const gchar* name);
+gboolean page_on_app_key_pressed (Page* self,
+ GdkEventKey* event);
static void collection_page_real_on_export (MediaPage* base);
GType exporter_get_type (void) G_GNUC_CONST;
-ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback done, void* done_target, gboolean export_in_place);
+ExporterUI* video_export_many (GeeCollection* videos,
+ ExporterCompletionCallback done,
+ void* done_target,
+ gboolean export_in_place);
static void collection_page_on_export_completed (CollectionPage* self);
-static void _collection_page_on_export_completed_exporter_completion_callback (Exporter* exporter, gboolean is_cancelled, gpointer self);
+static void _collection_page_on_export_completed_exporter_completion_callback (Exporter* exporter,
+ gboolean is_cancelled,
+ gpointer self);
GType export_dialog_get_type (void) G_GNUC_CONST;
ExportDialog* export_dialog_new (const gchar* title);
-ExportDialog* export_dialog_construct (GType object_type, const gchar* title);
+ExportDialog* export_dialog_construct (GType object_type,
+ const gchar* title);
GType export_format_parameters_get_type (void) G_GNUC_CONST;
GType export_format_mode_get_type (void) G_GNUC_CONST;
GType jpeg_quality_get_type (void) G_GNUC_CONST;
@@ -1255,27 +1391,55 @@ void export_format_parameters_free (ExportFormatParameters* self);
void export_format_parameters_current (ExportFormatParameters* result);
void export_format_parameters_last (ExportFormatParameters* result);
GType scale_constraint_get_type (void) G_GNUC_CONST;
-gboolean export_dialog_execute (ExportDialog* self, gint* scale, ScaleConstraint* constraint, ExportFormatParameters* parameters);
+gboolean export_dialog_execute (ExportDialog* self,
+ gint* scale,
+ ScaleConstraint* constraint,
+ ExportFormatParameters* parameters);
GType scaling_get_type (void) G_GNUC_CONST;
GType dimensions_get_type (void) G_GNUC_CONST;
Dimensions* dimensions_dup (const Dimensions* self);
void dimensions_free (Dimensions* self);
Scaling* scaling_dup (const Scaling* self);
void scaling_free (Scaling* self);
-void scaling_for_constraint (ScaleConstraint constraint, gint scale, gboolean scale_up, Scaling* result);
+void scaling_for_constraint (ScaleConstraint constraint,
+ gint scale,
+ gboolean scale_up,
+ Scaling* result);
GFile* export_ui_choose_file (const gchar* current_file_basename);
-gchar* photo_get_export_basename_for_parameters (Photo* self, ExportFormatParameters* params);
+gchar* photo_get_export_basename_for_parameters (Photo* self,
+ ExportFormatParameters* params);
void page_window_set_busy_cursor (PageWindow* self);
-void photo_export (Photo* self, GFile* dest_file, Scaling* scaling, JpegQuality quality, PhotoFileFormat export_format, gboolean direct_copy_unmodified, gboolean export_metadata, GError** error);
-PhotoFileFormat photo_get_export_format_for_parameters (Photo* self, ExportFormatParameters* params);
+void photo_export (Photo* self,
+ GFile* dest_file,
+ Scaling* scaling,
+ JpegQuality quality,
+ PhotoFileFormat export_format,
+ gboolean direct_copy_unmodified,
+ gboolean export_metadata,
+ GError** error);
+PhotoFileFormat photo_get_export_format_for_parameters (Photo* self,
+ ExportFormatParameters* params);
void page_window_set_normal_cursor (PageWindow* self);
-GtkResponseType export_error_dialog (GFile* dest, gboolean photos_remaining);
+GtkResponseType export_error_dialog (GFile* dest,
+ gboolean photos_remaining);
GFile* export_ui_choose_dir (const gchar* user_title);
-Exporter* exporter_new (GeeCollection* to_export, GFile* dir, Scaling* scaling, ExportFormatParameters* export_params, gboolean auto_replace_all);
-Exporter* exporter_construct (GType object_type, GeeCollection* to_export, GFile* dir, Scaling* scaling, ExportFormatParameters* export_params, gboolean auto_replace_all);
+Exporter* exporter_new (GeeCollection* to_export,
+ GFile* dir,
+ Scaling* scaling,
+ ExportFormatParameters* export_params,
+ gboolean auto_replace_all);
+Exporter* exporter_construct (GType object_type,
+ GeeCollection* to_export,
+ GFile* dir,
+ Scaling* scaling,
+ ExportFormatParameters* export_params,
+ gboolean auto_replace_all);
ExporterUI* exporter_ui_new (Exporter* exporter);
-ExporterUI* exporter_ui_construct (GType object_type, Exporter* exporter);
-void exporter_ui_export (ExporterUI* self, ExporterCompletionCallback completion_callback, void* completion_callback_target);
+ExporterUI* exporter_ui_construct (GType object_type,
+ Exporter* exporter);
+void exporter_ui_export (ExporterUI* self,
+ ExporterCompletionCallback completion_callback,
+ void* completion_callback_target);
gboolean photo_has_transformations (Photo* self);
gboolean photo_has_editable (Photo* self);
static gboolean collection_page_can_revert_editable_selected (CollectionPage* self);
@@ -1287,144 +1451,220 @@ GeeList* view_collection_get_selected (ViewCollection* self);
GType rotation_get_type (void) G_GNUC_CONST;
#define RESOURCES_ROTATE_CW_FULL_LABEL _ ("Rotate Right")
#define RESOURCES_ROTATE_CW_TOOLTIP _ ("Rotate the photos right (press Ctrl to rotate left)")
-RotateMultipleCommand* rotate_multiple_command_new (GeeIterable* iter, Rotation rotation, const gchar* name, const gchar* explanation, const gchar* progress_text, const gchar* undo_progress_text);
-RotateMultipleCommand* rotate_multiple_command_construct (GType object_type, GeeIterable* iter, Rotation rotation, const gchar* name, const gchar* explanation, const gchar* progress_text, const gchar* undo_progress_text);
+RotateMultipleCommand* rotate_multiple_command_new (GeeIterable* iter,
+ Rotation rotation,
+ const gchar* name,
+ const gchar* explanation,
+ const gchar* progress_text,
+ const gchar* undo_progress_text);
+RotateMultipleCommand* rotate_multiple_command_construct (GType object_type,
+ GeeIterable* iter,
+ Rotation rotation,
+ const gchar* name,
+ const gchar* explanation,
+ const gchar* progress_text,
+ const gchar* undo_progress_text);
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* page_get_command_manager (Page* self);
-void command_manager_execute (CommandManager* self, Command* command);
+void command_manager_execute (CommandManager* self,
+ Command* command);
void publishing_ui_publishing_dialog_go (GeeCollection* to_publish);
#define RESOURCES_ROTATE_CCW_FULL_LABEL _ ("Rotate Left")
#define RESOURCES_ROTATE_CCW_TOOLTIP _ ("Rotate the photos left")
#define RESOURCES_HFLIP_LABEL _ ("Flip Horizontally")
#define RESOURCES_VFLIP_LABEL _ ("Flip Vertically")
-gboolean revert_editable_dialog (GtkWindow* owner, GeeCollection* photos);
-void photo_revert_to_master (Photo* self, gboolean notify);
+gboolean revert_editable_dialog (GtkWindow* owner,
+ GeeCollection* photos);
+void photo_revert_to_master (Photo* self,
+ gboolean notify);
GType multiple_photo_transformation_command_get_type (void) G_GNUC_CONST;
GType revert_multiple_command_get_type (void) G_GNUC_CONST;
RevertMultipleCommand* revert_multiple_command_new (GeeIterable* iter);
-RevertMultipleCommand* revert_multiple_command_construct (GType object_type, GeeIterable* iter);
-gpointer pixel_transformation_bundle_ref (gpointer instance);
-void pixel_transformation_bundle_unref (gpointer instance);
-GParamSpec* param_spec_pixel_transformation_bundle (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_pixel_transformation_bundle (GValue* value, gpointer v_object);
-void value_take_pixel_transformation_bundle (GValue* value, gpointer v_object);
-gpointer value_get_pixel_transformation_bundle (const GValue* value);
-GType pixel_transformation_bundle_get_type (void) G_GNUC_CONST;
-void pixel_transformation_bundle_set_copied_color_adjustments (PixelTransformationBundle* adjustments);
+RevertMultipleCommand* revert_multiple_command_construct (GType object_type,
+ GeeIterable* iter);
PixelTransformationBundle* photo_get_color_adjustments (Photo* self);
-PixelTransformationBundle* pixel_transformation_bundle_get_copied_color_adjustments (void);
GType adjust_colors_multiple_command_get_type (void) G_GNUC_CONST;
#define RESOURCES_PASTE_ADJUSTMENTS_LABEL _ ("Paste Color Adjustments")
#define RESOURCES_PASTE_ADJUSTMENTS_TOOLTIP _ ("Apply copied color adjustments to the selected photos")
-AdjustColorsMultipleCommand* adjust_colors_multiple_command_new (GeeIterable* iter, PixelTransformationBundle* transformations, const gchar* name, const gchar* explanation);
-AdjustColorsMultipleCommand* adjust_colors_multiple_command_construct (GType object_type, GeeIterable* iter, PixelTransformationBundle* transformations, const gchar* name, const gchar* explanation);
+AdjustColorsMultipleCommand* adjust_colors_multiple_command_new (GeeIterable* iter,
+ PixelTransformationBundle* transformations,
+ const gchar* name,
+ const gchar* explanation);
+AdjustColorsMultipleCommand* adjust_colors_multiple_command_construct (GType object_type,
+ GeeIterable* iter,
+ PixelTransformationBundle* transformations,
+ const gchar* name,
+ const gchar* explanation);
GType enhance_multiple_command_get_type (void) G_GNUC_CONST;
EnhanceMultipleCommand* enhance_multiple_command_new (GeeIterable* iter);
-EnhanceMultipleCommand* enhance_multiple_command_construct (GType object_type, GeeIterable* iter);
+EnhanceMultipleCommand* enhance_multiple_command_construct (GType object_type,
+ GeeIterable* iter);
GType duplicate_multiple_photos_command_get_type (void) G_GNUC_CONST;
DuplicateMultiplePhotosCommand* duplicate_multiple_photos_command_new (GeeIterable* iter);
-DuplicateMultiplePhotosCommand* duplicate_multiple_photos_command_construct (GType object_type, GeeIterable* iter);
+DuplicateMultiplePhotosCommand* duplicate_multiple_photos_command_construct (GType object_type,
+ GeeIterable* iter);
GType dateable_get_type (void) G_GNUC_CONST;
GType adjust_date_time_dialog_get_type (void) G_GNUC_CONST;
-AdjustDateTimeDialog* adjust_date_time_dialog_new (Dateable* source, gint photo_count, gboolean display_options, gboolean contains_video, gboolean only_video);
-AdjustDateTimeDialog* adjust_date_time_dialog_construct (GType object_type, Dateable* source, gint photo_count, gboolean display_options, gboolean contains_video, gboolean only_video);
-gboolean adjust_date_time_dialog_execute (AdjustDateTimeDialog* self, gint64* time_shift, gboolean* keep_relativity, gboolean* modify_originals);
+AdjustDateTimeDialog* adjust_date_time_dialog_new (Dateable* source,
+ gint photo_count,
+ gboolean display_options,
+ gboolean contains_video,
+ gboolean only_video);
+AdjustDateTimeDialog* adjust_date_time_dialog_construct (GType object_type,
+ Dateable* source,
+ gint photo_count,
+ gboolean display_options,
+ gboolean contains_video,
+ gboolean only_video);
+gboolean adjust_date_time_dialog_execute (AdjustDateTimeDialog* self,
+ gint64* time_shift,
+ gboolean* keep_relativity,
+ gboolean* modify_originals);
GType adjust_date_time_photos_command_get_type (void) G_GNUC_CONST;
-AdjustDateTimePhotosCommand* adjust_date_time_photos_command_new (GeeIterable* iter, gint64 time_shift, gboolean keep_relativity, gboolean modify_originals);
-AdjustDateTimePhotosCommand* adjust_date_time_photos_command_construct (GType object_type, GeeIterable* iter, gint64 time_shift, gboolean keep_relativity, gboolean modify_originals);
-void photo_open_with_external_editor (Photo* self, GError** error);
-void open_external_editor_error_dialog (GError* err, Photo* photo);
-void photo_open_with_raw_external_editor (Photo* self, GError** error);
-void app_window_error_message (const gchar* message, GtkWindow* parent);
+AdjustDateTimePhotosCommand* adjust_date_time_photos_command_new (GeeIterable* iter,
+ gint64 time_shift,
+ gboolean keep_relativity,
+ gboolean modify_originals);
+AdjustDateTimePhotosCommand* adjust_date_time_photos_command_construct (GType object_type,
+ GeeIterable* iter,
+ gint64 time_shift,
+ gboolean keep_relativity,
+ gboolean modify_originals);
+void photo_open_with_external_editor (Photo* self,
+ GError** error);
+void open_external_editor_error_dialog (GError* err,
+ Photo* photo);
+void photo_open_with_raw_external_editor (Photo* self,
+ GError** error);
+void app_window_error_message (const gchar* message,
+ GtkWindow* parent);
gchar* resources_launch_editor_failed (GError* err);
-void media_source_collection_filter_media (GeeCollection* media, GeeCollection* photos, GeeCollection* videos);
+void media_source_collection_filter_media (GeeCollection* media,
+ GeeCollection* photos,
+ GeeCollection* videos);
GType set_background_photo_dialog_get_type (void) G_GNUC_CONST;
SetBackgroundPhotoDialog* set_background_photo_dialog_new (void);
SetBackgroundPhotoDialog* set_background_photo_dialog_construct (GType object_type);
-gboolean set_background_photo_dialog_execute (SetBackgroundPhotoDialog* self, gboolean* desktop_background, gboolean* screensaver);
-void desktop_integration_set_background (Photo* photo, gboolean desktop, gboolean screensaver);
+gboolean set_background_photo_dialog_execute (SetBackgroundPhotoDialog* self,
+ gboolean* desktop_background,
+ gboolean* screensaver);
+void desktop_integration_set_background (Photo* photo,
+ gboolean desktop,
+ gboolean screensaver);
GType set_background_slideshow_dialog_get_type (void) G_GNUC_CONST;
SetBackgroundSlideshowDialog* set_background_slideshow_dialog_new (void);
SetBackgroundSlideshowDialog* set_background_slideshow_dialog_construct (GType object_type);
-gboolean set_background_slideshow_dialog_execute (SetBackgroundSlideshowDialog* self, gint* delay_value, gboolean* desktop_background, gboolean* screensaver);
-void desktop_integration_set_background_slideshow (GeeCollection* photos, gdouble duration, gdouble transition, gboolean desktop_background, gboolean screensaver);
+gboolean set_background_slideshow_dialog_execute (SetBackgroundSlideshowDialog* self,
+ gint* delay_value,
+ gboolean* desktop_background,
+ gboolean* screensaver);
+void desktop_integration_set_background_slideshow (GeeCollection* photos,
+ gdouble duration,
+ gdouble transition,
+ gboolean desktop_background,
+ gboolean screensaver);
gint data_collection_get_count (DataCollection* self);
-GeeList* view_collection_get_sources_of_type (ViewCollection* self, GType t);
-DataView* view_collection_get_view_for_source (ViewCollection* self, DataSource* source);
-void app_window_go_fullscreen (AppWindow* self, Page* page);
+GeeList* view_collection_get_sources_of_type (ViewCollection* self,
+ GType t);
+DataView* view_collection_get_view_for_source (ViewCollection* self,
+ DataSource* source);
+void app_window_go_fullscreen (AppWindow* self,
+ Page* page);
GType source_collection_get_type (void) G_GNUC_CONST;
GType database_source_collection_get_type (void) G_GNUC_CONST;
GType media_source_collection_get_type (void) G_GNUC_CONST;
GType library_photo_source_collection_get_type (void) G_GNUC_CONST;
-SlideshowPage* slideshow_page_new (SourceCollection* sources, ViewCollection* controller, Photo* start);
-SlideshowPage* slideshow_page_construct (GType object_type, SourceCollection* sources, ViewCollection* controller, Photo* start);
+SlideshowPage* slideshow_page_new (SourceCollection* sources,
+ ViewCollection* controller,
+ Photo* start);
+SlideshowPage* slideshow_page_construct (GType object_type,
+ SourceCollection* sources,
+ ViewCollection* controller,
+ Photo* start);
GType single_photo_page_get_type (void) G_GNUC_CONST;
GType slideshow_page_get_type (void) G_GNUC_CONST;
-static gboolean collection_page_real_on_ctrl_pressed (Page* base, GdkEventKey* event);
-gboolean page_on_ctrl_pressed (Page* self, GdkEventKey* event);
-static gboolean collection_page_real_on_ctrl_released (Page* base, GdkEventKey* event);
-gboolean page_on_ctrl_released (Page* self, GdkEventKey* event);
+static gboolean collection_page_real_on_ctrl_pressed (Page* base,
+ GdkEventKey* event);
+gboolean page_on_ctrl_pressed (Page* self,
+ GdkEventKey* event);
+static gboolean collection_page_real_on_ctrl_released (Page* base,
+ GdkEventKey* event);
+gboolean page_on_ctrl_released (Page* self,
+ GdkEventKey* event);
static SearchViewFilter* collection_page_real_get_search_view_filter (CheckerboardPage* base);
-enum {
- COLLECTION_PAGE_COLLECTION_SEARCH_VIEW_FILTER_DUMMY_PROPERTY
-};
static guint collection_page_collection_search_view_filter_real_get_criteria (SearchViewFilter* base);
GType search_filter_criteria_get_type (void) G_GNUC_CONST;
DefaultSearchViewFilter* default_search_view_filter_construct (GType object_type);
static void collection_page_finalize (GObject * obj);
-static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
-static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
+static void _vala_array_destroy (gpointer array,
+ gint array_length,
+ GDestroyNotify destroy_func);
+static void _vala_array_free (gpointer array,
+ gint array_length,
+ GDestroyNotify destroy_func);
static const GActionEntry COLLECTION_PAGE_entries[16] = {{"Print", _collection_page_on_print_gsimple_action_activate_callback}, {"Publish", _collection_page_on_publish_gsimple_action_activate_callback}, {"RotateClockwise", _collection_page_on_rotate_clockwise_gsimple_action_activate_callback}, {"RotateCounterclockwise", _collection_page_on_rotate_counterclockwise_gsimple_action_activate_callback}, {"FlipHorizontally", _collection_page_on_flip_horizontally_gsimple_action_activate_callback}, {"FlipVertically", _collection_page_on_flip_vertically_gsimple_action_activate_callback}, {"Enhance", _collection_page_on_enhance_gsimple_action_activate_callback}, {"CopyColorAdjustments", _collection_page_on_copy_adjustments_gsimple_action_activate_callback}, {"PasteColorAdjustments", _collection_page_on_paste_adjustments_gsimple_action_activate_callback}, {"Revert", _collection_page_on_revert_gsimple_action_activate_callback}, {"SetBackground", _collection_page_on_set_background_gsimple_action_activate_callback}, {"Duplicate", _collection_page_on_duplicate_photo_gsimple_action_activate_callback}, {"AdjustDateTime", _collection_page_on_adjust_date_time_gsimple_action_activate_callback}, {"ExternalEdit", _collection_page_on_external_edit_gsimple_action_activate_callback}, {"ExternalEditRAW", _collection_page_on_external_edit_raw_gsimple_action_activate_callback}, {"Slideshow", _collection_page_on_slideshow_gsimple_action_activate_callback}};
-static gpointer _g_object_ref0 (gpointer self) {
+static gpointer
+_g_object_ref0 (gpointer self)
+{
#line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return self ? g_object_ref (self) : NULL;
-#line 1390 "CollectionPage.c"
+#line 1626 "CollectionPage.c"
}
-CollectionViewManager* collection_view_manager_construct (GType object_type, CollectionPage* page) {
+CollectionViewManager*
+collection_view_manager_construct (GType object_type,
+ CollectionPage* page)
+{
CollectionViewManager* self = NULL;
CollectionPage* _tmp0_;
- CollectionPage* _tmp1_;
#line 10 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_val_if_fail (IS_COLLECTION_PAGE (page), NULL);
#line 10 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self = (CollectionViewManager*) view_manager_construct (object_type);
#line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page;
-#line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
+ _tmp0_ = _g_object_ref0 (page);
#line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (self->priv->page);
#line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self->priv->page = _tmp1_;
+ self->priv->page = _tmp0_;
#line 10 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return self;
-#line 1412 "CollectionPage.c"
+#line 1648 "CollectionPage.c"
}
-CollectionViewManager* collection_view_manager_new (CollectionPage* page) {
+CollectionViewManager*
+collection_view_manager_new (CollectionPage* page)
+{
#line 10 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return collection_view_manager_construct (TYPE_COLLECTION_VIEW_MANAGER, page);
-#line 1419 "CollectionPage.c"
+#line 1657 "CollectionPage.c"
}
-static DataView* collection_view_manager_real_create_view (ViewManager* base, DataSource* source) {
+static DataView*
+collection_view_manager_real_create_view (ViewManager* base,
+ DataSource* source)
+{
CollectionViewManager * self;
DataView* result = NULL;
CollectionPage* _tmp0_;
- DataSource* _tmp1_;
- DataView* _tmp2_;
+ DataView* _tmp1_;
#line 14 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager);
#line 14 "/home/jens/Source/shotwell/src/CollectionPage.vala"
@@ -1432,18 +1672,18 @@ static DataView* collection_view_manager_real_create_view (ViewManager* base, Da
#line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = self->priv->page;
#line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = source;
-#line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = media_page_create_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_PAGE, MediaPage), _tmp1_);
+ _tmp1_ = media_page_create_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_PAGE, MediaPage), source);
#line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = _tmp2_;
+ result = _tmp1_;
#line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 1443 "CollectionPage.c"
+#line 1681 "CollectionPage.c"
}
-static void collection_view_manager_class_init (CollectionViewManagerClass * klass) {
+static void
+collection_view_manager_class_init (CollectionViewManagerClass * klass)
+{
#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_view_manager_parent_class = g_type_class_peek_parent (klass);
#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala"
@@ -1452,18 +1692,22 @@ static void collection_view_manager_class_init (CollectionViewManagerClass * kla
g_type_class_add_private (klass, sizeof (CollectionViewManagerPrivate));
#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala"
((ViewManagerClass *) klass)->create_view = (DataView* (*) (ViewManager *, DataSource*)) collection_view_manager_real_create_view;
-#line 1456 "CollectionPage.c"
+#line 1696 "CollectionPage.c"
}
-static void collection_view_manager_instance_init (CollectionViewManager * self) {
+static void
+collection_view_manager_instance_init (CollectionViewManager * self)
+{
#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self->priv = COLLECTION_VIEW_MANAGER_GET_PRIVATE (self);
-#line 1463 "CollectionPage.c"
+#line 1705 "CollectionPage.c"
}
-static void collection_view_manager_finalize (ViewManager * obj) {
+static void
+collection_view_manager_finalize (ViewManager * obj)
+{
CollectionViewManager * self;
#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager);
@@ -1471,11 +1715,13 @@ static void collection_view_manager_finalize (ViewManager * obj) {
_g_object_unref0 (self->priv->page);
#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala"
VIEW_MANAGER_CLASS (collection_view_manager_parent_class)->finalize (obj);
-#line 1475 "CollectionPage.c"
+#line 1719 "CollectionPage.c"
}
-GType collection_view_manager_get_type (void) {
+GType
+collection_view_manager_get_type (void)
+{
static volatile gsize collection_view_manager_type_id__volatile = 0;
if (g_once_init_enter (&collection_view_manager_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (CollectionViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) collection_view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CollectionViewManager), 0, (GInstanceInitFunc) collection_view_manager_instance_init, NULL };
@@ -1487,153 +1733,224 @@ GType collection_view_manager_get_type (void) {
}
-static void _collection_page_on_print_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_collection_page_on_print_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_print ((CollectionPage*) self);
-#line 1494 "CollectionPage.c"
+#line 1744 "CollectionPage.c"
}
-static void _collection_page_on_publish_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_collection_page_on_publish_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_publish ((CollectionPage*) self);
-#line 1501 "CollectionPage.c"
+#line 1755 "CollectionPage.c"
}
-static void _collection_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_collection_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_rotate_clockwise ((CollectionPage*) self);
-#line 1508 "CollectionPage.c"
+#line 1766 "CollectionPage.c"
}
-static void _collection_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_collection_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_rotate_counterclockwise ((CollectionPage*) self);
-#line 1515 "CollectionPage.c"
+#line 1777 "CollectionPage.c"
}
-static void _collection_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_collection_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_flip_horizontally ((CollectionPage*) self);
-#line 1522 "CollectionPage.c"
+#line 1788 "CollectionPage.c"
}
-static void _collection_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_collection_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_flip_vertically ((CollectionPage*) self);
-#line 1529 "CollectionPage.c"
+#line 1799 "CollectionPage.c"
}
-static void _collection_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_collection_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_enhance ((CollectionPage*) self);
-#line 1536 "CollectionPage.c"
+#line 1810 "CollectionPage.c"
}
-static void _collection_page_on_copy_adjustments_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_collection_page_on_copy_adjustments_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_copy_adjustments ((CollectionPage*) self);
-#line 1543 "CollectionPage.c"
+#line 1821 "CollectionPage.c"
}
-static void _collection_page_on_paste_adjustments_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_collection_page_on_paste_adjustments_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_paste_adjustments ((CollectionPage*) self);
-#line 1550 "CollectionPage.c"
+#line 1832 "CollectionPage.c"
}
-static void _collection_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_collection_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_revert ((CollectionPage*) self);
-#line 1557 "CollectionPage.c"
+#line 1843 "CollectionPage.c"
}
-static void _collection_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_collection_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_set_background ((CollectionPage*) self);
-#line 1564 "CollectionPage.c"
+#line 1854 "CollectionPage.c"
}
-static void _collection_page_on_duplicate_photo_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_collection_page_on_duplicate_photo_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_duplicate_photo ((CollectionPage*) self);
-#line 1571 "CollectionPage.c"
+#line 1865 "CollectionPage.c"
}
-static void _collection_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_collection_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_adjust_date_time ((CollectionPage*) self);
-#line 1578 "CollectionPage.c"
+#line 1876 "CollectionPage.c"
}
-static void _collection_page_on_external_edit_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_collection_page_on_external_edit_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_external_edit ((CollectionPage*) self);
-#line 1585 "CollectionPage.c"
+#line 1887 "CollectionPage.c"
}
-static void _collection_page_on_external_edit_raw_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_collection_page_on_external_edit_raw_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_external_edit_raw ((CollectionPage*) self);
-#line 1592 "CollectionPage.c"
+#line 1898 "CollectionPage.c"
}
-static void _collection_page_on_slideshow_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
+static void
+_collection_page_on_slideshow_gsimple_action_activate_callback (GSimpleAction* action,
+ GVariant* parameter,
+ gpointer self)
+{
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_slideshow ((CollectionPage*) self);
-#line 1599 "CollectionPage.c"
+#line 1909 "CollectionPage.c"
}
-static void _collection_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) {
+static void
+_collection_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender,
+ GeeMap* items,
+ gpointer self)
+{
#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_photos_altered ((CollectionPage*) self, items);
-#line 1606 "CollectionPage.c"
+#line 1920 "CollectionPage.c"
}
-static void _collection_page_on_external_app_changed_configuration_facade_external_app_changed (ConfigurationFacade* _sender, gpointer self) {
+static void
+_collection_page_on_external_app_changed_configuration_facade_external_app_changed (ConfigurationFacade* _sender,
+ gpointer self)
+{
#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_external_app_changed ((CollectionPage*) self);
-#line 1613 "CollectionPage.c"
+#line 1930 "CollectionPage.c"
}
-CollectionPage* collection_page_construct (GType object_type, const gchar* page_name) {
+CollectionPage*
+collection_page_construct (GType object_type,
+ const gchar* page_name)
+{
CollectionPage * self = NULL;
- const gchar* _tmp0_;
+ ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
- ViewCollection* _tmp2_;
+ ConfigFacade* _tmp2_;
ConfigFacade* _tmp3_;
- ConfigFacade* _tmp4_;
#line 32 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_val_if_fail (page_name != NULL, NULL);
#line 33 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = page_name;
-#line 33 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self = (CollectionPage*) media_page_construct (object_type, _tmp0_);
+ self = (CollectionPage*) media_page_construct (object_type, page_name);
#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+ _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = _tmp1_;
+ _tmp1_ = _tmp0_;
#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _collection_page_on_photos_altered_data_collection_items_altered, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _collection_page_on_photos_altered_data_collection_items_altered, self, 0);
#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp2_);
+ _data_collection_unref0 (_tmp1_);
#line 37 "/home/jens/Source/shotwell/src/CollectionPage.vala"
checkerboard_page_init_item_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "CollectionContextMenu");
#line 38 "/home/jens/Source/shotwell/src/CollectionPage.vala"
@@ -1641,20 +1958,22 @@ CollectionPage* collection_page_construct (GType object_type, const gchar* page_
#line 40 "/home/jens/Source/shotwell/src/CollectionPage.vala"
gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = config_facade_get_instance ();
+ _tmp2_ = config_facade_get_instance ();
#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp3_;
+ _tmp3_ = _tmp2_;
#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "external-app-changed", (GCallback) _collection_page_on_external_app_changed_configuration_facade_external_app_changed, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "external-app-changed", (GCallback) _collection_page_on_external_app_changed_configuration_facade_external_app_changed, self, 0);
#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp4_);
+ _g_object_unref0 (_tmp3_);
#line 32 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return self;
-#line 1654 "CollectionPage.c"
+#line 1971 "CollectionPage.c"
}
-static GtkToolbar* collection_page_real_get_toolbar (Page* base) {
+static GtkToolbar*
+collection_page_real_get_toolbar (Page* base)
+{
CollectionPage * self;
GtkToolbar* result = NULL;
GtkToolbar* _tmp0_;
@@ -1666,7 +1985,7 @@ static GtkToolbar* collection_page_real_get_toolbar (Page* base) {
_tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar;
#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (_tmp0_ == NULL) {
-#line 1670 "CollectionPage.c"
+#line 1989 "CollectionPage.c"
GtkToolbar* _tmp1_;
GtkToolbar* _tmp2_;
GtkSeparatorToolItem* separator = NULL;
@@ -1784,7 +2103,7 @@ static GtkToolbar* collection_page_real_get_toolbar (Page* base) {
#line 68 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp24_ = G_OBJECT_GET_CLASS (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, G_TYPE_OBJECT, GObject));
#line 68 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp25_ = gtk_binding_set_by_class (_tmp24_);
+ _tmp25_ = gtk_binding_set_by_class ((gpointer) _tmp24_);
#line 68 "/home/jens/Source/shotwell/src/CollectionPage.vala"
binding_set = _tmp25_;
#line 69 "/home/jens/Source/shotwell/src/CollectionPage.vala"
@@ -1803,7 +2122,7 @@ static GtkToolbar* collection_page_real_get_toolbar (Page* base) {
_g_object_unref0 (drawn_separator);
#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (separator);
-#line 1807 "CollectionPage.c"
+#line 2126 "CollectionPage.c"
}
#line 74 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp28_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar;
@@ -1813,11 +2132,13 @@ static GtkToolbar* collection_page_real_get_toolbar (Page* base) {
result = _tmp29_;
#line 74 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 1817 "CollectionPage.c"
+#line 2136 "CollectionPage.c"
}
-static InjectionGroup* collection_page_create_file_menu_injectables (void) {
+static InjectionGroup*
+collection_page_create_file_menu_injectables (void)
+{
InjectionGroup* result = NULL;
InjectionGroup* group = NULL;
InjectionGroup* _tmp0_;
@@ -1839,11 +2160,13 @@ static InjectionGroup* collection_page_create_file_menu_injectables (void) {
result = group;
#line 86 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 1843 "CollectionPage.c"
+#line 2164 "CollectionPage.c"
}
-static InjectionGroup* collection_page_create_edit_menu_injectables (void) {
+static InjectionGroup*
+collection_page_create_edit_menu_injectables (void)
+{
InjectionGroup* result = NULL;
InjectionGroup* group = NULL;
InjectionGroup* _tmp0_;
@@ -1857,11 +2180,13 @@ static InjectionGroup* collection_page_create_edit_menu_injectables (void) {
result = group;
#line 94 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 1861 "CollectionPage.c"
+#line 2184 "CollectionPage.c"
}
-static InjectionGroup* collection_page_create_view_menu_fullscreen_injectables (void) {
+static InjectionGroup*
+collection_page_create_view_menu_fullscreen_injectables (void)
+{
InjectionGroup* result = NULL;
InjectionGroup* group = NULL;
InjectionGroup* _tmp0_;
@@ -1879,11 +2204,13 @@ static InjectionGroup* collection_page_create_view_menu_fullscreen_injectables (
result = group;
#line 104 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 1883 "CollectionPage.c"
+#line 2208 "CollectionPage.c"
}
-static InjectionGroup* collection_page_create_photos_menu_edits_injectables (void) {
+static InjectionGroup*
+collection_page_create_photos_menu_edits_injectables (void)
+{
InjectionGroup* result = NULL;
InjectionGroup* group = NULL;
InjectionGroup* _tmp0_;
@@ -1915,11 +2242,13 @@ static InjectionGroup* collection_page_create_photos_menu_edits_injectables (voi
result = group;
#line 129 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 1919 "CollectionPage.c"
+#line 2246 "CollectionPage.c"
}
-static InjectionGroup* collection_page_create_photos_menu_date_injectables (void) {
+static InjectionGroup*
+collection_page_create_photos_menu_date_injectables (void)
+{
InjectionGroup* result = NULL;
InjectionGroup* group = NULL;
InjectionGroup* _tmp0_;
@@ -1928,16 +2257,18 @@ static InjectionGroup* collection_page_create_photos_menu_date_injectables (void
#line 133 "/home/jens/Source/shotwell/src/CollectionPage.vala"
group = _tmp0_;
#line 135 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- injection_group_add_menu_item (group, _ ("Adjust Date and Time…"), "AdjustDateTime", NULL);
+ injection_group_add_menu_item (group, _ ("Adjust Date and Time…"), "AdjustDateTime", "F4");
#line 137 "/home/jens/Source/shotwell/src/CollectionPage.vala"
result = group;
#line 137 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 1937 "CollectionPage.c"
+#line 2266 "CollectionPage.c"
}
-static InjectionGroup* collection_page_create_photos_menu_externals_injectables (void) {
+static InjectionGroup*
+collection_page_create_photos_menu_externals_injectables (void)
+{
InjectionGroup* result = NULL;
InjectionGroup* group = NULL;
InjectionGroup* _tmp0_;
@@ -1955,62 +2286,56 @@ static InjectionGroup* collection_page_create_photos_menu_externals_injectables
result = group;
#line 151 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 1959 "CollectionPage.c"
+#line 2290 "CollectionPage.c"
}
-static void collection_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames) {
+static void
+collection_page_real_init_collect_ui_filenames (Page* base,
+ GeeList* ui_filenames)
+{
CollectionPage * self;
- GeeList* _tmp0_;
- GeeList* _tmp1_;
#line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
#line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (GEE_IS_LIST (ui_filenames));
#line 155 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = ui_filenames;
-#line 155 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- PAGE_CLASS (collection_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp0_);
+ PAGE_CLASS (collection_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), ui_filenames);
#line 157 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = ui_filenames;
-#line 157 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), "collection.ui");
-#line 1979 "CollectionPage.c"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "collection.ui");
+#line 2307 "CollectionPage.c"
}
-static void collection_page_real_add_actions (Page* base, GActionMap* map) {
+static void
+collection_page_real_add_actions (Page* base,
+ GActionMap* map)
+{
CollectionPage * self;
- GActionMap* _tmp0_;
- GActionMap* _tmp1_;
#line 179 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
#line 179 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (G_IS_ACTION_MAP (map));
#line 180 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = map;
-#line 180 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- PAGE_CLASS (collection_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp0_);
-#line 182 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = map;
+ PAGE_CLASS (collection_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), map);
#line 182 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_action_map_add_action_entries (_tmp1_, COLLECTION_PAGE_entries, G_N_ELEMENTS (COLLECTION_PAGE_entries), self);
-#line 1999 "CollectionPage.c"
+ g_action_map_add_action_entries (map, COLLECTION_PAGE_entries, G_N_ELEMENTS (COLLECTION_PAGE_entries), self);
+#line 2324 "CollectionPage.c"
}
-static void collection_page_real_remove_actions (Page* base, GActionMap* map) {
+static void
+collection_page_real_remove_actions (Page* base,
+ GActionMap* map)
+{
CollectionPage * self;
- GActionMap* _tmp0_;
#line 185 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
#line 185 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (G_IS_ACTION_MAP (map));
#line 186 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = map;
-#line 186 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- PAGE_CLASS (collection_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp0_);
-#line 2014 "CollectionPage.c"
+ PAGE_CLASS (collection_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), map);
+#line 2339 "CollectionPage.c"
{
GActionEntry* entry_collection = NULL;
gint entry_collection_length1 = 0;
@@ -2022,133 +2347,163 @@ static void collection_page_real_remove_actions (Page* base, GActionMap* map) {
entry_collection_length1 = G_N_ELEMENTS (COLLECTION_PAGE_entries);
#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala"
for (entry_it = 0; entry_it < G_N_ELEMENTS (COLLECTION_PAGE_entries); entry_it = entry_it + 1) {
-#line 2026 "CollectionPage.c"
+#line 2351 "CollectionPage.c"
GActionEntry entry = {0};
#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala"
entry = entry_collection[entry_it];
-#line 2030 "CollectionPage.c"
+#line 2355 "CollectionPage.c"
{
- GActionMap* _tmp1_;
- GActionEntry _tmp2_;
- const gchar* _tmp3_;
-#line 188 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = map;
+ GActionEntry _tmp0_;
+ const gchar* _tmp1_;
#line 188 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = entry;
+ _tmp0_ = entry;
#line 188 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_.name;
+ _tmp1_ = _tmp0_.name;
#line 188 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_action_map_remove_action (_tmp1_, _tmp3_);
-#line 2043 "CollectionPage.c"
+ g_action_map_remove_action (map, _tmp1_);
+#line 2365 "CollectionPage.c"
}
}
}
}
-static void _vala_array_add76 (InjectionGroup** * array, int* length, int* size, InjectionGroup* value) {
+static void
+_vala_array_add80 (InjectionGroup** * array,
+ int* length,
+ int* size,
+ InjectionGroup* value)
+{
#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if ((*length) == (*size)) {
#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
*array = g_renew (InjectionGroup*, *array, (*size) + 1);
-#line 2057 "CollectionPage.c"
+#line 2384 "CollectionPage.c"
}
#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
(*array)[(*length)++] = value;
#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
(*array)[*length] = NULL;
-#line 2063 "CollectionPage.c"
+#line 2390 "CollectionPage.c"
}
-static void _vala_array_add77 (InjectionGroup** * array, int* length, int* size, InjectionGroup* value) {
+static void
+_vala_array_add81 (InjectionGroup** * array,
+ int* length,
+ int* size,
+ InjectionGroup* value)
+{
#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if ((*length) == (*size)) {
#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
*array = g_renew (InjectionGroup*, *array, (*size) + 1);
-#line 2074 "CollectionPage.c"
+#line 2406 "CollectionPage.c"
}
#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
(*array)[(*length)++] = value;
#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
(*array)[*length] = NULL;
-#line 2080 "CollectionPage.c"
+#line 2412 "CollectionPage.c"
}
-static void _vala_array_add78 (InjectionGroup** * array, int* length, int* size, InjectionGroup* value) {
+static void
+_vala_array_add82 (InjectionGroup** * array,
+ int* length,
+ int* size,
+ InjectionGroup* value)
+{
#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if ((*length) == (*size)) {
#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
*array = g_renew (InjectionGroup*, *array, (*size) + 1);
-#line 2091 "CollectionPage.c"
+#line 2428 "CollectionPage.c"
}
#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
(*array)[(*length)++] = value;
#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
(*array)[*length] = NULL;
-#line 2097 "CollectionPage.c"
+#line 2434 "CollectionPage.c"
}
-static void _vala_array_add79 (InjectionGroup** * array, int* length, int* size, InjectionGroup* value) {
+static void
+_vala_array_add83 (InjectionGroup** * array,
+ int* length,
+ int* size,
+ InjectionGroup* value)
+{
#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if ((*length) == (*size)) {
#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
*array = g_renew (InjectionGroup*, *array, (*size) + 1);
-#line 2108 "CollectionPage.c"
+#line 2450 "CollectionPage.c"
}
#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
(*array)[(*length)++] = value;
#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
(*array)[*length] = NULL;
-#line 2114 "CollectionPage.c"
+#line 2456 "CollectionPage.c"
}
-static void _vala_array_add80 (InjectionGroup** * array, int* length, int* size, InjectionGroup* value) {
+static void
+_vala_array_add84 (InjectionGroup** * array,
+ int* length,
+ int* size,
+ InjectionGroup* value)
+{
#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if ((*length) == (*size)) {
#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
*array = g_renew (InjectionGroup*, *array, (*size) + 1);
-#line 2125 "CollectionPage.c"
+#line 2472 "CollectionPage.c"
}
#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
(*array)[(*length)++] = value;
#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
(*array)[*length] = NULL;
-#line 2131 "CollectionPage.c"
+#line 2478 "CollectionPage.c"
}
-static void _vala_array_add81 (InjectionGroup** * array, int* length, int* size, InjectionGroup* value) {
+static void
+_vala_array_add85 (InjectionGroup** * array,
+ int* length,
+ int* size,
+ InjectionGroup* value)
+{
#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if ((*length) == (*size)) {
#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
*array = g_renew (InjectionGroup*, *array, (*size) + 1);
-#line 2142 "CollectionPage.c"
+#line 2494 "CollectionPage.c"
}
#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
(*array)[(*length)++] = value;
#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
(*array)[*length] = NULL;
-#line 2148 "CollectionPage.c"
+#line 2500 "CollectionPage.c"
}
-static InjectionGroup** collection_page_real_init_collect_injection_groups (Page* base, int* result_length1) {
+static InjectionGroup**
+collection_page_real_init_collect_injection_groups (Page* base,
+ int* result_length1)
+{
CollectionPage * self;
InjectionGroup** result = NULL;
InjectionGroup** groups = NULL;
@@ -2193,7 +2548,7 @@ static InjectionGroup** collection_page_real_init_collect_injection_groups (Page
#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp3_ = collection_page_create_file_menu_injectables ();
#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _vala_array_add76 (&groups, &groups_length1, &_groups_size_, _tmp3_);
+ _vala_array_add80 (&groups, &groups_length1, &_groups_size_, _tmp3_);
#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp4_ = groups;
#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
@@ -2201,7 +2556,7 @@ static InjectionGroup** collection_page_real_init_collect_injection_groups (Page
#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp5_ = collection_page_create_edit_menu_injectables ();
#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _vala_array_add77 (&groups, &groups_length1, &_groups_size_, _tmp5_);
+ _vala_array_add81 (&groups, &groups_length1, &_groups_size_, _tmp5_);
#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp6_ = groups;
#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
@@ -2209,7 +2564,7 @@ static InjectionGroup** collection_page_real_init_collect_injection_groups (Page
#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp7_ = collection_page_create_view_menu_fullscreen_injectables ();
#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _vala_array_add78 (&groups, &groups_length1, &_groups_size_, _tmp7_);
+ _vala_array_add82 (&groups, &groups_length1, &_groups_size_, _tmp7_);
#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp8_ = groups;
#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
@@ -2217,7 +2572,7 @@ static InjectionGroup** collection_page_real_init_collect_injection_groups (Page
#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp9_ = collection_page_create_photos_menu_edits_injectables ();
#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _vala_array_add79 (&groups, &groups_length1, &_groups_size_, _tmp9_);
+ _vala_array_add83 (&groups, &groups_length1, &_groups_size_, _tmp9_);
#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp10_ = groups;
#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
@@ -2225,7 +2580,7 @@ static InjectionGroup** collection_page_real_init_collect_injection_groups (Page
#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp11_ = collection_page_create_photos_menu_date_injectables ();
#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _vala_array_add80 (&groups, &groups_length1, &_groups_size_, _tmp11_);
+ _vala_array_add84 (&groups, &groups_length1, &_groups_size_, _tmp11_);
#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp12_ = groups;
#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
@@ -2233,7 +2588,7 @@ static InjectionGroup** collection_page_real_init_collect_injection_groups (Page
#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp13_ = collection_page_create_photos_menu_externals_injectables ();
#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _vala_array_add81 (&groups, &groups_length1, &_groups_size_, _tmp13_);
+ _vala_array_add85 (&groups, &groups_length1, &_groups_size_, _tmp13_);
#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp14_ = groups;
#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala"
@@ -2242,24 +2597,25 @@ static InjectionGroup** collection_page_real_init_collect_injection_groups (Page
if (result_length1) {
#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala"
*result_length1 = _tmp14__length1;
-#line 2246 "CollectionPage.c"
+#line 2601 "CollectionPage.c"
}
#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala"
result = _tmp14_;
#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 2252 "CollectionPage.c"
+#line 2607 "CollectionPage.c"
}
-static gboolean collection_page_selection_has_video (CollectionPage* self) {
+static gboolean
+collection_page_selection_has_video (CollectionPage* self)
+{
gboolean result = FALSE;
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
GeeList* _tmp2_;
GeeCollection* _tmp3_;
gboolean _tmp4_;
- gboolean _tmp5_;
#line 205 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE);
#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
@@ -2273,27 +2629,26 @@ static gboolean collection_page_selection_has_video (CollectionPage* self) {
#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp4_ = media_source_collection_has_video (_tmp3_);
#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _tmp4_;
-#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (_tmp3_);
#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp1_);
#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = _tmp5_;
+ result = _tmp4_;
#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 2286 "CollectionPage.c"
+#line 2640 "CollectionPage.c"
}
-static gboolean collection_page_page_has_photo (CollectionPage* self) {
+static gboolean
+collection_page_page_has_photo (CollectionPage* self)
+{
gboolean result = FALSE;
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
GeeCollection* _tmp2_;
GeeCollection* _tmp3_;
gboolean _tmp4_;
- gboolean _tmp5_;
#line 209 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE);
#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
@@ -2307,27 +2662,26 @@ static gboolean collection_page_page_has_photo (CollectionPage* self) {
#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp4_ = media_source_collection_has_photo (_tmp3_);
#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _tmp4_;
-#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (_tmp3_);
#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp1_);
#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = _tmp5_;
+ result = _tmp4_;
#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 2320 "CollectionPage.c"
+#line 2673 "CollectionPage.c"
}
-static gboolean collection_page_selection_has_photo (CollectionPage* self) {
+static gboolean
+collection_page_selection_has_photo (CollectionPage* self)
+{
gboolean result = FALSE;
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
GeeList* _tmp2_;
GeeCollection* _tmp3_;
gboolean _tmp4_;
- gboolean _tmp5_;
#line 213 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE);
#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
@@ -2341,1238 +2695,1177 @@ static gboolean collection_page_selection_has_photo (CollectionPage* self) {
#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp4_ = media_source_collection_has_photo (_tmp3_);
#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _tmp4_;
-#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (_tmp3_);
#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp1_);
#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = _tmp5_;
+ result = _tmp4_;
#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 2354 "CollectionPage.c"
+#line 2706 "CollectionPage.c"
}
-static void collection_page_real_init_actions (Page* base, gint selected_count, gint count) {
+static void
+collection_page_real_init_actions (Page* base,
+ gint selected_count,
+ gint count)
+{
CollectionPage * self;
- gint _tmp0_;
- gint _tmp1_;
#line 217 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
#line 218 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = selected_count;
-#line 218 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = count;
-#line 218 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- PAGE_CLASS (collection_page_parent_class)->init_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp0_, _tmp1_);
+ PAGE_CLASS (collection_page_parent_class)->init_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), selected_count, count);
#line 220 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_short_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", RESOURCES_ROTATE_CW_LABEL);
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", TRUE);
#line 221 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_short_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", RESOURCES_ROTATE_CCW_LABEL);
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", TRUE);
#line 222 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_short_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", RESOURCES_PUBLISH_LABEL);
-#line 224 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", TRUE);
-#line 225 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", TRUE);
-#line 226 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", TRUE);
-#line 227 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", TRUE);
-#line 2384 "CollectionPage.c"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", TRUE);
+#line 223 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", TRUE);
+#line 2728 "CollectionPage.c"
}
-static void collection_page_real_update_actions (Page* base, gint selected_count, gint count) {
+static void
+collection_page_real_update_actions (Page* base,
+ gint selected_count,
+ gint count)
+{
CollectionPage * self;
AppWindow* _tmp0_;
AppWindow* _tmp1_;
Page* _tmp2_;
Page* _tmp3_;
gboolean _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
gboolean one_selected = FALSE;
- gint _tmp7_;
gboolean has_selected = FALSE;
- gint _tmp8_;
gboolean primary_is_video = FALSE;
- gboolean _tmp9_;
+ gboolean _tmp5_;
gboolean selection_has_videos = FALSE;
- gboolean _tmp17_;
gboolean page_has_photos = FALSE;
+ gboolean _tmp13_ = FALSE;
+ gboolean _tmp14_;
+ gboolean _tmp16_ = FALSE;
+ gboolean _tmp17_ = FALSE;
gboolean _tmp18_;
- gboolean _tmp19_ = FALSE;
- gboolean _tmp20_;
- gboolean _tmp22_;
- gboolean _tmp23_ = FALSE;
- gboolean _tmp24_;
- gboolean _tmp30_ = FALSE;
- gboolean _tmp31_ = FALSE;
- gboolean _tmp32_ = FALSE;
- gboolean _tmp33_;
- gboolean _tmp47_ = FALSE;
- gboolean _tmp48_;
- gboolean _tmp50_ = FALSE;
- gboolean _tmp51_;
- gboolean _tmp53_ = FALSE;
+ gboolean _tmp24_ = FALSE;
+ gboolean _tmp25_ = FALSE;
+ gboolean _tmp26_ = FALSE;
+ gboolean _tmp27_;
+ gboolean _tmp39_ = FALSE;
+ gboolean _tmp40_;
+ gboolean _tmp41_ = FALSE;
+ gboolean _tmp42_;
+ gboolean _tmp44_ = FALSE;
+ gboolean _tmp45_ = FALSE;
+ gboolean _tmp46_;
gboolean _tmp54_ = FALSE;
- gboolean _tmp55_;
+ gboolean _tmp55_ = FALSE;
+ gboolean _tmp56_;
+ gboolean _tmp58_ = FALSE;
+ gboolean _tmp59_;
+ gboolean _tmp61_ = FALSE;
+ gboolean _tmp62_;
gboolean _tmp64_ = FALSE;
- gboolean _tmp65_ = FALSE;
- gboolean _tmp66_;
- gboolean _tmp69_ = FALSE;
+ gboolean _tmp65_;
+ gboolean _tmp67_ = FALSE;
+ gboolean _tmp68_;
gboolean _tmp70_;
- gboolean _tmp72_ = FALSE;
+ gboolean _tmp71_;
+ gboolean _tmp72_;
gboolean _tmp73_;
- gboolean _tmp75_ = FALSE;
- gboolean _tmp76_;
- gboolean _tmp78_ = FALSE;
- gboolean _tmp79_;
- gboolean _tmp81_;
+ gboolean _tmp74_ = FALSE;
+ gboolean _tmp75_;
+ gboolean _tmp77_ = FALSE;
+ gboolean _tmp78_;
+ gboolean _tmp80_;
+ gboolean _tmp81_ = FALSE;
gboolean _tmp82_;
- gboolean _tmp83_;
gboolean _tmp84_;
- gboolean _tmp85_ = FALSE;
- gboolean _tmp86_;
- gboolean _tmp88_ = FALSE;
- gboolean _tmp89_;
- gboolean _tmp91_;
- gboolean _tmp92_ = FALSE;
- gboolean _tmp93_;
- gboolean _tmp95_;
-#line 230 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 226 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = app_window_get_instance ();
-#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _tmp0_;
-#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp2_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow));
-#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp3_ = _tmp2_;
-#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp4_ = _tmp3_ != G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page);
-#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (_tmp3_);
-#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (_tmp1_);
-#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (_tmp4_) {
-#line 233 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 229 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 2466 "CollectionPage.c"
+#line 2808 "CollectionPage.c"
}
-#line 236 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = selected_count;
-#line 236 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = count;
-#line 236 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- PAGE_CLASS (collection_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp5_, _tmp6_);
+#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ PAGE_CLASS (collection_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), selected_count, count);
+#line 234 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ one_selected = selected_count == 1;
+#line 235 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ has_selected = selected_count > 0;
+#line 237 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ primary_is_video = FALSE;
#line 238 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = selected_count;
+ _tmp5_ = has_selected;
#line 238 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- one_selected = _tmp7_ == 1;
+ if (_tmp5_) {
+#line 2822 "CollectionPage.c"
+ ViewCollection* _tmp6_;
+ ViewCollection* _tmp7_;
+ DataView* _tmp8_;
+ DataView* _tmp9_;
+ DataSource* _tmp10_;
+ DataSource* _tmp11_;
+ gboolean _tmp12_;
#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = selected_count;
+ _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp7_ = _tmp6_;
+#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp8_ = view_collection_get_selected_at (_tmp7_, 0);
+#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp9_ = _tmp8_;
+#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp10_ = data_view_get_source (_tmp9_);
#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- has_selected = _tmp8_ > 0;
-#line 241 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- primary_is_video = FALSE;
-#line 242 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = has_selected;
-#line 242 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp9_) {
-#line 2488 "CollectionPage.c"
- ViewCollection* _tmp10_;
- ViewCollection* _tmp11_;
- DataView* _tmp12_;
- DataView* _tmp13_;
- DataSource* _tmp14_;
- DataSource* _tmp15_;
- gboolean _tmp16_;
-#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp11_ = _tmp10_;
-#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = view_collection_get_selected_at (_tmp11_, 0);
-#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = _tmp12_;
-#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = data_view_get_source (_tmp13_);
-#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = _tmp14_;
-#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, TYPE_VIDEO);
-#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp15_);
-#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp13_);
-#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp11_);
-#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp16_) {
-#line 244 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp12_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_VIDEO);
+#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp11_);
+#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp9_);
+#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp7_);
+#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp12_) {
+#line 240 "/home/jens/Source/shotwell/src/CollectionPage.vala"
primary_is_video = TRUE;
-#line 2520 "CollectionPage.c"
+#line 2854 "CollectionPage.c"
}
}
-#line 246 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = collection_page_selection_has_video (self);
-#line 246 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- selection_has_videos = _tmp17_;
+#line 242 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ selection_has_videos = collection_page_selection_has_video (self);
+#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_has_photos = collection_page_page_has_photo (self);
+#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp14_ = has_selected;
#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = collection_page_page_has_photo (self);
+ if (_tmp14_) {
+#line 2865 "CollectionPage.c"
+ gboolean _tmp15_;
+#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp15_ = selection_has_videos;
+#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp13_ = !_tmp15_;
+#line 2871 "CollectionPage.c"
+ } else {
#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_has_photos = _tmp18_;
+ _tmp13_ = FALSE;
+#line 2875 "CollectionPage.c"
+ }
+#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Duplicate", _tmp13_);
+#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp18_ = primary_is_video;
+#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (!_tmp18_) {
+#line 2883 "CollectionPage.c"
+ gboolean _tmp19_;
+#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp19_ = one_selected;
+#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp17_ = _tmp19_;
+#line 2889 "CollectionPage.c"
+ } else {
+#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp17_ = FALSE;
+#line 2893 "CollectionPage.c"
+ }
+#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp17_) {
+#line 2897 "CollectionPage.c"
+ ConfigFacade* _tmp20_;
+ ConfigFacade* _tmp21_;
+ gchar* _tmp22_;
+ gchar* _tmp23_;
+#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp20_ = config_facade_get_instance ();
+#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp21_ = _tmp20_;
+#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp22_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
+#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp23_ = _tmp22_;
+#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp16_ = !is_string_empty (_tmp23_);
+#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_free0 (_tmp23_);
+#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp21_);
+#line 2916 "CollectionPage.c"
+ } else {
+#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp16_ = FALSE;
+#line 2920 "CollectionPage.c"
+ }
+#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", _tmp16_);
#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp20_ = has_selected;
+ _tmp27_ = one_selected;
#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp20_) {
-#line 2535 "CollectionPage.c"
- gboolean _tmp21_;
+ if (_tmp27_) {
+#line 2928 "CollectionPage.c"
+ gboolean _tmp28_;
#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp21_ = selection_has_videos;
+ _tmp28_ = primary_is_video;
#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = !_tmp21_;
-#line 2541 "CollectionPage.c"
+ _tmp26_ = !_tmp28_;
+#line 2934 "CollectionPage.c"
} else {
#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = FALSE;
-#line 2545 "CollectionPage.c"
+ _tmp26_ = FALSE;
+#line 2938 "CollectionPage.c"
}
#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Duplicate", _tmp19_);
+ if (_tmp26_) {
+#line 2942 "CollectionPage.c"
+ ViewCollection* _tmp29_;
+ ViewCollection* _tmp30_;
+ DataView* _tmp31_;
+ DataView* _tmp32_;
+ DataSource* _tmp33_;
+ Photo* _tmp34_;
#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp22_ = primary_is_video;
+ _tmp29_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_visible (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", !_tmp22_);
-#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp24_ = one_selected;
-#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp24_) {
-#line 2557 "CollectionPage.c"
- ConfigFacade* _tmp25_;
- ConfigFacade* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
- gboolean _tmp29_;
-#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp25_ = config_facade_get_instance ();
+ _tmp30_ = _tmp29_;
+#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp31_ = view_collection_get_selected_at (_tmp30_, 0);
+#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp32_ = _tmp31_;
+#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp33_ = data_view_get_source (_tmp32_);
+#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp34_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_PHOTO, Photo);
+#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp25_ = photo_get_master_file_format (_tmp34_) == PHOTO_FILE_FORMAT_RAW;
+#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp34_);
+#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp32_);
+#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp30_);
+#line 2969 "CollectionPage.c"
+ } else {
+#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp25_ = FALSE;
+#line 2973 "CollectionPage.c"
+ }
+#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp25_) {
+#line 2977 "CollectionPage.c"
+ ConfigFacade* _tmp35_;
+ ConfigFacade* _tmp36_;
+ gchar* _tmp37_;
+ gchar* _tmp38_;
#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp26_ = _tmp25_;
+ _tmp35_ = config_facade_get_instance ();
#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp27_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
+ _tmp36_ = _tmp35_;
#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp28_ = _tmp27_;
+ _tmp37_ = configuration_facade_get_external_raw_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp29_ = is_string_empty (_tmp28_);
+ _tmp38_ = _tmp37_;
#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp23_ = !_tmp29_;
+ _tmp24_ = !is_string_empty (_tmp38_);
#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (_tmp28_);
+ _g_free0 (_tmp38_);
#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp26_);
-#line 2579 "CollectionPage.c"
+ _g_object_unref0 (_tmp36_);
+#line 2996 "CollectionPage.c"
} else {
-#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp23_ = FALSE;
-#line 2583 "CollectionPage.c"
+#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp24_ = FALSE;
+#line 3000 "CollectionPage.c"
}
-#line 253 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", _tmp23_);
+#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEditRAW", _tmp24_);
+#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp40_ = selection_has_videos;
+#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (!_tmp40_) {
+#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp39_ = collection_page_can_revert_selected (self);
+#line 3010 "CollectionPage.c"
+ } else {
+#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp39_ = FALSE;
+#line 3014 "CollectionPage.c"
+ }
+#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp39_);
#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp33_ = one_selected;
+ _tmp42_ = selection_has_videos;
#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp33_) {
-#line 2591 "CollectionPage.c"
- gboolean _tmp34_;
+ if (!_tmp42_) {
+#line 3022 "CollectionPage.c"
+ gboolean _tmp43_;
#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp34_ = primary_is_video;
+ _tmp43_ = has_selected;
#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp32_ = !_tmp34_;
-#line 2597 "CollectionPage.c"
+ _tmp41_ = _tmp43_;
+#line 3028 "CollectionPage.c"
} else {
#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp32_ = FALSE;
-#line 2601 "CollectionPage.c"
+ _tmp41_ = FALSE;
+#line 3032 "CollectionPage.c"
}
#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp32_) {
-#line 2605 "CollectionPage.c"
- ViewCollection* _tmp35_;
- ViewCollection* _tmp36_;
- DataView* _tmp37_;
- DataView* _tmp38_;
- DataSource* _tmp39_;
- Photo* _tmp40_;
- PhotoFileFormat _tmp41_;
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", _tmp41_);
#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp35_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+ _tmp46_ = selection_has_videos;
#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp36_ = _tmp35_;
-#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp37_ = view_collection_get_selected_at (_tmp36_, 0);
+ if (!_tmp46_) {
+#line 3040 "CollectionPage.c"
+ gboolean _tmp47_;
#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp38_ = _tmp37_;
+ _tmp47_ = one_selected;
#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp39_ = data_view_get_source (_tmp38_);
-#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp40_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_PHOTO, Photo);
-#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp41_ = photo_get_master_file_format (_tmp40_);
-#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp31_ = _tmp41_ == PHOTO_FILE_FORMAT_RAW;
-#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp40_);
+ _tmp45_ = _tmp47_;
+#line 3046 "CollectionPage.c"
+ } else {
#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp38_);
+ _tmp45_ = FALSE;
+#line 3050 "CollectionPage.c"
+ }
#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp36_);
-#line 2635 "CollectionPage.c"
+ if (_tmp45_) {
+#line 3054 "CollectionPage.c"
+ ViewCollection* _tmp48_;
+ ViewCollection* _tmp49_;
+ DataView* _tmp50_;
+ DataView* _tmp51_;
+ DataSource* _tmp52_;
+ Photo* _tmp53_;
+#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp48_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp49_ = _tmp48_;
+#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp50_ = view_collection_get_selected_at (_tmp49_, 0);
+#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp51_ = _tmp50_;
+#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp52_ = data_view_get_source (_tmp51_);
+#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp53_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, TYPE_PHOTO, Photo);
+#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp44_ = photo_has_color_adjustments (_tmp53_);
+#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp53_);
+#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp51_);
+#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp49_);
+#line 3081 "CollectionPage.c"
} else {
-#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp31_ = FALSE;
-#line 2639 "CollectionPage.c"
+#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp44_ = FALSE;
+#line 3085 "CollectionPage.c"
}
-#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp31_) {
-#line 2643 "CollectionPage.c"
- ConfigFacade* _tmp42_;
- ConfigFacade* _tmp43_;
- gchar* _tmp44_;
- gchar* _tmp45_;
- gboolean _tmp46_;
-#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp42_ = config_facade_get_instance ();
-#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp43_ = _tmp42_;
-#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp44_ = configuration_facade_get_external_raw_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp45_ = _tmp44_;
+#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CopyColorAdjustments", _tmp44_);
#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp46_ = is_string_empty (_tmp45_);
+ _tmp56_ = selection_has_videos;
#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp30_ = !_tmp46_;
+ if (!_tmp56_) {
+#line 3093 "CollectionPage.c"
+ gboolean _tmp57_;
#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (_tmp45_);
+ _tmp57_ = has_selected;
#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp43_);
-#line 2665 "CollectionPage.c"
+ _tmp55_ = _tmp57_;
+#line 3099 "CollectionPage.c"
} else {
-#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp30_ = FALSE;
-#line 2669 "CollectionPage.c"
+#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp55_ = FALSE;
+#line 3103 "CollectionPage.c"
}
-#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_visible (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEditRAW", _tmp30_);
-#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp48_ = selection_has_videos;
-#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp48_) {
-#line 2677 "CollectionPage.c"
- gboolean _tmp49_;
-#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp49_ = collection_page_can_revert_selected (self);
+#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp55_) {
#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp47_ = _tmp49_;
-#line 2683 "CollectionPage.c"
+ _tmp54_ = pixel_transformation_bundle_has_copied_color_adjustments ();
+#line 3109 "CollectionPage.c"
} else {
-#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp47_ = FALSE;
-#line 2687 "CollectionPage.c"
+#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp54_ = FALSE;
+#line 3113 "CollectionPage.c"
}
-#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp47_);
+#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PasteColorAdjustments", _tmp54_);
#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp51_ = selection_has_videos;
+ _tmp59_ = selection_has_videos;
#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp51_) {
-#line 2695 "CollectionPage.c"
- gboolean _tmp52_;
+ if (!_tmp59_) {
+#line 3121 "CollectionPage.c"
+ gboolean _tmp60_;
#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp52_ = has_selected;
+ _tmp60_ = has_selected;
#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp50_ = _tmp52_;
-#line 2701 "CollectionPage.c"
+ _tmp58_ = _tmp60_;
+#line 3127 "CollectionPage.c"
} else {
#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp50_ = FALSE;
-#line 2705 "CollectionPage.c"
+ _tmp58_ = FALSE;
+#line 3131 "CollectionPage.c"
}
#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", _tmp50_);
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", _tmp58_);
#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp55_ = selection_has_videos;
+ _tmp62_ = selection_has_videos;
#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp55_) {
-#line 2713 "CollectionPage.c"
- gboolean _tmp56_;
+ if (!_tmp62_) {
+#line 3139 "CollectionPage.c"
+ gboolean _tmp63_;
#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp56_ = one_selected;
+ _tmp63_ = has_selected;
#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp54_ = _tmp56_;
-#line 2719 "CollectionPage.c"
+ _tmp61_ = _tmp63_;
+#line 3145 "CollectionPage.c"
} else {
#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp54_ = FALSE;
-#line 2723 "CollectionPage.c"
+ _tmp61_ = FALSE;
+#line 3149 "CollectionPage.c"
}
#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp54_) {
-#line 2727 "CollectionPage.c"
- ViewCollection* _tmp57_;
- ViewCollection* _tmp58_;
- DataView* _tmp59_;
- DataView* _tmp60_;
- DataSource* _tmp61_;
- Photo* _tmp62_;
- gboolean _tmp63_;
-#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp57_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp58_ = _tmp57_;
-#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp59_ = view_collection_get_selected_at (_tmp58_, 0);
-#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp60_ = _tmp59_;
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", _tmp61_);
#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp61_ = data_view_get_source (_tmp60_);
+ _tmp65_ = selection_has_videos;
#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp62_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_PHOTO, Photo);
+ if (!_tmp65_) {
+#line 3157 "CollectionPage.c"
+ gboolean _tmp66_;
#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp63_ = photo_has_color_adjustments (_tmp62_);
+ _tmp66_ = has_selected;
#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp53_ = _tmp63_;
-#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp62_);
-#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp60_);
-#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp58_);
-#line 2757 "CollectionPage.c"
+ _tmp64_ = _tmp66_;
+#line 3163 "CollectionPage.c"
} else {
-#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp53_ = FALSE;
-#line 2761 "CollectionPage.c"
+#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp64_ = FALSE;
+#line 3167 "CollectionPage.c"
}
-#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CopyColorAdjustments", _tmp53_);
+#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipHorizontally", _tmp64_);
#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp66_ = selection_has_videos;
+ _tmp68_ = selection_has_videos;
#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp66_) {
-#line 2769 "CollectionPage.c"
- gboolean _tmp67_;
+ if (!_tmp68_) {
+#line 3175 "CollectionPage.c"
+ gboolean _tmp69_;
#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp67_ = has_selected;
+ _tmp69_ = has_selected;
#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp65_ = _tmp67_;
-#line 2775 "CollectionPage.c"
+ _tmp67_ = _tmp69_;
+#line 3181 "CollectionPage.c"
} else {
#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp65_ = FALSE;
-#line 2779 "CollectionPage.c"
- }
-#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp65_) {
-#line 2783 "CollectionPage.c"
- gboolean _tmp68_;
-#line 265 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp68_ = pixel_transformation_bundle_has_copied_color_adjustments ();
-#line 265 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp64_ = _tmp68_;
-#line 2789 "CollectionPage.c"
- } else {
-#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp64_ = FALSE;
-#line 2793 "CollectionPage.c"
+ _tmp67_ = FALSE;
+#line 3185 "CollectionPage.c"
}
#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PasteColorAdjustments", _tmp64_);
-#line 266 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp70_ = selection_has_videos;
-#line 266 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp70_) {
-#line 2801 "CollectionPage.c"
- gboolean _tmp71_;
-#line 266 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp71_ = has_selected;
-#line 266 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp69_ = _tmp71_;
-#line 2807 "CollectionPage.c"
- } else {
-#line 266 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp69_ = FALSE;
-#line 2811 "CollectionPage.c"
- }
-#line 266 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", _tmp69_);
-#line 267 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp73_ = selection_has_videos;
-#line 267 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp73_) {
-#line 2819 "CollectionPage.c"
- gboolean _tmp74_;
-#line 267 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp74_ = has_selected;
-#line 267 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp72_ = _tmp74_;
-#line 2825 "CollectionPage.c"
- } else {
-#line 267 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp72_ = FALSE;
-#line 2829 "CollectionPage.c"
- }
-#line 267 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", _tmp72_);
-#line 268 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp76_ = selection_has_videos;
-#line 268 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp76_) {
-#line 2837 "CollectionPage.c"
- gboolean _tmp77_;
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipVertically", _tmp67_);
#line 268 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp77_ = has_selected;
+ _tmp70_ = has_selected;
#line 268 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp75_ = _tmp77_;
-#line 2843 "CollectionPage.c"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", _tmp70_);
+#line 270 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp71_ = has_selected;
+#line 270 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "NewEvent", _tmp71_);
+#line 271 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp72_ = has_selected;
+#line 271 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AddTags", _tmp72_);
+#line 272 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp73_ = one_selected;
+#line 272 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ModifyTags", _tmp73_);
+#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp75_ = page_has_photos;
+#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp75_) {
+#line 3209 "CollectionPage.c"
+ gboolean _tmp76_;
+#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp76_ = primary_is_video;
+#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp74_ = !_tmp76_;
+#line 3215 "CollectionPage.c"
} else {
-#line 268 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp75_ = FALSE;
-#line 2847 "CollectionPage.c"
+#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp74_ = FALSE;
+#line 3219 "CollectionPage.c"
}
-#line 268 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipHorizontally", _tmp75_);
-#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp79_ = selection_has_videos;
-#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp79_) {
-#line 2855 "CollectionPage.c"
- gboolean _tmp80_;
-#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp80_ = has_selected;
-#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp78_ = _tmp80_;
-#line 2861 "CollectionPage.c"
+#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Slideshow", _tmp74_);
+#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp78_ = selection_has_videos;
+#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (!_tmp78_) {
+#line 3227 "CollectionPage.c"
+ gboolean _tmp79_;
+#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp79_ = has_selected;
+#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp77_ = _tmp79_;
+#line 3233 "CollectionPage.c"
} else {
-#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp78_ = FALSE;
-#line 2865 "CollectionPage.c"
+#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp77_ = FALSE;
+#line 3237 "CollectionPage.c"
}
-#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipVertically", _tmp78_);
-#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp81_ = has_selected;
-#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", _tmp81_);
+#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Print", _tmp77_);
#line 275 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp82_ = has_selected;
+ _tmp80_ = has_selected;
#line 275 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "NewEvent", _tmp82_);
-#line 276 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp83_ = has_selected;
-#line 276 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AddTags", _tmp83_);
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", _tmp80_);
#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp84_ = one_selected;
+ _tmp82_ = selection_has_videos;
#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ModifyTags", _tmp84_);
-#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp86_ = page_has_photos;
-#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp86_) {
-#line 2889 "CollectionPage.c"
- gboolean _tmp87_;
-#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp87_ = primary_is_video;
-#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp85_ = !_tmp87_;
-#line 2895 "CollectionPage.c"
+ if (!_tmp82_) {
+#line 3249 "CollectionPage.c"
+ gboolean _tmp83_;
+#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp83_ = has_selected;
+#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp81_ = _tmp83_;
+#line 3255 "CollectionPage.c"
} else {
-#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp85_ = FALSE;
-#line 2899 "CollectionPage.c"
+#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp81_ = FALSE;
+#line 3259 "CollectionPage.c"
}
+#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", _tmp81_);
#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Slideshow", _tmp85_);
-#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp89_ = selection_has_videos;
-#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp89_) {
-#line 2907 "CollectionPage.c"
- gboolean _tmp90_;
-#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp90_ = has_selected;
-#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp88_ = _tmp90_;
-#line 2913 "CollectionPage.c"
- } else {
-#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp88_ = FALSE;
-#line 2917 "CollectionPage.c"
- }
+ _tmp84_ = has_selected;
+#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp84_) {
+#line 3267 "CollectionPage.c"
+ const gchar* _tmp85_ = NULL;
+ gboolean _tmp86_;
+ gchar* label = NULL;
+ gchar* _tmp87_;
+ const gchar* _tmp88_;
#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Print", _tmp88_);
+ g_debug ("CollectionPage.vala:279: Setting action label for SetBackground...");
#line 280 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp91_ = has_selected;
+ _tmp86_ = one_selected;
#line 280 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", _tmp91_);
-#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp93_ = selection_has_videos;
-#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp93_) {
-#line 2929 "CollectionPage.c"
- gboolean _tmp94_;
-#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp94_ = has_selected;
-#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp92_ = _tmp94_;
-#line 2935 "CollectionPage.c"
- } else {
-#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp92_ = FALSE;
-#line 2939 "CollectionPage.c"
- }
-#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", _tmp92_);
-#line 283 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp95_ = has_selected;
-#line 283 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp95_) {
-#line 2947 "CollectionPage.c"
- const gchar* _tmp96_ = NULL;
- gboolean _tmp97_;
- gchar* label = NULL;
- gchar* _tmp98_;
- const gchar* _tmp99_;
-#line 284 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_debug ("CollectionPage.vala:284: Setting action label for SetBackground...");
-#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp97_ = one_selected;
-#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp97_) {
-#line 286 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp96_ = RESOURCES_SET_BACKGROUND_MENU;
-#line 2961 "CollectionPage.c"
+ if (_tmp86_) {
+#line 281 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp85_ = RESOURCES_SET_BACKGROUND_MENU;
+#line 3281 "CollectionPage.c"
} else {
-#line 287 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp96_ = RESOURCES_SET_BACKGROUND_SLIDESHOW_MENU;
-#line 2965 "CollectionPage.c"
+#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp85_ = RESOURCES_SET_BACKGROUND_SLIDESHOW_MENU;
+#line 3285 "CollectionPage.c"
}
-#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp98_ = g_strdup (_tmp96_);
-#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- label = _tmp98_;
-#line 288 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp99_ = label;
-#line 288 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_update_menu_item_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", _tmp99_);
+#line 280 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp87_ = g_strdup (_tmp85_);
+#line 280 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ label = _tmp87_;
#line 283 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp88_ = label;
+#line 283 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_update_menu_item_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", _tmp88_);
+#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_free0 (label);
-#line 2977 "CollectionPage.c"
+#line 3297 "CollectionPage.c"
}
}
-static void collection_page_on_photos_altered (CollectionPage* self, GeeMap* altered) {
-#line 292 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+static void
+collection_page_on_photos_altered (CollectionPage* self,
+ GeeMap* altered)
+{
+#line 287 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 292 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 287 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (GEE_IS_MAP (altered));
-#line 2987 "CollectionPage.c"
+#line 3310 "CollectionPage.c"
{
GeeIterator* _object_it = NULL;
- GeeMap* _tmp0_;
+ GeeSet* _tmp0_;
GeeSet* _tmp1_;
GeeSet* _tmp2_;
- GeeSet* _tmp3_;
+ GeeIterator* _tmp3_;
GeeIterator* _tmp4_;
- GeeIterator* _tmp5_;
-#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = altered;
-#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = gee_map_get_keys (_tmp0_);
-#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp0_ = gee_map_get_keys (altered);
+#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp1_ = _tmp0_;
+#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp2_ = _tmp1_;
-#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_;
-#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _tmp4_;
-#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp3_);
-#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _object_it = _tmp5_;
-#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp4_ = _tmp3_;
+#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp2_);
+#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _object_it = _tmp4_;
+#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
while (TRUE) {
-#line 3014 "CollectionPage.c"
- GeeIterator* _tmp6_;
- gboolean _tmp7_;
+#line 3334 "CollectionPage.c"
+ GeeIterator* _tmp5_;
DataObject* object = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
+ GeeIterator* _tmp6_;
+ gpointer _tmp7_;
DataView* view = NULL;
- DataObject* _tmp10_;
+ DataObject* _tmp8_;
+ DataView* _tmp9_;
+ gboolean _tmp10_ = FALSE;
DataView* _tmp11_;
- gboolean _tmp12_ = FALSE;
- DataView* _tmp13_;
- gboolean _tmp14_;
LibraryPhoto* photo = NULL;
- DataView* _tmp20_;
- DataSource* _tmp21_;
- LibraryPhoto* _tmp22_;
- LibraryPhoto* _tmp23_;
- gboolean _tmp24_;
- LibraryPhoto* _tmp25_;
- gboolean _tmp26_;
-#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = _object_it;
-#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = gee_iterator_next (_tmp6_);
-#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp7_) {
-#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ DataView* _tmp15_;
+ DataSource* _tmp16_;
+ LibraryPhoto* _tmp17_;
+ LibraryPhoto* _tmp18_;
+ LibraryPhoto* _tmp19_;
+#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp5_ = _object_it;
+#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (!gee_iterator_next (_tmp5_)) {
+#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
break;
-#line 3042 "CollectionPage.c"
+#line 3356 "CollectionPage.c"
}
-#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = _object_it;
-#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
-#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- object = (DataObject*) _tmp9_;
-#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = object;
-#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_VIEW, DataView));
-#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- view = _tmp11_;
-#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = view;
-#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = data_view_is_selected (_tmp13_);
-#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp14_) {
-#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = TRUE;
-#line 3064 "CollectionPage.c"
+#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp6_ = _object_it;
+#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp7_ = gee_iterator_get (_tmp6_);
+#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ object = (DataObject*) _tmp7_;
+#line 291 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp8_ = object;
+#line 291 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_VIEW, DataView));
+#line 291 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ view = _tmp9_;
+#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp11_ = view;
+#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (!data_view_is_selected (_tmp11_)) {
+#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp10_ = TRUE;
+#line 3376 "CollectionPage.c"
} else {
- GeeMap* _tmp15_;
- DataView* _tmp16_;
- gpointer _tmp17_;
- Alteration* _tmp18_;
- gboolean _tmp19_;
-#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = altered;
-#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = view;
-#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = gee_map_get (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_OBJECT, DataObject));
-#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = (Alteration*) _tmp17_;
-#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = alteration_has_subject (_tmp18_, "image");
-#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = !_tmp19_;
-#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _alteration_unref0 (_tmp18_);
-#line 3085 "CollectionPage.c"
+ DataView* _tmp12_;
+ gpointer _tmp13_;
+ Alteration* _tmp14_;
+#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp12_ = view;
+#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp13_ = gee_map_get (altered, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject));
+#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp14_ = (Alteration*) _tmp13_;
+#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp10_ = !alteration_has_subject (_tmp14_, "image");
+#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _alteration_unref0 (_tmp14_);
+#line 3391 "CollectionPage.c"
}
-#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp12_) {
-#line 299 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp10_) {
+#line 294 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (view);
-#line 299 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 294 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (object);
-#line 299 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 294 "/home/jens/Source/shotwell/src/CollectionPage.vala"
continue;
-#line 3095 "CollectionPage.c"
+#line 3401 "CollectionPage.c"
}
-#line 301 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp20_ = view;
-#line 301 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp21_ = data_view_get_source (_tmp20_);
-#line 301 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp22_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp21_) : NULL;
-#line 301 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp22_ == NULL) {
-#line 301 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp21_);
-#line 3107 "CollectionPage.c"
+#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp15_ = view;
+#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp16_ = data_view_get_source (_tmp15_);
+#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp17_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp16_) : NULL;
+#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp17_ == NULL) {
+#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp16_);
+#line 3413 "CollectionPage.c"
}
-#line 301 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo = _tmp22_;
-#line 302 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp23_ = photo;
-#line 302 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp23_ == NULL) {
-#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ photo = _tmp17_;
+#line 297 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp18_ = photo;
+#line 297 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp18_ == NULL) {
+#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photo);
-#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (view);
-#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (object);
-#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
continue;
-#line 3123 "CollectionPage.c"
+#line 3429 "CollectionPage.c"
}
-#line 307 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp24_ = collection_page_can_revert_selected (self);
-#line 307 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp24_);
-#line 308 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp25_ = photo;
-#line 308 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp26_ = photo_has_color_adjustments (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_PHOTO, Photo));
-#line 308 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CopyColorAdjustments", _tmp26_);
-#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 302 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", collection_page_can_revert_selected (self));
+#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp19_ = photo;
+#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CopyColorAdjustments", photo_has_color_adjustments (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_PHOTO, Photo)));
+#line 305 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photo);
-#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 305 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (view);
-#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 305 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (object);
-#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 305 "/home/jens/Source/shotwell/src/CollectionPage.vala"
break;
-#line 3143 "CollectionPage.c"
+#line 3445 "CollectionPage.c"
}
-#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (_object_it);
-#line 3147 "CollectionPage.c"
+#line 3449 "CollectionPage.c"
}
}
-static void collection_page_on_print (CollectionPage* self) {
+static void
+collection_page_on_print (CollectionPage* self)
+{
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
- gint _tmp2_;
- gboolean _tmp3_;
-#line 314 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ gboolean _tmp2_;
+#line 309 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 315 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 315 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _tmp0_;
-#line 315 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_);
-#line 315 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_ > 0;
-#line 315 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp2_ = view_collection_get_selected_count (_tmp1_) > 0;
+#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp1_);
-#line 315 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp3_) {
-#line 3171 "CollectionPage.c"
+#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp2_) {
+#line 3472 "CollectionPage.c"
+ PrintManager* _tmp3_;
PrintManager* _tmp4_;
- PrintManager* _tmp5_;
+ ViewCollection* _tmp5_;
ViewCollection* _tmp6_;
- ViewCollection* _tmp7_;
- GeeList* _tmp8_;
- GeeCollection* _tmp9_;
-#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = print_manager_get_instance ();
-#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _tmp4_;
-#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _tmp6_;
-#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = view_collection_get_selected_sources_of_type (_tmp7_, TYPE_PHOTO);
-#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- print_manager_spool_photo (_tmp5_, _tmp9_);
-#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp9_);
-#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp7_);
-#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _print_manager_unref0 (_tmp5_);
-#line 3198 "CollectionPage.c"
+ GeeList* _tmp7_;
+ GeeCollection* _tmp8_;
+#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = print_manager_get_instance ();
+#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp4_ = _tmp3_;
+#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp6_ = _tmp5_;
+#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp7_ = view_collection_get_selected_sources_of_type (_tmp6_, TYPE_PHOTO);
+#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection);
+#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ print_manager_spool_photo (_tmp4_, _tmp8_);
+#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp8_);
+#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp6_);
+#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _print_manager_unref0 (_tmp4_);
+#line 3499 "CollectionPage.c"
}
}
-static void collection_page_on_external_app_changed (CollectionPage* self) {
+static void
+collection_page_on_external_app_changed (CollectionPage* self)
+{
gint selected_count = 0;
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
gint _tmp2_;
- gint _tmp3_;
- gboolean _tmp4_ = FALSE;
- gint _tmp5_;
-#line 321 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ gboolean _tmp3_ = FALSE;
+ gint _tmp4_;
+#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 322 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 317 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 322 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 317 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _tmp0_;
-#line 322 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 317 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp2_ = view_collection_get_selected_count (_tmp1_);
-#line 322 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_;
-#line 322 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 317 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp1_);
-#line 322 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- selected_count = _tmp3_;
-#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = selected_count;
-#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp5_ == 1) {
-#line 3229 "CollectionPage.c"
+#line 317 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ selected_count = _tmp2_;
+#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp4_ = selected_count;
+#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp4_ == 1) {
+#line 3529 "CollectionPage.c"
+ ConfigFacade* _tmp5_;
ConfigFacade* _tmp6_;
- ConfigFacade* _tmp7_;
+ gchar* _tmp7_;
gchar* _tmp8_;
- gchar* _tmp9_;
-#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = config_facade_get_instance ();
-#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _tmp6_;
-#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = _tmp8_;
-#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = g_strcmp0 (_tmp9_, "") != 0;
-#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (_tmp9_);
-#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 3248 "CollectionPage.c"
+#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp5_ = config_facade_get_instance ();
+#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp6_ = _tmp5_;
+#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp7_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
+#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp8_ = _tmp7_;
+#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = g_strcmp0 (_tmp8_, "") != 0;
+#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_free0 (_tmp8_);
+#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp6_);
+#line 3548 "CollectionPage.c"
} else {
-#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = FALSE;
-#line 3252 "CollectionPage.c"
+#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = FALSE;
+#line 3552 "CollectionPage.c"
}
-#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", _tmp4_);
-#line 3256 "CollectionPage.c"
+#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", _tmp3_);
+#line 3556 "CollectionPage.c"
}
-static void collection_page_real_on_item_activated (CheckerboardPage* base, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers) {
+static void
+collection_page_real_on_item_activated (CheckerboardPage* base,
+ CheckerboardItem* item,
+ CheckerboardPageActivator activator,
+ CheckerboardPageKeyboardModifiers* modifiers)
+{
CollectionPage * self;
Thumbnail* thumbnail = NULL;
- CheckerboardItem* _tmp0_;
+ Thumbnail* _tmp0_;
Thumbnail* _tmp1_;
- Thumbnail* _tmp2_;
+ MediaSource* _tmp2_;
MediaSource* _tmp3_;
- MediaSource* _tmp4_;
- gboolean _tmp5_;
+ gboolean _tmp4_;
LibraryPhoto* photo = NULL;
- Thumbnail* _tmp6_;
- MediaSource* _tmp7_;
+ Thumbnail* _tmp5_;
+ MediaSource* _tmp6_;
+ LibraryPhoto* _tmp7_;
LibraryPhoto* _tmp8_;
LibraryPhoto* _tmp9_;
- LibraryPhoto* _tmp10_;
+ gchar* _tmp10_;
gchar* _tmp11_;
- gchar* _tmp12_;
- CheckerboardPageActivator _tmp13_;
-#line 333 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 328 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 333 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 328 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_CHECKERBOARD_ITEM (item));
-#line 333 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 328 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (modifiers != NULL);
+#line 330 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (item, TYPE_THUMBNAIL, Thumbnail));
+#line 330 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ thumbnail = _tmp0_;
#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = item;
+ _tmp1_ = thumbnail;
+#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp2_ = thumbnail_get_media_source (_tmp1_);
+#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = _tmp2_;
#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_THUMBNAIL, Thumbnail));
+ _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TYPE_VIDEO);
#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- thumbnail = _tmp1_;
+ _g_object_unref0 (_tmp3_);
+#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp4_) {
+#line 336 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ media_page_on_play_video (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage));
+#line 337 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (thumbnail);
+#line 337 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ return;
+#line 3609 "CollectionPage.c"
+ }
#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = thumbnail;
+ _tmp5_ = thumbnail;
#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = thumbnail_get_media_source (_tmp2_);
+ _tmp6_ = thumbnail_get_media_source (_tmp5_);
#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp3_;
+ _tmp7_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp6_) : NULL;
#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_VIDEO);
+ if (_tmp7_ == NULL) {
#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp4_);
+ _g_object_unref0 (_tmp6_);
+#line 3621 "CollectionPage.c"
+ }
#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp5_) {
+ photo = _tmp7_;
#line 341 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- media_page_on_play_video (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage));
+ _tmp8_ = photo;
+#line 341 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp8_ == NULL) {
+#line 342 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (photo);
#line 342 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (thumbnail);
#line 342 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 3308 "CollectionPage.c"
+#line 3635 "CollectionPage.c"
}
#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = thumbnail;
-#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = thumbnail_get_media_source (_tmp6_);
+ _tmp9_ = photo;
#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp7_) : NULL;
+ _tmp10_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject));
#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp8_ == NULL) {
+ _tmp11_ = _tmp10_;
#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 3320 "CollectionPage.c"
- }
+ g_debug ("CollectionPage.vala:345: activating %s", _tmp11_);
#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo = _tmp8_;
-#line 346 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = photo;
-#line 346 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp9_ == NULL) {
-#line 347 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 347 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (thumbnail);
+ _g_free0 (_tmp11_);
#line 347 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 3334 "CollectionPage.c"
- }
-#line 350 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = photo;
-#line 350 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_OBJECT, DataObject));
-#line 350 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = _tmp11_;
-#line 350 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_debug ("CollectionPage.vala:350: activating %s", _tmp12_);
-#line 350 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (_tmp12_);
-#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = activator;
-#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp13_ == CHECKERBOARD_PAGE_ACTIVATOR_MOUSE) {
-#line 3350 "CollectionPage.c"
- CheckerboardPageKeyboardModifiers _tmp14_;
- gboolean _tmp15_;
-#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = *modifiers;
-#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = _tmp14_.super_pressed;
-#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp15_) {
-#line 354 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (activator == CHECKERBOARD_PAGE_ACTIVATOR_MOUSE) {
+#line 3649 "CollectionPage.c"
+ CheckerboardPageKeyboardModifiers _tmp12_;
+ gboolean _tmp13_;
+#line 348 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp12_ = *modifiers;
+#line 348 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp13_ = _tmp12_.super_pressed;
+#line 348 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp13_) {
+#line 349 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_external_edit (self);
-#line 3361 "CollectionPage.c"
+#line 3660 "CollectionPage.c"
} else {
- LibraryWindow* _tmp16_;
- LibraryWindow* _tmp17_;
- LibraryPhoto* _tmp18_;
-#line 356 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = library_window_get_app ();
-#line 356 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = _tmp16_;
-#line 356 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = photo;
-#line 356 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- library_window_switch_to_photo_page (_tmp17_, self, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PHOTO, Photo));
-#line 356 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp17_);
-#line 3376 "CollectionPage.c"
+ LibraryWindow* _tmp14_;
+ LibraryWindow* _tmp15_;
+ LibraryPhoto* _tmp16_;
+#line 351 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp14_ = library_window_get_app ();
+#line 351 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp15_ = _tmp14_;
+#line 351 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp16_ = photo;
+#line 351 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ library_window_switch_to_photo_page (_tmp15_, self, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PHOTO, Photo));
+#line 351 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp15_);
+#line 3675 "CollectionPage.c"
}
} else {
- CheckerboardPageActivator _tmp19_;
-#line 357 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = activator;
-#line 357 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp19_ == CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD) {
-#line 3384 "CollectionPage.c"
- gboolean _tmp20_ = FALSE;
- CheckerboardPageKeyboardModifiers _tmp21_;
- gboolean _tmp22_;
-#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp21_ = *modifiers;
-#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp22_ = _tmp21_.shift_pressed;
-#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp22_) {
-#line 3394 "CollectionPage.c"
- CheckerboardPageKeyboardModifiers _tmp23_;
- gboolean _tmp24_;
-#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp23_ = *modifiers;
-#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp24_ = _tmp23_.ctrl_pressed;
-#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp20_ = !_tmp24_;
-#line 3403 "CollectionPage.c"
+#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (activator == CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD) {
+#line 3680 "CollectionPage.c"
+ gboolean _tmp17_ = FALSE;
+ CheckerboardPageKeyboardModifiers _tmp18_;
+ gboolean _tmp19_;
+#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp18_ = *modifiers;
+#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp19_ = _tmp18_.shift_pressed;
+#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (!_tmp19_) {
+#line 3690 "CollectionPage.c"
+ CheckerboardPageKeyboardModifiers _tmp20_;
+ gboolean _tmp21_;
+#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp20_ = *modifiers;
+#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp21_ = _tmp20_.ctrl_pressed;
+#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp17_ = !_tmp21_;
+#line 3699 "CollectionPage.c"
} else {
-#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp20_ = FALSE;
-#line 3407 "CollectionPage.c"
+#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp17_ = FALSE;
+#line 3703 "CollectionPage.c"
}
-#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp20_) {
-#line 3411 "CollectionPage.c"
- LibraryWindow* _tmp25_;
- LibraryWindow* _tmp26_;
- LibraryPhoto* _tmp27_;
-#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp25_ = library_window_get_app ();
-#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp26_ = _tmp25_;
-#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp27_ = photo;
-#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- library_window_switch_to_photo_page (_tmp26_, self, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_PHOTO, Photo));
-#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp26_);
-#line 3425 "CollectionPage.c"
+#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp17_) {
+#line 3707 "CollectionPage.c"
+ LibraryWindow* _tmp22_;
+ LibraryWindow* _tmp23_;
+ LibraryPhoto* _tmp24_;
+#line 354 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp22_ = library_window_get_app ();
+#line 354 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp23_ = _tmp22_;
+#line 354 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp24_ = photo;
+#line 354 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ library_window_switch_to_photo_page (_tmp23_, self, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_PHOTO, Photo));
+#line 354 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp23_);
+#line 3721 "CollectionPage.c"
}
}
}
-#line 333 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 328 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photo);
-#line 333 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 328 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (thumbnail);
-#line 3433 "CollectionPage.c"
+#line 3729 "CollectionPage.c"
}
-static gboolean collection_page_real_on_app_key_pressed (Page* base, GdkEventKey* event) {
+static gboolean
+collection_page_real_on_app_key_pressed (Page* base,
+ GdkEventKey* event)
+{
CollectionPage * self;
gboolean result = FALSE;
gboolean handled = FALSE;
- GdkEventKey* _tmp0_;
- guint _tmp1_;
+ guint _tmp0_;
+ const gchar* _tmp1_;
const gchar* _tmp2_;
- const gchar* _tmp3_;
- GQuark _tmp5_ = 0U;
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp4_label0 = 0;
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp4_label1 = 0;
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp4_label2 = 0;
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp4_label3 = 0;
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp4_label4 = 0;
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp4_label5 = 0;
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp4_label6 = 0;
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp4_label7 = 0;
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp4_label8 = 0;
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- static GQuark _tmp4_label9 = 0;
-#line 3466 "CollectionPage.c"
- gboolean _tmp8_ = FALSE;
- gboolean _tmp9_;
-#line 363 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ GQuark _tmp4_ = 0U;
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ static GQuark _tmp3_label0 = 0;
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ static GQuark _tmp3_label1 = 0;
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ static GQuark _tmp3_label2 = 0;
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ static GQuark _tmp3_label3 = 0;
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ static GQuark _tmp3_label4 = 0;
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ static GQuark _tmp3_label5 = 0;
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ static GQuark _tmp3_label6 = 0;
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ static GQuark _tmp3_label7 = 0;
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ static GQuark _tmp3_label8 = 0;
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ static GQuark _tmp3_label9 = 0;
+#line 3764 "CollectionPage.c"
+ gboolean _tmp6_ = FALSE;
+ gboolean _tmp7_;
+#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 363 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_val_if_fail (event != NULL, FALSE);
-#line 364 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala"
handled = TRUE;
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp0_ = event;
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp0_->keyval;
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = gdk_keyval_name (_tmp1_);
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_;
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = (NULL == _tmp3_) ? 0 : g_quark_from_string (_tmp3_);
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if ((((((((_tmp5_ == ((0 != _tmp4_label0) ? _tmp4_label0 : (_tmp4_label0 = g_quark_from_static_string ("Page_Up")))) || (_tmp5_ == ((0 != _tmp4_label1) ? _tmp4_label1 : (_tmp4_label1 = g_quark_from_static_string ("KP_Page_Up"))))) || (_tmp5_ == ((0 != _tmp4_label2) ? _tmp4_label2 : (_tmp4_label2 = g_quark_from_static_string ("Page_Down"))))) || (_tmp5_ == ((0 != _tmp4_label3) ? _tmp4_label3 : (_tmp4_label3 = g_quark_from_static_string ("KP_Page_Down"))))) || (_tmp5_ == ((0 != _tmp4_label4) ? _tmp4_label4 : (_tmp4_label4 = g_quark_from_static_string ("Home"))))) || (_tmp5_ == ((0 != _tmp4_label5) ? _tmp4_label5 : (_tmp4_label5 = g_quark_from_static_string ("KP_Home"))))) || (_tmp5_ == ((0 != _tmp4_label6) ? _tmp4_label6 : (_tmp4_label6 = g_quark_from_static_string ("End"))))) || (_tmp5_ == ((0 != _tmp4_label7) ? _tmp4_label7 : (_tmp4_label7 = g_quark_from_static_string ("KP_End"))))) {
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp0_ = event->keyval;
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp1_ = gdk_keyval_name (_tmp0_);
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp2_ = _tmp1_;
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_);
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if ((((((((_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("Page_Up")))) || (_tmp4_ == ((0 != _tmp3_label1) ? _tmp3_label1 : (_tmp3_label1 = g_quark_from_static_string ("KP_Page_Up"))))) || (_tmp4_ == ((0 != _tmp3_label2) ? _tmp3_label2 : (_tmp3_label2 = g_quark_from_static_string ("Page_Down"))))) || (_tmp4_ == ((0 != _tmp3_label3) ? _tmp3_label3 : (_tmp3_label3 = g_quark_from_static_string ("KP_Page_Down"))))) || (_tmp4_ == ((0 != _tmp3_label4) ? _tmp3_label4 : (_tmp3_label4 = g_quark_from_static_string ("Home"))))) || (_tmp4_ == ((0 != _tmp3_label5) ? _tmp3_label5 : (_tmp3_label5 = g_quark_from_static_string ("KP_Home"))))) || (_tmp4_ == ((0 != _tmp3_label6) ? _tmp3_label6 : (_tmp3_label6 = g_quark_from_static_string ("End"))))) || (_tmp4_ == ((0 != _tmp3_label7) ? _tmp3_label7 : (_tmp3_label7 = g_quark_from_static_string ("KP_End"))))) {
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
switch (0) {
-#line 3489 "CollectionPage.c"
+#line 3785 "CollectionPage.c"
default:
{
- GdkEventKey* _tmp6_;
- gboolean _tmp7_ = FALSE;
-#line 374 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = event;
-#line 374 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "key-press-event", _tmp6_, &_tmp7_);
-#line 375 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ gboolean _tmp5_ = FALSE;
+#line 369 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "key-press-event", event, &_tmp5_);
+#line 370 "/home/jens/Source/shotwell/src/CollectionPage.vala"
break;
-#line 3500 "CollectionPage.c"
+#line 3793 "CollectionPage.c"
}
}
- } else if (_tmp5_ == ((0 != _tmp4_label8) ? _tmp4_label8 : (_tmp4_label8 = g_quark_from_static_string ("bracketright")))) {
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ } else if (_tmp4_ == ((0 != _tmp3_label8) ? _tmp3_label8 : (_tmp3_label8 = g_quark_from_static_string ("bracketright")))) {
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
switch (0) {
-#line 3506 "CollectionPage.c"
+#line 3799 "CollectionPage.c"
default:
{
-#line 378 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 373 "/home/jens/Source/shotwell/src/CollectionPage.vala"
page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise");
-#line 379 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 374 "/home/jens/Source/shotwell/src/CollectionPage.vala"
break;
-#line 3513 "CollectionPage.c"
+#line 3806 "CollectionPage.c"
}
}
- } else if (_tmp5_ == ((0 != _tmp4_label9) ? _tmp4_label9 : (_tmp4_label9 = g_quark_from_static_string ("bracketleft")))) {
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ } else if (_tmp4_ == ((0 != _tmp3_label9) ? _tmp3_label9 : (_tmp3_label9 = g_quark_from_static_string ("bracketleft")))) {
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
switch (0) {
-#line 3519 "CollectionPage.c"
+#line 3812 "CollectionPage.c"
default:
{
-#line 382 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 377 "/home/jens/Source/shotwell/src/CollectionPage.vala"
page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise");
-#line 383 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 378 "/home/jens/Source/shotwell/src/CollectionPage.vala"
break;
-#line 3526 "CollectionPage.c"
+#line 3819 "CollectionPage.c"
}
}
} else {
-#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala"
switch (0) {
-#line 3532 "CollectionPage.c"
+#line 3825 "CollectionPage.c"
default:
{
-#line 386 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 381 "/home/jens/Source/shotwell/src/CollectionPage.vala"
handled = FALSE;
-#line 387 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 382 "/home/jens/Source/shotwell/src/CollectionPage.vala"
break;
-#line 3539 "CollectionPage.c"
+#line 3832 "CollectionPage.c"
}
}
}
-#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = handled;
-#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp9_) {
-#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = TRUE;
-#line 3549 "CollectionPage.c"
+#line 385 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp7_ = handled;
+#line 385 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp7_) {
+#line 385 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp6_ = TRUE;
+#line 3842 "CollectionPage.c"
} else {
- GdkEventKey* _tmp10_;
- gboolean _tmp11_;
-#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = event;
-#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = PAGE_CLASS (collection_page_parent_class)->on_app_key_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp10_);
-#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = _tmp11_;
-#line 3559 "CollectionPage.c"
+#line 385 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp6_ = PAGE_CLASS (collection_page_parent_class)->on_app_key_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), event);
+#line 3846 "CollectionPage.c"
}
-#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = _tmp8_;
-#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 385 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ result = _tmp6_;
+#line 385 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 3565 "CollectionPage.c"
+#line 3852 "CollectionPage.c"
}
-static void _collection_page_on_export_completed_exporter_completion_callback (Exporter* exporter, gboolean is_cancelled, gpointer self) {
-#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+static void
+_collection_page_on_export_completed_exporter_completion_callback (Exporter* exporter,
+ gboolean is_cancelled,
+ gpointer self)
+{
+#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_on_export_completed ((CollectionPage*) self);
-#line 3572 "CollectionPage.c"
+#line 3863 "CollectionPage.c"
}
-static void collection_page_real_on_export (MediaPage* base) {
+static void
+collection_page_real_on_export (MediaPage* base)
+{
CollectionPage * self;
ExporterUI* _tmp0_;
GeeCollection* export_list = NULL;
@@ -3584,561 +3877,531 @@ static void collection_page_real_on_export (MediaPage* base) {
gint _tmp6_;
gint _tmp7_;
gboolean has_some_photos = FALSE;
- gboolean _tmp8_;
gboolean has_some_videos = FALSE;
+ gboolean _tmp8_ = FALSE;
gboolean _tmp9_;
- gboolean _tmp10_ = FALSE;
gboolean _tmp11_;
- gboolean _tmp13_;
gchar* title = NULL;
- gboolean _tmp16_;
+ gboolean _tmp14_;
ExportDialog* export_dialog = NULL;
- const gchar* _tmp27_;
- ExportDialog* _tmp28_;
- ExportFormatParameters _tmp29_ = {0};
- gboolean _tmp30_;
+ const gchar* _tmp23_;
+ ExportDialog* _tmp24_;
+ ExportFormatParameters _tmp25_ = {0};
+ gboolean _tmp26_;
ExportFormatParameters export_params = {0};
gint scale = 0;
ScaleConstraint constraint = 0;
- ExportDialog* _tmp33_;
- gint _tmp34_ = 0;
- ScaleConstraint _tmp35_ = 0;
- gboolean _tmp36_;
+ ExportDialog* _tmp29_;
+ gint _tmp30_ = 0;
+ ScaleConstraint _tmp31_ = 0;
+ gboolean _tmp32_;
Scaling scaling = {0};
- ScaleConstraint _tmp37_;
+ ScaleConstraint _tmp33_;
+ gint _tmp34_;
+ Scaling _tmp35_ = {0};
+ GeeCollection* _tmp36_;
+ gint _tmp37_;
gint _tmp38_;
- Scaling _tmp39_ = {0};
- GeeCollection* _tmp40_;
- gint _tmp41_;
- gint _tmp42_;
GFile* export_dir = NULL;
- const gchar* _tmp77_;
- GFile* _tmp78_;
- GFile* _tmp79_;
- GeeCollection* _tmp80_;
- GFile* _tmp81_;
- Scaling _tmp82_;
- ExportFormatParameters _tmp83_;
- Exporter* _tmp84_;
- Exporter* _tmp85_;
- ExporterUI* _tmp86_;
- ExporterUI* _tmp87_;
+ const gchar* _tmp71_;
+ GFile* _tmp72_;
+ GFile* _tmp73_;
+ GeeCollection* _tmp74_;
+ GFile* _tmp75_;
+ Scaling _tmp76_;
+ ExportFormatParameters _tmp77_;
+ Exporter* _tmp78_;
+ Exporter* _tmp79_;
+ ExporterUI* _tmp80_;
+ ExporterUI* _tmp81_;
GError * _inner_error_ = NULL;
-#line 393 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 388 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 394 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 389 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = self->priv->exporter;
-#line 394 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 389 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (_tmp0_ != NULL) {
-#line 395 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 3636 "CollectionPage.c"
+#line 3927 "CollectionPage.c"
}
-#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 392 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 392 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp2_ = _tmp1_;
-#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 392 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp3_ = view_collection_get_selected_sources (_tmp2_);
-#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 392 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 392 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp2_);
-#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 392 "/home/jens/Source/shotwell/src/CollectionPage.vala"
export_list = _tmp4_;
-#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 394 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp5_ = export_list;
-#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 394 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp6_ = gee_collection_get_size (_tmp5_);
-#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 394 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp7_ = _tmp6_;
-#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 394 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (_tmp7_ == 0) {
-#line 400 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 395 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (export_list);
-#line 400 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 395 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 3662 "CollectionPage.c"
+#line 3953 "CollectionPage.c"
}
-#line 402 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = collection_page_selection_has_photo (self);
-#line 402 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- has_some_photos = _tmp8_;
-#line 403 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = collection_page_selection_has_video (self);
+#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ has_some_photos = collection_page_selection_has_photo (self);
+#line 398 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ has_some_videos = collection_page_selection_has_video (self);
+#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp9_ = has_some_photos;
+#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp9_) {
+#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp8_ = TRUE;
+#line 3965 "CollectionPage.c"
+ } else {
+ gboolean _tmp10_;
+#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp10_ = has_some_videos;
+#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp8_ = _tmp10_;
+#line 3972 "CollectionPage.c"
+ }
+#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _vala_assert (_tmp8_, "has_some_photos || has_some_videos");
#line 403 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- has_some_videos = _tmp9_;
-#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp11_ = has_some_photos;
+#line 403 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (!_tmp11_) {
+#line 3980 "CollectionPage.c"
+ GeeCollection* _tmp12_;
+ ExporterUI* _tmp13_;
#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp11_) {
+ _tmp12_ = export_list;
#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = TRUE;
-#line 3678 "CollectionPage.c"
- } else {
- gboolean _tmp12_;
+ _tmp13_ = video_export_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), _collection_page_on_export_completed_exporter_completion_callback, self, FALSE);
#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = has_some_videos;
+ _exporter_ui_unref0 (self->priv->exporter);
#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = _tmp12_;
-#line 3685 "CollectionPage.c"
+ self->priv->exporter = _tmp13_;
+#line 405 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (export_list);
+#line 405 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ return;
+#line 3995 "CollectionPage.c"
}
-#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _vala_assert (_tmp10_, "has_some_photos || has_some_videos");
-#line 408 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = has_some_photos;
#line 408 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp13_) {
-#line 3693 "CollectionPage.c"
- GeeCollection* _tmp14_;
- ExporterUI* _tmp15_;
-#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = export_list;
-#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = video_export_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection), _collection_page_on_export_completed_exporter_completion_callback, self, FALSE);
+ title = NULL;
#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _exporter_ui_unref0 (self->priv->exporter);
+ _tmp14_ = has_some_videos;
#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self->priv->exporter = _tmp15_;
+ if (_tmp14_) {
+#line 4003 "CollectionPage.c"
+ GeeCollection* _tmp15_;
+ gint _tmp16_;
+ gint _tmp17_;
+ gchar* _tmp18_;
#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_list);
+ _tmp15_ = export_list;
+#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp16_ = gee_collection_get_size (_tmp15_);
+#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp17_ = _tmp16_;
+#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp18_ = g_strdup (ngettext ("Export Photo/Video", "Export Photos/Videos", (gulong) _tmp17_));
#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 3708 "CollectionPage.c"
- }
-#line 413 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- title = NULL;
-#line 414 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = has_some_videos;
-#line 414 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp16_) {
-#line 3716 "CollectionPage.c"
- const gchar* _tmp17_ = NULL;
- GeeCollection* _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
- gchar* _tmp21_;
-#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = export_list;
-#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = gee_collection_get_size (_tmp18_);
-#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp20_ = _tmp19_;
-#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp20_ == 1) {
-#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = _ ("Export Photo/Video");
-#line 3732 "CollectionPage.c"
- } else {
-#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = _ ("Export Photos/Videos");
-#line 3736 "CollectionPage.c"
- }
-#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp21_ = g_strdup (_tmp17_);
-#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_free0 (title);
-#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- title = _tmp21_;
-#line 3744 "CollectionPage.c"
+#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ title = _tmp18_;
+#line 4020 "CollectionPage.c"
} else {
- const gchar* _tmp22_ = NULL;
- GeeCollection* _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
- gchar* _tmp26_;
-#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp23_ = export_list;
-#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp24_ = gee_collection_get_size (_tmp23_);
-#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp25_ = _tmp24_;
-#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp25_ == 1) {
-#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp22_ = _ ("Export Photo");
-#line 3761 "CollectionPage.c"
- } else {
-#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp22_ = _ ("Export Photos");
-#line 3765 "CollectionPage.c"
- }
-#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp26_ = g_strdup (_tmp22_);
-#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ GeeCollection* _tmp19_;
+ gint _tmp20_;
+ gint _tmp21_;
+ gchar* _tmp22_;
+#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp19_ = export_list;
+#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp20_ = gee_collection_get_size (_tmp19_);
+#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp21_ = _tmp20_;
+#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp22_ = g_strdup (ngettext ("Export Photo", "Export Photos", (gulong) _tmp21_));
+#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_free0 (title);
-#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- title = _tmp26_;
-#line 3773 "CollectionPage.c"
+#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ title = _tmp22_;
+#line 4038 "CollectionPage.c"
}
-#line 418 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp27_ = title;
-#line 418 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp28_ = export_dialog_new (_tmp27_);
-#line 418 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_object_ref_sink (_tmp28_);
-#line 418 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- export_dialog = _tmp28_;
+#line 413 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp23_ = title;
+#line 413 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp24_ = export_dialog_new (_tmp23_);
+#line 413 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ g_object_ref_sink (_tmp24_);
+#line 413 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ export_dialog = _tmp24_;
+#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp26_ = has_some_videos;
+#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp26_) {
+#line 4052 "CollectionPage.c"
+ ExportFormatParameters _tmp27_ = {0};
+#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ export_format_parameters_current (&_tmp27_);
+#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp25_ = _tmp27_;
+#line 4058 "CollectionPage.c"
+ } else {
+ ExportFormatParameters _tmp28_ = {0};
+#line 424 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ export_format_parameters_last (&_tmp28_);
+#line 424 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp25_ = _tmp28_;
+#line 4065 "CollectionPage.c"
+ }
+#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ export_params = _tmp25_;
#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp30_ = has_some_videos;
+ _tmp29_ = export_dialog;
#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp30_) {
-#line 3787 "CollectionPage.c"
- ExportFormatParameters _tmp31_ = {0};
+ _tmp32_ = export_dialog_execute (_tmp29_, &_tmp30_, &_tmp31_, &export_params);
#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- export_format_parameters_current (&_tmp31_);
+ scale = _tmp30_;
#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp29_ = _tmp31_;
-#line 3793 "CollectionPage.c"
- } else {
- ExportFormatParameters _tmp32_ = {0};
+ constraint = _tmp31_;
+#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (!_tmp32_) {
+#line 429 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (export_dialog);
#line 429 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- export_format_parameters_last (&_tmp32_);
+ _g_free0 (title);
+#line 429 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (export_list);
#line 429 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp29_ = _tmp32_;
-#line 3800 "CollectionPage.c"
+ return;
+#line 4087 "CollectionPage.c"
}
-#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- export_params = _tmp29_;
-#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp33_ = export_dialog;
-#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp36_ = export_dialog_execute (_tmp33_, &_tmp34_, &_tmp35_, &export_params);
-#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- scale = _tmp34_;
-#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- constraint = _tmp35_;
-#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp36_) {
+#line 431 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp33_ = constraint;
+#line 431 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp34_ = scale;
+#line 431 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ scaling_for_constraint (_tmp33_, _tmp34_, FALSE, &_tmp35_);
+#line 431 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ scaling = _tmp35_;
#line 434 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_dialog);
+ _tmp36_ = export_list;
#line 434 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (title);
+ _tmp37_ = gee_collection_get_size (_tmp36_);
#line 434 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (export_list);
+ _tmp38_ = _tmp37_;
#line 434 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 3822 "CollectionPage.c"
- }
-#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp37_ = constraint;
-#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp38_ = scale;
-#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- scaling_for_constraint (_tmp37_, _tmp38_, FALSE, &_tmp39_);
-#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- scaling = _tmp39_;
-#line 439 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp40_ = export_list;
-#line 439 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp41_ = gee_collection_get_size (_tmp40_);
-#line 439 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp42_ = _tmp41_;
-#line 439 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp42_ == 1) {
-#line 3840 "CollectionPage.c"
+ if (_tmp38_ == 1) {
+#line 4105 "CollectionPage.c"
LibraryPhoto* photo = NULL;
GFile* save_as = NULL;
- LibraryPhoto* _tmp51_;
- ExportFormatParameters _tmp52_;
- gchar* _tmp53_;
- gchar* _tmp54_;
- GFile* _tmp55_;
- GFile* _tmp56_;
- GFile* _tmp57_;
-#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ LibraryPhoto* _tmp46_;
+ ExportFormatParameters _tmp47_;
+ gchar* _tmp48_;
+ gchar* _tmp49_;
+ GFile* _tmp50_;
+ GFile* _tmp51_;
+ GFile* _tmp52_;
+#line 435 "/home/jens/Source/shotwell/src/CollectionPage.vala"
photo = NULL;
-#line 3852 "CollectionPage.c"
+#line 4117 "CollectionPage.c"
{
GeeIterator* _p_it = NULL;
- GeeCollection* _tmp43_;
- GeeIterator* _tmp44_;
-#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp43_ = export_list;
-#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp44_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, GEE_TYPE_COLLECTION, GeeCollection), GEE_TYPE_ITERABLE, GeeIterable));
-#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _p_it = _tmp44_;
-#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ GeeCollection* _tmp39_;
+ GeeIterator* _tmp40_;
+#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp39_ = export_list;
+#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp40_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_COLLECTION, GeeCollection), GEE_TYPE_ITERABLE, GeeIterable));
+#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _p_it = _tmp40_;
+#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
while (TRUE) {
-#line 3865 "CollectionPage.c"
- GeeIterator* _tmp45_;
- gboolean _tmp46_;
+#line 4130 "CollectionPage.c"
+ GeeIterator* _tmp41_;
LibraryPhoto* p = NULL;
- GeeIterator* _tmp47_;
- gpointer _tmp48_;
- LibraryPhoto* _tmp49_;
- LibraryPhoto* _tmp50_;
+ GeeIterator* _tmp42_;
+ gpointer _tmp43_;
+ LibraryPhoto* _tmp44_;
+ LibraryPhoto* _tmp45_;
+#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp41_ = _p_it;
+#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (!gee_iterator_next (_tmp41_)) {
+#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ break;
+#line 4143 "CollectionPage.c"
+ }
+#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp42_ = _p_it;
+#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp43_ = gee_iterator_get (_tmp42_);
+#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ p = (LibraryPhoto*) _tmp43_;
+#line 437 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp44_ = p;
+#line 437 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp45_ = _g_object_ref0 (_tmp44_);
+#line 437 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (photo);
+#line 437 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ photo = _tmp45_;
+#line 438 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (p);
+#line 438 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ break;
+#line 4163 "CollectionPage.c"
+ }
+#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_p_it);
+#line 4167 "CollectionPage.c"
+ }
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp45_ = _p_it;
+ _tmp46_ = photo;
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp46_ = gee_iterator_next (_tmp45_);
+ _tmp47_ = export_params;
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!_tmp46_) {
+ _tmp48_ = photo_get_export_basename_for_parameters (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_PHOTO, Photo), &_tmp47_);
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- break;
-#line 3881 "CollectionPage.c"
- }
+ _tmp49_ = _tmp48_;
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp47_ = _p_it;
+ _tmp50_ = export_ui_choose_file (_tmp49_);
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp48_ = gee_iterator_get (_tmp47_);
+ _tmp51_ = _tmp50_;
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- p = (LibraryPhoto*) _tmp48_;
-#line 442 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp49_ = p;
-#line 442 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp50_ = _g_object_ref0 (_tmp49_);
-#line 442 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
-#line 442 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo = _tmp50_;
+ _g_free0 (_tmp49_);
+#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ save_as = _tmp51_;
#line 443 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (p);
+ _tmp52_ = save_as;
#line 443 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- break;
-#line 3901 "CollectionPage.c"
- }
-#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_p_it);
-#line 3905 "CollectionPage.c"
- }
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp51_ = photo;
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp52_ = export_params;
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp53_ = photo_get_export_basename_for_parameters (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, TYPE_PHOTO, Photo), &_tmp52_);
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp54_ = _tmp53_;
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp55_ = export_ui_choose_file (_tmp54_);
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp56_ = _tmp55_;
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (_tmp54_);
-#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- save_as = _tmp56_;
-#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp57_ = save_as;
-#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp57_ == NULL) {
-#line 449 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp52_ == NULL) {
+#line 444 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (save_as);
-#line 449 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 444 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photo);
-#line 449 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 444 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (export_dialog);
-#line 449 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 444 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_free0 (title);
-#line 449 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 444 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (export_list);
-#line 449 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 444 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 3939 "CollectionPage.c"
+#line 4201 "CollectionPage.c"
}
{
- AppWindow* _tmp58_;
- AppWindow* _tmp59_;
+ AppWindow* _tmp53_;
+ AppWindow* _tmp54_;
+ LibraryPhoto* _tmp55_;
+ GFile* _tmp56_;
+ Scaling _tmp57_;
+ ExportFormatParameters _tmp58_;
+ JpegQuality _tmp59_;
LibraryPhoto* _tmp60_;
- GFile* _tmp61_;
- Scaling _tmp62_;
- ExportFormatParameters _tmp63_;
- JpegQuality _tmp64_;
- LibraryPhoto* _tmp65_;
- ExportFormatParameters _tmp66_;
- PhotoFileFormat _tmp67_;
- ExportFormatParameters _tmp68_;
- ExportFormatMode _tmp69_;
- ExportFormatParameters _tmp70_;
- gboolean _tmp71_;
- AppWindow* _tmp72_;
- AppWindow* _tmp73_;
-#line 452 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp58_ = app_window_get_instance ();
-#line 452 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp59_ = _tmp58_;
-#line 452 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, TYPE_PAGE_WINDOW, PageWindow));
-#line 452 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp59_);
-#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ ExportFormatParameters _tmp61_;
+ ExportFormatParameters _tmp62_;
+ ExportFormatMode _tmp63_;
+ ExportFormatParameters _tmp64_;
+ gboolean _tmp65_;
+ AppWindow* _tmp66_;
+ AppWindow* _tmp67_;
+#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp53_ = app_window_get_instance ();
+#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp54_ = _tmp53_;
+#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, TYPE_PAGE_WINDOW, PageWindow));
+#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp54_);
+#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp55_ = photo;
+#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp56_ = save_as;
+#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp57_ = scaling;
+#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp58_ = export_params;
+#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp59_ = _tmp58_.quality;
+#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp60_ = photo;
-#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp61_ = save_as;
-#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp62_ = scaling;
-#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp63_ = export_params;
-#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp64_ = _tmp63_.quality;
-#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp65_ = photo;
-#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp66_ = export_params;
-#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp67_ = photo_get_export_format_for_parameters (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, TYPE_PHOTO, Photo), &_tmp66_);
-#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp68_ = export_params;
-#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp69_ = _tmp68_.mode;
-#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp70_ = export_params;
-#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp71_ = _tmp70_.export_metadata;
-#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo_export (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_PHOTO, Photo), _tmp61_, &_tmp62_, _tmp64_, _tmp67_, _tmp69_ == EXPORT_FORMAT_MODE_UNMODIFIED, _tmp71_, &_inner_error_);
-#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp61_ = export_params;
+#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp62_ = export_params;
+#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp63_ = _tmp62_.mode;
+#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp64_ = export_params;
+#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp65_ = _tmp64_.export_metadata;
+#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ photo_export (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_PHOTO, Photo), _tmp56_, &_tmp57_, _tmp59_, photo_get_export_format_for_parameters (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_PHOTO, Photo), &_tmp61_), _tmp63_ == EXPORT_FORMAT_MODE_UNMODIFIED, _tmp65_, &_inner_error_);
+#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3994 "CollectionPage.c"
- goto __catch234_g_error;
+#line 4253 "CollectionPage.c"
+ goto __catch245_g_error;
}
-#line 456 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp72_ = app_window_get_instance ();
-#line 456 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp73_ = _tmp72_;
-#line 456 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, TYPE_PAGE_WINDOW, PageWindow));
-#line 456 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp73_);
-#line 4005 "CollectionPage.c"
+#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp66_ = app_window_get_instance ();
+#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp67_ = _tmp66_;
+#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, TYPE_PAGE_WINDOW, PageWindow));
+#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp67_);
+#line 4264 "CollectionPage.c"
}
- goto __finally234;
- __catch234_g_error:
+ goto __finally245;
+ __catch245_g_error:
{
GError* err = NULL;
- AppWindow* _tmp74_;
- AppWindow* _tmp75_;
- GFile* _tmp76_;
-#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ AppWindow* _tmp68_;
+ AppWindow* _tmp69_;
+ GFile* _tmp70_;
+#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
err = _inner_error_;
-#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_inner_error_ = NULL;
-#line 458 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp74_ = app_window_get_instance ();
-#line 458 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp75_ = _tmp74_;
-#line 458 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, TYPE_PAGE_WINDOW, PageWindow));
-#line 458 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp75_);
-#line 459 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp76_ = save_as;
-#line 459 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- export_error_dialog (_tmp76_, FALSE);
-#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp68_ = app_window_get_instance ();
+#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp69_ = _tmp68_;
+#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, TYPE_PAGE_WINDOW, PageWindow));
+#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp69_);
+#line 454 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp70_ = save_as;
+#line 454 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ export_error_dialog (_tmp70_, FALSE);
+#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_error_free0 (err);
-#line 4032 "CollectionPage.c"
+#line 4291 "CollectionPage.c"
}
- __finally234:
-#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ __finally245:
+#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (save_as);
-#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photo);
-#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (export_dialog);
-#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_free0 (title);
-#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (export_list);
-#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_clear_error (&_inner_error_);
-#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 4053 "CollectionPage.c"
+#line 4312 "CollectionPage.c"
}
-#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (save_as);
-#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photo);
-#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (export_dialog);
-#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_free0 (title);
-#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (export_list);
-#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 4067 "CollectionPage.c"
+#line 4326 "CollectionPage.c"
}
-#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp77_ = title;
-#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp78_ = export_ui_choose_dir (_tmp77_);
-#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- export_dir = _tmp78_;
-#line 467 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp79_ = export_dir;
-#line 467 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp79_ == NULL) {
-#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 461 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp71_ = title;
+#line 461 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp72_ = export_ui_choose_dir (_tmp71_);
+#line 461 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ export_dir = _tmp72_;
+#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp73_ = export_dir;
+#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp73_ == NULL) {
+#line 463 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (export_dir);
-#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 463 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (export_dialog);
-#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 463 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_free0 (title);
-#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 463 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (export_list);
-#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 463 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 4089 "CollectionPage.c"
+#line 4348 "CollectionPage.c"
}
-#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp80_ = export_list;
-#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp81_ = export_dir;
-#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp82_ = scaling;
-#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp83_ = export_params;
-#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp84_ = exporter_new (_tmp80_, _tmp81_, &_tmp82_, &_tmp83_, FALSE);
-#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp85_ = _tmp84_;
-#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp86_ = exporter_ui_new (_tmp85_);
-#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp74_ = export_list;
+#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp75_ = export_dir;
+#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp76_ = scaling;
+#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp77_ = export_params;
+#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp78_ = exporter_new (_tmp74_, _tmp75_, &_tmp76_, &_tmp77_, FALSE);
+#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp79_ = _tmp78_;
+#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp80_ = exporter_ui_new (_tmp79_);
+#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_exporter_ui_unref0 (self->priv->exporter);
-#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- self->priv->exporter = _tmp86_;
-#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp85_);
-#line 471 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp87_ = self->priv->exporter;
-#line 471 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- exporter_ui_export (_tmp87_, _collection_page_on_export_completed_exporter_completion_callback, self);
-#line 393 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ self->priv->exporter = _tmp80_;
+#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp79_);
+#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp81_ = self->priv->exporter;
+#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ exporter_ui_export (_tmp81_, _collection_page_on_export_completed_exporter_completion_callback, self);
+#line 388 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (export_dir);
-#line 393 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 388 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (export_dialog);
-#line 393 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 388 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_free0 (title);
-#line 393 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 388 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (export_list);
-#line 4123 "CollectionPage.c"
+#line 4382 "CollectionPage.c"
}
-static void collection_page_on_export_completed (CollectionPage* self) {
-#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+static void
+collection_page_on_export_completed (CollectionPage* self)
+{
+#line 469 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_exporter_ui_unref0 (self->priv->exporter);
-#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self->priv->exporter = NULL;
-#line 4134 "CollectionPage.c"
+#line 4395 "CollectionPage.c"
}
-static gboolean collection_page_can_revert_selected (CollectionPage* self) {
+static gboolean
+collection_page_can_revert_selected (CollectionPage* self)
+{
gboolean result = FALSE;
-#line 478 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE);
-#line 4142 "CollectionPage.c"
+#line 4405 "CollectionPage.c"
{
GeeList* _source_list = NULL;
ViewCollection* _tmp0_;
@@ -4150,31 +4413,31 @@ static gboolean collection_page_can_revert_selected (CollectionPage* self) {
gint _tmp5_;
gint _tmp6_;
gint _source_index = 0;
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _tmp0_;
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp2_ = view_collection_get_selected_sources (_tmp1_);
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp3_ = _tmp2_;
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp1_);
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_source_list = _tmp3_;
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp4_ = _source_list;
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp6_ = _tmp5_;
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_source_size = _tmp6_;
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_source_index = -1;
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
while (TRUE) {
-#line 4178 "CollectionPage.c"
+#line 4441 "CollectionPage.c"
gint _tmp7_;
gint _tmp8_;
gint _tmp9_;
@@ -4187,107 +4450,103 @@ static gboolean collection_page_can_revert_selected (CollectionPage* self) {
LibraryPhoto* _tmp14_;
gboolean _tmp15_ = FALSE;
LibraryPhoto* _tmp16_;
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp7_ = _source_index;
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_source_index = _tmp7_ + 1;
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp8_ = _source_index;
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp9_ = _source_size;
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (!(_tmp8_ < _tmp9_)) {
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
break;
-#line 4203 "CollectionPage.c"
+#line 4466 "CollectionPage.c"
}
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp10_ = _source_list;
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp11_ = _source_index;
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp12_ = gee_list_get (_tmp10_, _tmp11_);
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
source = (DataSource*) _tmp12_;
-#line 480 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp13_ = source;
-#line 480 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp13_) : NULL);
-#line 480 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala"
photo = _tmp14_;
-#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp16_ = photo;
-#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (_tmp16_ != NULL) {
-#line 4223 "CollectionPage.c"
+#line 4486 "CollectionPage.c"
gboolean _tmp17_ = FALSE;
LibraryPhoto* _tmp18_;
- gboolean _tmp19_;
-#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp18_ = photo;
-#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = photo_has_transformations (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PHOTO, Photo));
-#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp19_) {
-#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (photo_has_transformations (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PHOTO, Photo))) {
+#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp17_ = TRUE;
-#line 4235 "CollectionPage.c"
+#line 4495 "CollectionPage.c"
} else {
- LibraryPhoto* _tmp20_;
- gboolean _tmp21_;
-#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp20_ = photo;
-#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp21_ = photo_has_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PHOTO, Photo));
-#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = _tmp21_;
-#line 4245 "CollectionPage.c"
+ LibraryPhoto* _tmp19_;
+#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp19_ = photo;
+#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp17_ = photo_has_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_PHOTO, Photo));
+#line 4502 "CollectionPage.c"
}
-#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp15_ = _tmp17_;
-#line 4249 "CollectionPage.c"
+#line 4506 "CollectionPage.c"
} else {
-#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp15_ = FALSE;
-#line 4253 "CollectionPage.c"
+#line 4510 "CollectionPage.c"
}
-#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (_tmp15_) {
-#line 482 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 477 "/home/jens/Source/shotwell/src/CollectionPage.vala"
result = TRUE;
-#line 482 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 477 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photo);
-#line 482 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 477 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (source);
-#line 482 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 477 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (_source_list);
-#line 482 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 477 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 4267 "CollectionPage.c"
+#line 4524 "CollectionPage.c"
}
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photo);
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (source);
-#line 4273 "CollectionPage.c"
+#line 4530 "CollectionPage.c"
}
-#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (_source_list);
-#line 4277 "CollectionPage.c"
+#line 4534 "CollectionPage.c"
}
-#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 480 "/home/jens/Source/shotwell/src/CollectionPage.vala"
result = FALSE;
-#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 480 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 4283 "CollectionPage.c"
+#line 4540 "CollectionPage.c"
}
-static gboolean collection_page_can_revert_editable_selected (CollectionPage* self) {
+static gboolean
+collection_page_can_revert_editable_selected (CollectionPage* self)
+{
gboolean result = FALSE;
-#line 488 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE);
-#line 4291 "CollectionPage.c"
+#line 4550 "CollectionPage.c"
{
GeeList* _source_list = NULL;
ViewCollection* _tmp0_;
@@ -4299,31 +4558,31 @@ static gboolean collection_page_can_revert_editable_selected (CollectionPage* se
gint _tmp5_;
gint _tmp6_;
gint _source_index = 0;
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _tmp0_;
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp2_ = view_collection_get_selected_sources (_tmp1_);
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp3_ = _tmp2_;
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp1_);
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_source_list = _tmp3_;
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp4_ = _source_list;
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp6_ = _tmp5_;
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_source_size = _tmp6_;
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_source_index = -1;
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
while (TRUE) {
-#line 4327 "CollectionPage.c"
+#line 4586 "CollectionPage.c"
gint _tmp7_;
gint _tmp8_;
gint _tmp9_;
@@ -4336,1427 +4595,1401 @@ static gboolean collection_page_can_revert_editable_selected (CollectionPage* se
LibraryPhoto* _tmp14_;
gboolean _tmp15_ = FALSE;
LibraryPhoto* _tmp16_;
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp7_ = _source_index;
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_source_index = _tmp7_ + 1;
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp8_ = _source_index;
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp9_ = _source_size;
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (!(_tmp8_ < _tmp9_)) {
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
break;
-#line 4352 "CollectionPage.c"
+#line 4611 "CollectionPage.c"
}
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp10_ = _source_list;
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp11_ = _source_index;
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp12_ = gee_list_get (_tmp10_, _tmp11_);
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
source = (DataSource*) _tmp12_;
-#line 490 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp13_ = source;
-#line 490 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp13_) : NULL);
-#line 490 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala"
photo = _tmp14_;
-#line 491 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp16_ = photo;
-#line 491 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (_tmp16_ != NULL) {
-#line 4372 "CollectionPage.c"
+#line 4631 "CollectionPage.c"
LibraryPhoto* _tmp17_;
- gboolean _tmp18_;
-#line 491 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp17_ = photo;
-#line 491 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = photo_has_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PHOTO, Photo));
-#line 491 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = _tmp18_;
-#line 4381 "CollectionPage.c"
+#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp15_ = photo_has_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PHOTO, Photo));
+#line 4637 "CollectionPage.c"
} else {
-#line 491 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp15_ = FALSE;
-#line 4385 "CollectionPage.c"
+#line 4641 "CollectionPage.c"
}
-#line 491 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (_tmp15_) {
-#line 492 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 487 "/home/jens/Source/shotwell/src/CollectionPage.vala"
result = TRUE;
-#line 492 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 487 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photo);
-#line 492 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 487 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (source);
-#line 492 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 487 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (_source_list);
-#line 492 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 487 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 4399 "CollectionPage.c"
+#line 4655 "CollectionPage.c"
}
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photo);
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (source);
-#line 4405 "CollectionPage.c"
+#line 4661 "CollectionPage.c"
}
-#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (_source_list);
-#line 4409 "CollectionPage.c"
+#line 4665 "CollectionPage.c"
}
-#line 495 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 490 "/home/jens/Source/shotwell/src/CollectionPage.vala"
result = FALSE;
-#line 495 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 490 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 4415 "CollectionPage.c"
+#line 4671 "CollectionPage.c"
}
-static void collection_page_on_rotate_clockwise (CollectionPage* self) {
+static void
+collection_page_on_rotate_clockwise (CollectionPage* self)
+{
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
- gint _tmp2_;
- gboolean _tmp3_;
+ gboolean _tmp2_;
RotateMultipleCommand* command = NULL;
+ ViewCollection* _tmp3_;
ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
+ GeeList* _tmp5_;
GeeList* _tmp6_;
- GeeList* _tmp7_;
+ RotateMultipleCommand* _tmp7_;
RotateMultipleCommand* _tmp8_;
- RotateMultipleCommand* _tmp9_;
+ CommandManager* _tmp9_;
CommandManager* _tmp10_;
- CommandManager* _tmp11_;
- RotateMultipleCommand* _tmp12_;
-#line 498 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ RotateMultipleCommand* _tmp11_;
+#line 493 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 499 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 494 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 499 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 494 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _tmp0_;
-#line 499 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_);
-#line 499 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_ == 0;
-#line 499 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 494 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
+#line 494 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp1_);
-#line 499 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp3_) {
-#line 500 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 494 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp2_) {
+#line 495 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 4450 "CollectionPage.c"
+#line 4705 "CollectionPage.c"
}
-#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _tmp4_;
-#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = view_collection_get_selected (_tmp5_);
-#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _tmp6_;
-#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_CLOCKWISE, RESOURCES_ROTATE_CW_FULL_LABEL, RESOURCES_ROTATE_CW_TOOLTIP, _ ("Rotating"), _ ("Undoing Rotate"));
-#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = _tmp8_;
-#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command = _tmp9_;
-#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = _tmp10_;
-#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = command;
-#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command));
-#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _command_manager_unref0 (_tmp11_);
-#line 498 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp4_ = _tmp3_;
+#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp5_ = view_collection_get_selected (_tmp4_);
+#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp6_ = _tmp5_;
+#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp7_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_CLOCKWISE, RESOURCES_ROTATE_CW_FULL_LABEL, RESOURCES_ROTATE_CW_TOOLTIP, _ ("Rotating"), _ ("Undoing Rotate"));
+#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp8_ = _tmp7_;
+#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp6_);
+#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp4_);
+#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ command = _tmp8_;
+#line 500 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 500 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp10_ = _tmp9_;
+#line 500 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp11_ = command;
+#line 500 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command));
+#line 500 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _command_manager_unref0 (_tmp10_);
+#line 493 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (command);
-#line 4482 "CollectionPage.c"
+#line 4737 "CollectionPage.c"
}
-static void collection_page_on_publish (CollectionPage* self) {
+static void
+collection_page_on_publish (CollectionPage* self)
+{
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
- gint _tmp2_;
- gboolean _tmp3_;
-#line 508 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ gboolean _tmp2_;
+#line 503 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _tmp0_;
-#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_);
-#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_ > 0;
-#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp2_ = view_collection_get_selected_count (_tmp1_) > 0;
+#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp1_);
-#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp3_) {
-#line 4505 "CollectionPage.c"
+#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp2_) {
+#line 4759 "CollectionPage.c"
+ ViewCollection* _tmp3_;
ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
- GeeList* _tmp6_;
- GeeCollection* _tmp7_;
-#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _tmp4_;
-#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = view_collection_get_selected_sources (_tmp5_);
-#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- publishing_ui_publishing_dialog_go (_tmp7_);
-#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 4524 "CollectionPage.c"
+ GeeList* _tmp5_;
+ GeeCollection* _tmp6_;
+#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp4_ = _tmp3_;
+#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp5_ = view_collection_get_selected_sources (_tmp4_);
+#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection);
+#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ publishing_ui_publishing_dialog_go (_tmp6_);
+#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp6_);
+#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp4_);
+#line 4778 "CollectionPage.c"
}
}
-static void collection_page_on_rotate_counterclockwise (CollectionPage* self) {
+static void
+collection_page_on_rotate_counterclockwise (CollectionPage* self)
+{
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
- gint _tmp2_;
- gboolean _tmp3_;
+ gboolean _tmp2_;
RotateMultipleCommand* command = NULL;
+ ViewCollection* _tmp3_;
ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
+ GeeList* _tmp5_;
GeeList* _tmp6_;
- GeeList* _tmp7_;
+ RotateMultipleCommand* _tmp7_;
RotateMultipleCommand* _tmp8_;
- RotateMultipleCommand* _tmp9_;
+ CommandManager* _tmp9_;
CommandManager* _tmp10_;
- CommandManager* _tmp11_;
- RotateMultipleCommand* _tmp12_;
-#line 514 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ RotateMultipleCommand* _tmp11_;
+#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _tmp0_;
-#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_);
-#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_ == 0;
-#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
+#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp1_);
-#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp3_) {
-#line 516 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp2_) {
+#line 511 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 4560 "CollectionPage.c"
+#line 4813 "CollectionPage.c"
}
-#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _tmp4_;
-#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = view_collection_get_selected (_tmp5_);
-#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _tmp6_;
-#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_COUNTERCLOCKWISE, RESOURCES_ROTATE_CCW_FULL_LABEL, RESOURCES_ROTATE_CCW_TOOLTIP, _ ("Rotating"), _ ("Undoing Rotate"));
-#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = _tmp8_;
-#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command = _tmp9_;
-#line 521 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 521 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = _tmp10_;
-#line 521 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = command;
-#line 521 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command));
-#line 521 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _command_manager_unref0 (_tmp11_);
-#line 514 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp4_ = _tmp3_;
+#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp5_ = view_collection_get_selected (_tmp4_);
+#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp6_ = _tmp5_;
+#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp7_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_COUNTERCLOCKWISE, RESOURCES_ROTATE_CCW_FULL_LABEL, RESOURCES_ROTATE_CCW_TOOLTIP, _ ("Rotating"), _ ("Undoing Rotate"));
+#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp8_ = _tmp7_;
+#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp6_);
+#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp4_);
+#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ command = _tmp8_;
+#line 516 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 516 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp10_ = _tmp9_;
+#line 516 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp11_ = command;
+#line 516 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command));
+#line 516 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _command_manager_unref0 (_tmp10_);
+#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (command);
-#line 4592 "CollectionPage.c"
+#line 4845 "CollectionPage.c"
}
-static void collection_page_on_flip_horizontally (CollectionPage* self) {
+static void
+collection_page_on_flip_horizontally (CollectionPage* self)
+{
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
- gint _tmp2_;
- gboolean _tmp3_;
+ gboolean _tmp2_;
RotateMultipleCommand* command = NULL;
+ ViewCollection* _tmp3_;
ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
+ GeeList* _tmp5_;
GeeList* _tmp6_;
- GeeList* _tmp7_;
+ RotateMultipleCommand* _tmp7_;
RotateMultipleCommand* _tmp8_;
- RotateMultipleCommand* _tmp9_;
+ CommandManager* _tmp9_;
CommandManager* _tmp10_;
- CommandManager* _tmp11_;
- RotateMultipleCommand* _tmp12_;
-#line 524 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ RotateMultipleCommand* _tmp11_;
+#line 519 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 520 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 520 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _tmp0_;
-#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_);
-#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_ == 0;
-#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 520 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
+#line 520 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp1_);
-#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp3_) {
-#line 526 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 520 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp2_) {
+#line 521 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 4627 "CollectionPage.c"
+#line 4879 "CollectionPage.c"
}
-#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _tmp4_;
-#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = view_collection_get_selected (_tmp5_);
-#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _tmp6_;
-#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_MIRROR, RESOURCES_HFLIP_LABEL, "", _ ("Flipping Horizontally"), _ ("Undoing Flip Horizontally"));
-#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = _tmp8_;
-#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command = _tmp9_;
-#line 531 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 531 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = _tmp10_;
-#line 531 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = command;
-#line 531 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command));
-#line 531 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _command_manager_unref0 (_tmp11_);
-#line 524 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp4_ = _tmp3_;
+#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp5_ = view_collection_get_selected (_tmp4_);
+#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp6_ = _tmp5_;
+#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp7_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_MIRROR, RESOURCES_HFLIP_LABEL, "", _ ("Flipping Horizontally"), _ ("Undoing Flip Horizontally"));
+#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp8_ = _tmp7_;
+#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp6_);
+#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp4_);
+#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ command = _tmp8_;
+#line 526 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 526 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp10_ = _tmp9_;
+#line 526 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp11_ = command;
+#line 526 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command));
+#line 526 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _command_manager_unref0 (_tmp10_);
+#line 519 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (command);
-#line 4659 "CollectionPage.c"
+#line 4911 "CollectionPage.c"
}
-static void collection_page_on_flip_vertically (CollectionPage* self) {
+static void
+collection_page_on_flip_vertically (CollectionPage* self)
+{
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
- gint _tmp2_;
- gboolean _tmp3_;
+ gboolean _tmp2_;
RotateMultipleCommand* command = NULL;
+ ViewCollection* _tmp3_;
ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
+ GeeList* _tmp5_;
GeeList* _tmp6_;
- GeeList* _tmp7_;
+ RotateMultipleCommand* _tmp7_;
RotateMultipleCommand* _tmp8_;
- RotateMultipleCommand* _tmp9_;
+ CommandManager* _tmp9_;
CommandManager* _tmp10_;
- CommandManager* _tmp11_;
- RotateMultipleCommand* _tmp12_;
-#line 534 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ RotateMultipleCommand* _tmp11_;
+#line 529 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 530 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 530 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _tmp0_;
-#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_);
-#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_ == 0;
-#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 530 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
+#line 530 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp1_);
-#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp3_) {
-#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 530 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp2_) {
+#line 531 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 4694 "CollectionPage.c"
+#line 4945 "CollectionPage.c"
}
-#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _tmp4_;
-#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = view_collection_get_selected (_tmp5_);
-#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _tmp6_;
-#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_UPSIDE_DOWN, RESOURCES_VFLIP_LABEL, "", _ ("Flipping Vertically"), _ ("Undoing Flip Vertically"));
-#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = _tmp8_;
-#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command = _tmp9_;
-#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = _tmp10_;
-#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = command;
-#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command));
-#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _command_manager_unref0 (_tmp11_);
-#line 534 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp4_ = _tmp3_;
+#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp5_ = view_collection_get_selected (_tmp4_);
+#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp6_ = _tmp5_;
+#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp7_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_UPSIDE_DOWN, RESOURCES_VFLIP_LABEL, "", _ ("Flipping Vertically"), _ ("Undoing Flip Vertically"));
+#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp8_ = _tmp7_;
+#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp6_);
+#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp4_);
+#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ command = _tmp8_;
+#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp10_ = _tmp9_;
+#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp11_ = command;
+#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command));
+#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _command_manager_unref0 (_tmp10_);
+#line 529 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (command);
-#line 4726 "CollectionPage.c"
+#line 4977 "CollectionPage.c"
}
-static void collection_page_on_revert (CollectionPage* self) {
+static void
+collection_page_on_revert (CollectionPage* self)
+{
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
- gint _tmp2_;
- gboolean _tmp3_;
- gboolean _tmp4_;
+ gboolean _tmp2_;
RevertMultipleCommand* command = NULL;
- ViewCollection* _tmp27_;
- ViewCollection* _tmp28_;
- GeeList* _tmp29_;
- GeeList* _tmp30_;
- RevertMultipleCommand* _tmp31_;
+ ViewCollection* _tmp24_;
+ ViewCollection* _tmp25_;
+ GeeList* _tmp26_;
+ GeeList* _tmp27_;
+ RevertMultipleCommand* _tmp28_;
+ RevertMultipleCommand* _tmp29_;
+ CommandManager* _tmp30_;
+ CommandManager* _tmp31_;
RevertMultipleCommand* _tmp32_;
- CommandManager* _tmp33_;
- CommandManager* _tmp34_;
- RevertMultipleCommand* _tmp35_;
-#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 539 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 540 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 540 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _tmp0_;
-#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_);
-#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_ == 0;
-#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 540 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
+#line 540 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp1_);
-#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp3_) {
-#line 546 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 540 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp2_) {
+#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 4762 "CollectionPage.c"
+#line 5011 "CollectionPage.c"
}
-#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = collection_page_can_revert_editable_selected (self);
-#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp4_) {
-#line 4768 "CollectionPage.c"
- AppWindow* _tmp5_;
- AppWindow* _tmp6_;
- ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
- GeeList* _tmp9_;
- GeeCollection* _tmp10_;
- gboolean _tmp11_;
- gboolean _tmp12_;
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = app_window_get_instance ();
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 543 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (collection_page_can_revert_editable_selected (self)) {
+#line 5015 "CollectionPage.c"
+ AppWindow* _tmp3_;
+ AppWindow* _tmp4_;
+ ViewCollection* _tmp5_;
+ ViewCollection* _tmp6_;
+ GeeList* _tmp7_;
+ GeeCollection* _tmp8_;
+ gboolean _tmp9_;
+#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = app_window_get_instance ();
+#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp4_ = _tmp3_;
+#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp6_ = _tmp5_;
+#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp7_ = view_collection_get_selected_sources (_tmp6_);
+#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection);
+#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp9_ = !revert_editable_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow), _tmp8_);
+#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp8_);
+#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp6_);
+#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp4_);
+#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp9_) {
+#line 546 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ return;
+#line 5047 "CollectionPage.c"
+ }
+ {
+ GeeList* _object_list = NULL;
+ ViewCollection* _tmp10_;
+ ViewCollection* _tmp11_;
+ GeeList* _tmp12_;
+ GeeList* _tmp13_;
+ gint _object_size = 0;
+ GeeList* _tmp14_;
+ gint _tmp15_;
+ gint _tmp16_;
+ gint _object_index = 0;
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = _tmp7_;
+ _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = view_collection_get_selected_sources (_tmp8_);
+ _tmp11_ = _tmp10_;
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection);
+ _tmp12_ = view_collection_get_selected_sources (_tmp11_);
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = revert_editable_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow), _tmp10_);
+ _tmp13_ = _tmp12_;
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = !_tmp11_;
+ _data_collection_unref0 (_tmp11_);
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp10_);
+ _object_list = _tmp13_;
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp8_);
+ _tmp14_ = _object_list;
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp6_);
+ _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection));
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp12_) {
-#line 551 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 4803 "CollectionPage.c"
- }
- {
- GeeList* _object_list = NULL;
- ViewCollection* _tmp13_;
- ViewCollection* _tmp14_;
- GeeList* _tmp15_;
- GeeList* _tmp16_;
- gint _object_size = 0;
- GeeList* _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
- gint _object_index = 0;
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = _tmp13_;
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = view_collection_get_selected_sources (_tmp14_);
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp16_ = _tmp15_;
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp14_);
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _object_list = _tmp16_;
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = _object_list;
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = _tmp18_;
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _object_size = _tmp19_;
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _object_size = _tmp16_;
+#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_object_index = -1;
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
while (TRUE) {
-#line 4840 "CollectionPage.c"
- gint _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
+#line 5084 "CollectionPage.c"
+ gint _tmp17_;
+ gint _tmp18_;
+ gint _tmp19_;
DataObject* object = NULL;
- GeeList* _tmp23_;
- gint _tmp24_;
- gpointer _tmp25_;
- DataObject* _tmp26_;
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp20_ = _object_index;
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _object_index = _tmp20_ + 1;
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp21_ = _object_index;
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp22_ = _object_size;
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!(_tmp21_ < _tmp22_)) {
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ GeeList* _tmp20_;
+ gint _tmp21_;
+ gpointer _tmp22_;
+ DataObject* _tmp23_;
+#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp17_ = _object_index;
+#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _object_index = _tmp17_ + 1;
+#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp18_ = _object_index;
+#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp19_ = _object_size;
+#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (!(_tmp18_ < _tmp19_)) {
+#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
break;
-#line 4861 "CollectionPage.c"
+#line 5105 "CollectionPage.c"
}
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp23_ = _object_list;
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp24_ = _object_index;
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp25_ = gee_list_get (_tmp23_, _tmp24_);
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- object = G_TYPE_CHECK_INSTANCE_CAST ((DataSource*) _tmp25_, TYPE_DATA_OBJECT, DataObject);
-#line 555 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp26_ = object;
-#line 555 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo_revert_to_master (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_PHOTO, Photo), TRUE);
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp20_ = _object_list;
+#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp21_ = _object_index;
+#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp22_ = gee_list_get (_tmp20_, _tmp21_);
+#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ object = G_TYPE_CHECK_INSTANCE_CAST ((DataSource*) _tmp22_, TYPE_DATA_OBJECT, DataObject);
+#line 550 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp23_ = object;
+#line 550 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ photo_revert_to_master (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_PHOTO, Photo), TRUE);
+#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (object);
-#line 4877 "CollectionPage.c"
+#line 5121 "CollectionPage.c"
}
-#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (_object_list);
-#line 4881 "CollectionPage.c"
+#line 5125 "CollectionPage.c"
}
}
-#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp27_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp28_ = _tmp27_;
-#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp29_ = view_collection_get_selected (_tmp28_);
-#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp30_ = _tmp29_;
-#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp31_ = revert_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp32_ = _tmp31_;
-#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp30_);
-#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp28_);
-#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command = _tmp32_;
-#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp33_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp34_ = _tmp33_;
-#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp35_ = command;
-#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command_manager_execute (_tmp34_, G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_COMMAND, Command));
-#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _command_manager_unref0 (_tmp34_);
-#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp24_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp25_ = _tmp24_;
+#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp26_ = view_collection_get_selected (_tmp25_);
+#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp27_ = _tmp26_;
+#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp28_ = revert_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp29_ = _tmp28_;
+#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp27_);
+#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp25_);
+#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ command = _tmp29_;
+#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp30_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp31_ = _tmp30_;
+#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp32_ = command;
+#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ command_manager_execute (_tmp31_, G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_COMMAND, Command));
+#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _command_manager_unref0 (_tmp31_);
+#line 539 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (command);
-#line 4914 "CollectionPage.c"
+#line 5158 "CollectionPage.c"
}
-void collection_page_on_copy_adjustments (CollectionPage* self) {
+void
+collection_page_on_copy_adjustments (CollectionPage* self)
+{
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
- gint _tmp2_;
- gboolean _tmp3_;
+ gboolean _tmp2_;
Photo* photo = NULL;
+ ViewCollection* _tmp3_;
ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
+ DataView* _tmp5_;
DataView* _tmp6_;
- DataView* _tmp7_;
- DataSource* _tmp8_;
+ DataSource* _tmp7_;
+ Photo* _tmp8_;
Photo* _tmp9_;
- Photo* _tmp10_;
+ PixelTransformationBundle* _tmp10_;
PixelTransformationBundle* _tmp11_;
- PixelTransformationBundle* _tmp12_;
-#line 562 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 557 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 563 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 563 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _tmp0_;
-#line 563 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_);
-#line 563 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_ != 1;
-#line 563 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1;
+#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp1_);
-#line 563 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp3_) {
-#line 564 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp2_) {
+#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 4949 "CollectionPage.c"
+#line 5192 "CollectionPage.c"
}
-#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _tmp4_;
-#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = view_collection_get_selected_at (_tmp5_, 0);
-#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _tmp6_;
-#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = data_view_get_source (_tmp7_);
-#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PHOTO, Photo);
-#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo = _tmp9_;
-#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = photo;
-#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = photo_get_color_adjustments (_tmp10_);
-#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = _tmp11_;
-#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- pixel_transformation_bundle_set_copied_color_adjustments (_tmp12_);
-#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _pixel_transformation_bundle_unref0 (_tmp12_);
-#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PasteColorAdjustments", TRUE);
+#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp4_ = _tmp3_;
+#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp5_ = view_collection_get_selected_at (_tmp4_, 0);
+#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp6_ = _tmp5_;
+#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp7_ = data_view_get_source (_tmp6_);
+#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO, Photo);
+#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp6_);
+#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp4_);
+#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ photo = _tmp8_;
+#line 561 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp9_ = photo;
+#line 561 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp10_ = photo_get_color_adjustments (_tmp9_);
+#line 561 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp11_ = _tmp10_;
+#line 561 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ pixel_transformation_bundle_set_copied_color_adjustments (_tmp11_);
+#line 561 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _pixel_transformation_bundle_unref0 (_tmp11_);
#line 562 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PasteColorAdjustments", TRUE);
+#line 557 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photo);
-#line 4983 "CollectionPage.c"
+#line 5226 "CollectionPage.c"
}
-void collection_page_on_paste_adjustments (CollectionPage* self) {
+void
+collection_page_on_paste_adjustments (CollectionPage* self)
+{
PixelTransformationBundle* copied_adjustments = NULL;
PixelTransformationBundle* _tmp0_;
gboolean _tmp1_ = FALSE;
ViewCollection* _tmp2_;
ViewCollection* _tmp3_;
- gint _tmp4_;
- gboolean _tmp5_;
+ gboolean _tmp4_;
AdjustColorsMultipleCommand* command = NULL;
+ ViewCollection* _tmp6_;
ViewCollection* _tmp7_;
- ViewCollection* _tmp8_;
+ GeeList* _tmp8_;
GeeList* _tmp9_;
- GeeList* _tmp10_;
- PixelTransformationBundle* _tmp11_;
+ PixelTransformationBundle* _tmp10_;
+ AdjustColorsMultipleCommand* _tmp11_;
AdjustColorsMultipleCommand* _tmp12_;
- AdjustColorsMultipleCommand* _tmp13_;
+ CommandManager* _tmp13_;
CommandManager* _tmp14_;
- CommandManager* _tmp15_;
- AdjustColorsMultipleCommand* _tmp16_;
-#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ AdjustColorsMultipleCommand* _tmp15_;
+#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 571 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = pixel_transformation_bundle_get_copied_color_adjustments ();
-#line 571 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala"
copied_adjustments = _tmp0_;
-#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp3_ = _tmp2_;
-#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = view_collection_get_selected_count (_tmp3_);
-#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _tmp4_ == 0;
-#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp4_ = view_collection_get_selected_count (_tmp3_) == 0;
+#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp3_);
-#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp5_) {
-#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp4_) {
+#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = TRUE;
-#line 5026 "CollectionPage.c"
+#line 5268 "CollectionPage.c"
} else {
- PixelTransformationBundle* _tmp6_;
-#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = copied_adjustments;
-#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp1_ = _tmp6_ == NULL;
-#line 5033 "CollectionPage.c"
+ PixelTransformationBundle* _tmp5_;
+#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp5_ = copied_adjustments;
+#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp1_ = _tmp5_ == NULL;
+#line 5275 "CollectionPage.c"
}
-#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (_tmp1_) {
-#line 573 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 568 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_pixel_transformation_bundle_unref0 (copied_adjustments);
-#line 573 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 568 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 5041 "CollectionPage.c"
+#line 5283 "CollectionPage.c"
}
-#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = _tmp7_;
-#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = view_collection_get_selected (_tmp8_);
-#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = _tmp9_;
-#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = copied_adjustments;
-#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = adjust_colors_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable), _tmp11_, RESOURCES_PASTE_ADJUSTMENTS_LABEL, RESOURCES_PASTE_ADJUSTMENTS_TOOLTIP);
-#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = _tmp12_;
-#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp10_);
-#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp8_);
-#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command = _tmp13_;
-#line 577 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 577 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = _tmp14_;
-#line 577 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = command;
-#line 577 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command_manager_execute (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_COMMAND, Command));
-#line 577 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _command_manager_unref0 (_tmp15_);
#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (command);
+ _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp7_ = _tmp6_;
+#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp8_ = view_collection_get_selected (_tmp7_);
#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp9_ = _tmp8_;
+#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp10_ = copied_adjustments;
+#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp11_ = adjust_colors_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable), _tmp10_, RESOURCES_PASTE_ADJUSTMENTS_LABEL, RESOURCES_PASTE_ADJUSTMENTS_TOOLTIP);
+#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp12_ = _tmp11_;
+#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp9_);
+#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp7_);
+#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ command = _tmp12_;
+#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp13_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp14_ = _tmp13_;
+#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp15_ = command;
+#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ command_manager_execute (_tmp14_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_COMMAND, Command));
+#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _command_manager_unref0 (_tmp14_);
+#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (command);
+#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_pixel_transformation_bundle_unref0 (copied_adjustments);
-#line 5077 "CollectionPage.c"
+#line 5319 "CollectionPage.c"
}
-static void collection_page_on_enhance (CollectionPage* self) {
+static void
+collection_page_on_enhance (CollectionPage* self)
+{
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
- gint _tmp2_;
- gboolean _tmp3_;
+ gboolean _tmp2_;
EnhanceMultipleCommand* command = NULL;
+ ViewCollection* _tmp3_;
ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
+ GeeList* _tmp5_;
GeeList* _tmp6_;
- GeeList* _tmp7_;
+ EnhanceMultipleCommand* _tmp7_;
EnhanceMultipleCommand* _tmp8_;
- EnhanceMultipleCommand* _tmp9_;
+ CommandManager* _tmp9_;
CommandManager* _tmp10_;
- CommandManager* _tmp11_;
- EnhanceMultipleCommand* _tmp12_;
-#line 580 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ EnhanceMultipleCommand* _tmp11_;
+#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 581 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 581 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _tmp0_;
-#line 581 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_);
-#line 581 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_ == 0;
-#line 581 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
+#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp1_);
-#line 581 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp3_) {
-#line 582 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp2_) {
+#line 577 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 5112 "CollectionPage.c"
+#line 5353 "CollectionPage.c"
}
-#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _tmp4_;
-#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = view_collection_get_selected (_tmp5_);
-#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _tmp6_;
-#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = enhance_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = _tmp8_;
-#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command = _tmp9_;
-#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = _tmp10_;
-#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = command;
-#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command));
-#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _command_manager_unref0 (_tmp11_);
+#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp4_ = _tmp3_;
+#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp5_ = view_collection_get_selected (_tmp4_);
+#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp6_ = _tmp5_;
+#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp7_ = enhance_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp8_ = _tmp7_;
+#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp6_);
+#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp4_);
+#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ command = _tmp8_;
+#line 580 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 580 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp10_ = _tmp9_;
+#line 580 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp11_ = command;
+#line 580 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command));
+#line 580 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _command_manager_unref0 (_tmp10_);
+#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (command);
-#line 5144 "CollectionPage.c"
+#line 5385 "CollectionPage.c"
}
-static void collection_page_on_duplicate_photo (CollectionPage* self) {
+static void
+collection_page_on_duplicate_photo (CollectionPage* self)
+{
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
- gint _tmp2_;
- gboolean _tmp3_;
+ gboolean _tmp2_;
DuplicateMultiplePhotosCommand* command = NULL;
+ ViewCollection* _tmp3_;
ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
+ GeeList* _tmp5_;
GeeList* _tmp6_;
- GeeList* _tmp7_;
+ DuplicateMultiplePhotosCommand* _tmp7_;
DuplicateMultiplePhotosCommand* _tmp8_;
- DuplicateMultiplePhotosCommand* _tmp9_;
+ CommandManager* _tmp9_;
CommandManager* _tmp10_;
- CommandManager* _tmp11_;
- DuplicateMultiplePhotosCommand* _tmp12_;
-#line 588 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ DuplicateMultiplePhotosCommand* _tmp11_;
+#line 583 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _tmp0_;
+#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
+#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp1_);
+#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp2_) {
+#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ return;
+#line 5419 "CollectionPage.c"
+ }
+#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp4_ = _tmp3_;
+#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp5_ = view_collection_get_selected (_tmp4_);
+#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp6_ = _tmp5_;
+#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp7_ = duplicate_multiple_photos_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp8_ = _tmp7_;
+#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp6_);
+#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp4_);
+#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ command = _tmp8_;
#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_);
+ _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_ == 0;
+ _tmp10_ = _tmp9_;
#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
+ _tmp11_ = command;
#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp3_) {
-#line 590 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 5179 "CollectionPage.c"
- }
-#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _tmp4_;
-#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = view_collection_get_selected (_tmp5_);
-#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _tmp6_;
-#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = duplicate_multiple_photos_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = _tmp8_;
-#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command = _tmp9_;
-#line 594 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 594 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = _tmp10_;
-#line 594 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = command;
-#line 594 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command));
-#line 594 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _command_manager_unref0 (_tmp11_);
-#line 588 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command));
+#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _command_manager_unref0 (_tmp10_);
+#line 583 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (command);
-#line 5211 "CollectionPage.c"
+#line 5451 "CollectionPage.c"
}
-static void collection_page_on_adjust_date_time (CollectionPage* self) {
+static void
+collection_page_on_adjust_date_time (CollectionPage* self)
+{
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
- gint _tmp2_;
- gboolean _tmp3_;
+ gboolean _tmp2_;
gboolean selected_has_videos = FALSE;
gboolean only_videos_selected = FALSE;
Dateable* photo_source = NULL;
+ ViewCollection* _tmp20_;
ViewCollection* _tmp21_;
- ViewCollection* _tmp22_;
+ DataView* _tmp22_;
DataView* _tmp23_;
- DataView* _tmp24_;
- DataSource* _tmp25_;
- Dateable* _tmp26_;
+ DataSource* _tmp24_;
+ Dateable* _tmp25_;
AdjustDateTimeDialog* dialog = NULL;
- Dateable* _tmp27_;
+ Dateable* _tmp26_;
+ ViewCollection* _tmp27_;
ViewCollection* _tmp28_;
- ViewCollection* _tmp29_;
- gint _tmp30_;
- gboolean _tmp31_;
- gboolean _tmp32_;
- AdjustDateTimeDialog* _tmp33_;
- AdjustDateTimeDialog* _tmp34_;
+ gboolean _tmp29_;
+ gboolean _tmp30_;
+ AdjustDateTimeDialog* _tmp31_;
+ AdjustDateTimeDialog* _tmp32_;
gint64 time_shift = 0LL;
gboolean keep_relativity = FALSE;
gboolean modify_originals = FALSE;
- AdjustDateTimeDialog* _tmp35_;
- gint64 _tmp36_ = 0LL;
- gboolean _tmp37_ = FALSE;
- gboolean _tmp38_ = FALSE;
- gboolean _tmp39_;
-#line 597 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ AdjustDateTimeDialog* _tmp33_;
+ gint64 _tmp34_ = 0LL;
+ gboolean _tmp35_ = FALSE;
+ gboolean _tmp36_ = FALSE;
+ gboolean _tmp37_;
+#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 593 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 593 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _tmp0_;
-#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_);
-#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_ == 0;
-#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 593 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0;
+#line 593 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp1_);
-#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp3_) {
-#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 593 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp2_) {
+#line 594 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 5262 "CollectionPage.c"
+#line 5500 "CollectionPage.c"
}
-#line 601 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 596 "/home/jens/Source/shotwell/src/CollectionPage.vala"
selected_has_videos = FALSE;
-#line 602 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 597 "/home/jens/Source/shotwell/src/CollectionPage.vala"
only_videos_selected = TRUE;
-#line 5268 "CollectionPage.c"
+#line 5506 "CollectionPage.c"
{
GeeList* _dv_list = NULL;
+ ViewCollection* _tmp3_;
ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
+ GeeList* _tmp5_;
GeeList* _tmp6_;
- GeeList* _tmp7_;
gint _dv_size = 0;
- GeeList* _tmp8_;
+ GeeList* _tmp7_;
+ gint _tmp8_;
gint _tmp9_;
- gint _tmp10_;
gint _dv_index = 0;
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _tmp4_;
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = view_collection_get_selected (_tmp5_);
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _tmp6_;
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _dv_list = _tmp7_;
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = _dv_list;
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = _tmp9_;
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _dv_size = _tmp10_;
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp4_ = _tmp3_;
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp5_ = view_collection_get_selected (_tmp4_);
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp6_ = _tmp5_;
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp4_);
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _dv_list = _tmp6_;
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp7_ = _dv_list;
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp9_ = _tmp8_;
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _dv_size = _tmp9_;
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_dv_index = -1;
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
while (TRUE) {
-#line 5304 "CollectionPage.c"
+#line 5542 "CollectionPage.c"
+ gint _tmp10_;
gint _tmp11_;
gint _tmp12_;
- gint _tmp13_;
DataView* dv = NULL;
- GeeList* _tmp14_;
- gint _tmp15_;
- gpointer _tmp16_;
- DataView* _tmp17_;
+ GeeList* _tmp13_;
+ gint _tmp14_;
+ gpointer _tmp15_;
+ DataView* _tmp16_;
+ DataSource* _tmp17_;
DataSource* _tmp18_;
- DataSource* _tmp19_;
- gboolean _tmp20_;
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ gboolean _tmp19_;
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp10_ = _dv_index;
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _dv_index = _tmp10_ + 1;
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp11_ = _dv_index;
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _dv_index = _tmp11_ + 1;
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = _dv_index;
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = _dv_size;
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (!(_tmp12_ < _tmp13_)) {
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp12_ = _dv_size;
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (!(_tmp11_ < _tmp12_)) {
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
break;
-#line 5328 "CollectionPage.c"
+#line 5566 "CollectionPage.c"
}
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = _dv_list;
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = _dv_index;
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = gee_list_get (_tmp14_, _tmp15_);
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- dv = (DataView*) _tmp16_;
-#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = dv;
-#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = data_view_get_source (_tmp17_);
-#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = _tmp18_;
-#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp20_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_VIDEO);
-#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp19_);
-#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp20_) {
-#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp13_ = _dv_list;
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp14_ = _dv_index;
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp15_ = gee_list_get (_tmp13_, _tmp14_);
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ dv = (DataView*) _tmp15_;
+#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp16_ = dv;
+#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp17_ = data_view_get_source (_tmp16_);
+#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp18_ = _tmp17_;
+#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp19_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, TYPE_VIDEO);
+#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp18_);
+#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp19_) {
+#line 601 "/home/jens/Source/shotwell/src/CollectionPage.vala"
selected_has_videos = TRUE;
-#line 5352 "CollectionPage.c"
+#line 5590 "CollectionPage.c"
} else {
-#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 603 "/home/jens/Source/shotwell/src/CollectionPage.vala"
only_videos_selected = FALSE;
-#line 5356 "CollectionPage.c"
+#line 5594 "CollectionPage.c"
}
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (dv);
-#line 5360 "CollectionPage.c"
+#line 5598 "CollectionPage.c"
}
-#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (_dv_list);
-#line 5364 "CollectionPage.c"
+#line 5602 "CollectionPage.c"
}
-#line 611 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp21_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 611 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp22_ = _tmp21_;
-#line 611 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp23_ = view_collection_get_selected_at (_tmp22_, 0);
-#line 611 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp24_ = _tmp23_;
-#line 611 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp25_ = data_view_get_source (_tmp24_);
-#line 611 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp26_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATEABLE, Dateable);
-#line 611 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp24_);
-#line 611 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp22_);
-#line 611 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo_source = _tmp26_;
-#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp27_ = photo_source;
-#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp28_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp29_ = _tmp28_;
-#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp30_ = view_collection_get_selected_count (_tmp29_);
-#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp31_ = selected_has_videos;
+#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp20_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp21_ = _tmp20_;
+#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp22_ = view_collection_get_selected_at (_tmp21_, 0);
+#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp23_ = _tmp22_;
+#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp24_ = data_view_get_source (_tmp23_);
+#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp25_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATEABLE, Dateable);
+#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp23_);
+#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp21_);
+#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ photo_source = _tmp25_;
+#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp26_ = photo_source;
+#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp27_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp28_ = _tmp27_;
+#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp29_ = selected_has_videos;
+#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp30_ = only_videos_selected;
+#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp31_ = adjust_date_time_dialog_new (_tmp26_, view_collection_get_selected_count (_tmp28_), TRUE, _tmp29_, _tmp30_);
+#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ g_object_ref_sink (_tmp31_);
+#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp32_ = _tmp31_;
+#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp28_);
+#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ dialog = _tmp32_;
#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp32_ = only_videos_selected;
+ _tmp33_ = dialog;
#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp33_ = adjust_date_time_dialog_new (_tmp27_, _tmp30_, TRUE, _tmp31_, _tmp32_);
+ _tmp37_ = adjust_date_time_dialog_execute (_tmp33_, &_tmp34_, &_tmp35_, &_tmp36_);
#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_object_ref_sink (_tmp33_);
+ time_shift = _tmp34_;
#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp34_ = _tmp33_;
+ keep_relativity = _tmp35_;
#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp29_);
+ modify_originals = _tmp36_;
#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- dialog = _tmp34_;
-#line 618 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp35_ = dialog;
-#line 618 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp39_ = adjust_date_time_dialog_execute (_tmp35_, &_tmp36_, &_tmp37_, &_tmp38_);
-#line 618 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- time_shift = _tmp36_;
-#line 618 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- keep_relativity = _tmp37_;
-#line 618 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- modify_originals = _tmp38_;
-#line 618 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp39_) {
-#line 5418 "CollectionPage.c"
+ if (_tmp37_) {
+#line 5654 "CollectionPage.c"
AdjustDateTimePhotosCommand* command = NULL;
- ViewCollection* _tmp40_;
- ViewCollection* _tmp41_;
- GeeList* _tmp42_;
- GeeList* _tmp43_;
- gint64 _tmp44_;
- gboolean _tmp45_;
- gboolean _tmp46_;
- AdjustDateTimePhotosCommand* _tmp47_;
- AdjustDateTimePhotosCommand* _tmp48_;
- CommandManager* _tmp49_;
- CommandManager* _tmp50_;
- AdjustDateTimePhotosCommand* _tmp51_;
-#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp40_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ ViewCollection* _tmp38_;
+ ViewCollection* _tmp39_;
+ GeeList* _tmp40_;
+ GeeList* _tmp41_;
+ gint64 _tmp42_;
+ gboolean _tmp43_;
+ gboolean _tmp44_;
+ AdjustDateTimePhotosCommand* _tmp45_;
+ AdjustDateTimePhotosCommand* _tmp46_;
+ CommandManager* _tmp47_;
+ CommandManager* _tmp48_;
+ AdjustDateTimePhotosCommand* _tmp49_;
+#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp38_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp39_ = _tmp38_;
+#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp40_ = view_collection_get_selected (_tmp39_);
+#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp41_ = _tmp40_;
-#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp42_ = view_collection_get_selected (_tmp41_);
-#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp43_ = _tmp42_;
-#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp44_ = time_shift;
-#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp45_ = keep_relativity;
-#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp46_ = modify_originals;
-#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp47_ = adjust_date_time_photos_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, GEE_TYPE_ITERABLE, GeeIterable), _tmp44_, _tmp45_, _tmp46_);
-#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp42_ = time_shift;
+#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp43_ = keep_relativity;
+#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp44_ = modify_originals;
+#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp45_ = adjust_date_time_photos_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_ITERABLE, GeeIterable), _tmp42_, _tmp43_, _tmp44_);
+#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp46_ = _tmp45_;
+#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp41_);
+#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp39_);
+#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ command = _tmp46_;
+#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp47_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp48_ = _tmp47_;
-#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp43_);
-#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp41_);
-#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command = _tmp48_;
-#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp49_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp50_ = _tmp49_;
-#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp51_ = command;
-#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- command_manager_execute (_tmp50_, G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, TYPE_COMMAND, Command));
-#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _command_manager_unref0 (_tmp50_);
-#line 618 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp49_ = command;
+#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ command_manager_execute (_tmp48_, G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, TYPE_COMMAND, Command));
+#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _command_manager_unref0 (_tmp48_);
+#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (command);
-#line 5468 "CollectionPage.c"
+#line 5704 "CollectionPage.c"
}
-#line 597 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (dialog);
-#line 597 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photo_source);
-#line 5474 "CollectionPage.c"
+#line 5710 "CollectionPage.c"
}
-static void collection_page_on_external_edit (CollectionPage* self) {
+static void
+collection_page_on_external_edit (CollectionPage* self)
+{
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
- gint _tmp2_;
- gboolean _tmp3_;
+ gboolean _tmp2_;
Photo* photo = NULL;
+ ViewCollection* _tmp3_;
ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
+ DataView* _tmp5_;
DataView* _tmp6_;
- DataView* _tmp7_;
- DataSource* _tmp8_;
- Photo* _tmp9_;
+ DataSource* _tmp7_;
+ Photo* _tmp8_;
GError * _inner_error_ = NULL;
-#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 620 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _tmp0_;
-#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_);
-#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_ != 1;
-#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1;
+#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp1_);
-#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp3_) {
-#line 627 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp2_) {
+#line 622 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 5507 "CollectionPage.c"
+#line 5742 "CollectionPage.c"
}
-#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _tmp4_;
-#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = view_collection_get_selected_at (_tmp5_, 0);
-#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _tmp6_;
-#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = data_view_get_source (_tmp7_);
-#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PHOTO, Photo);
-#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp7_);
-#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp5_);
-#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo = _tmp9_;
-#line 5527 "CollectionPage.c"
+#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp4_ = _tmp3_;
+#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp5_ = view_collection_get_selected_at (_tmp4_, 0);
+#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp6_ = _tmp5_;
+#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp7_ = data_view_get_source (_tmp6_);
+#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO, Photo);
+#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp6_);
+#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp4_);
+#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ photo = _tmp8_;
+#line 5762 "CollectionPage.c"
{
+ AppWindow* _tmp9_;
AppWindow* _tmp10_;
- AppWindow* _tmp11_;
- Photo* _tmp12_;
+ Photo* _tmp11_;
+ AppWindow* _tmp12_;
AppWindow* _tmp13_;
- AppWindow* _tmp14_;
-#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = app_window_get_instance ();
-#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = _tmp10_;
-#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PAGE_WINDOW, PageWindow));
-#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp11_);
-#line 632 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = photo;
-#line 632 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo_open_with_external_editor (_tmp12_, &_inner_error_);
-#line 632 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp9_ = app_window_get_instance ();
+#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp10_ = _tmp9_;
+#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_PAGE_WINDOW, PageWindow));
+#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp10_);
+#line 627 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp11_ = photo;
+#line 627 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ photo_open_with_external_editor (_tmp11_, &_inner_error_);
+#line 627 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5548 "CollectionPage.c"
- goto __catch235_g_error;
+#line 5783 "CollectionPage.c"
+ goto __catch246_g_error;
}
-#line 633 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = app_window_get_instance ();
-#line 633 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = _tmp13_;
-#line 633 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PAGE_WINDOW, PageWindow));
-#line 633 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp14_);
-#line 5559 "CollectionPage.c"
+#line 628 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp12_ = app_window_get_instance ();
+#line 628 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp13_ = _tmp12_;
+#line 628 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PAGE_WINDOW, PageWindow));
+#line 628 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp13_);
+#line 5794 "CollectionPage.c"
}
- goto __finally235;
- __catch235_g_error:
+ goto __finally246;
+ __catch246_g_error:
{
GError* err = NULL;
+ AppWindow* _tmp14_;
AppWindow* _tmp15_;
- AppWindow* _tmp16_;
- GError* _tmp17_;
- Photo* _tmp18_;
-#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ GError* _tmp16_;
+ Photo* _tmp17_;
+#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
err = _inner_error_;
-#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_inner_error_ = NULL;
-#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = app_window_get_instance ();
-#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = _tmp15_;
-#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PAGE_WINDOW, PageWindow));
-#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp16_);
-#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = err;
-#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = photo;
-#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- open_external_editor_error_dialog (_tmp17_, _tmp18_);
#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp14_ = app_window_get_instance ();
+#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp15_ = _tmp14_;
+#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PAGE_WINDOW, PageWindow));
+#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp15_);
+#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp16_ = err;
+#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp17_ = photo;
+#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ open_external_editor_error_dialog (_tmp16_, _tmp17_);
+#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_error_free0 (err);
-#line 5589 "CollectionPage.c"
+#line 5824 "CollectionPage.c"
}
- __finally235:
-#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ __finally246:
+#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photo);
-#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_clear_error (&_inner_error_);
-#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 5602 "CollectionPage.c"
+#line 5837 "CollectionPage.c"
}
-#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 620 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photo);
-#line 5606 "CollectionPage.c"
+#line 5841 "CollectionPage.c"
}
-static void collection_page_on_external_edit_raw (CollectionPage* self) {
+static void
+collection_page_on_external_edit_raw (CollectionPage* self)
+{
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
- gint _tmp2_;
- gboolean _tmp3_;
+ gboolean _tmp2_;
Photo* photo = NULL;
+ ViewCollection* _tmp3_;
ViewCollection* _tmp4_;
- ViewCollection* _tmp5_;
+ DataView* _tmp5_;
DataView* _tmp6_;
- DataView* _tmp7_;
- DataSource* _tmp8_;
+ DataSource* _tmp7_;
+ Photo* _tmp8_;
Photo* _tmp9_;
- Photo* _tmp10_;
- PhotoFileFormat _tmp11_;
GError * _inner_error_ = NULL;
-#line 640 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _tmp0_;
-#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = view_collection_get_selected_count (_tmp1_);
-#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_ != 1;
-#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1;
+#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp1_);
+#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp2_) {
+#line 637 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ return;
+#line 5874 "CollectionPage.c"
+ }
+#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp4_ = _tmp3_;
+#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp5_ = view_collection_get_selected_at (_tmp4_, 0);
+#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp6_ = _tmp5_;
+#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp7_ = data_view_get_source (_tmp6_);
+#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO, Photo);
+#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp6_);
+#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp4_);
+#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ photo = _tmp8_;
+#line 640 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp9_ = photo;
+#line 640 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (photo_get_master_file_format (_tmp9_) != PHOTO_FILE_FORMAT_RAW) {
+#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (photo);
#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp3_) {
-#line 642 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 5641 "CollectionPage.c"
+#line 5902 "CollectionPage.c"
}
+ {
+ AppWindow* _tmp10_;
+ AppWindow* _tmp11_;
+ Photo* _tmp12_;
+ AppWindow* _tmp13_;
+ AppWindow* _tmp14_;
#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = _tmp4_;
-#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = view_collection_get_selected_at (_tmp5_, 0);
-#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = _tmp6_;
-#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = data_view_get_source (_tmp7_);
-#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PHOTO, Photo);
+ _tmp10_ = app_window_get_instance ();
#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp7_);
+ _tmp11_ = _tmp10_;
#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp5_);
+ page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PAGE_WINDOW, PageWindow));
#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo = _tmp9_;
+ _g_object_unref0 (_tmp11_);
#line 645 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = photo;
+ _tmp12_ = photo;
#line 645 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = photo_get_master_file_format (_tmp10_);
+ photo_open_with_raw_external_editor (_tmp12_, &_inner_error_);
#line 645 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp11_ != PHOTO_FILE_FORMAT_RAW) {
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 5924 "CollectionPage.c"
+ goto __catch247_g_error;
+ }
#line 646 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (photo);
+ _tmp13_ = app_window_get_instance ();
#line 646 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 5671 "CollectionPage.c"
+ _tmp14_ = _tmp13_;
+#line 646 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PAGE_WINDOW, PageWindow));
+#line 646 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp14_);
+#line 5935 "CollectionPage.c"
}
+ goto __finally247;
+ __catch247_g_error:
{
- AppWindow* _tmp12_;
- AppWindow* _tmp13_;
- Photo* _tmp14_;
+ GError* err = NULL;
AppWindow* _tmp15_;
AppWindow* _tmp16_;
-#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = app_window_get_instance ();
-#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = _tmp12_;
-#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PAGE_WINDOW, PageWindow));
-#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp13_);
-#line 650 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = photo;
-#line 650 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo_open_with_raw_external_editor (_tmp14_, &_inner_error_);
-#line 650 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5693 "CollectionPage.c"
- goto __catch236_g_error;
- }
-#line 651 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ GError* _tmp17_;
+ gchar* _tmp18_;
+ gchar* _tmp19_;
+#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ err = _inner_error_;
+#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _inner_error_ = NULL;
+#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp15_ = app_window_get_instance ();
-#line 651 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = _tmp15_;
-#line 651 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PAGE_WINDOW, PageWindow));
-#line 651 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp16_);
-#line 5704 "CollectionPage.c"
- }
- goto __finally236;
- __catch236_g_error:
- {
- GError* err = NULL;
- AppWindow* _tmp17_;
- AppWindow* _tmp18_;
- GError* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- err = _inner_error_;
+ _tmp16_ = _tmp15_;
#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _inner_error_ = NULL;
-#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = app_window_get_instance ();
-#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = _tmp17_;
-#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PAGE_WINDOW, PageWindow));
-#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp18_);
-#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = err;
-#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp20_ = resources_launch_editor_failed (_tmp19_);
-#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp21_ = _tmp20_;
-#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- app_window_error_message (_tmp21_, NULL);
-#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_free0 (_tmp21_);
+ page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PAGE_WINDOW, PageWindow));
#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp16_);
+#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp17_ = err;
+#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp18_ = resources_launch_editor_failed (_tmp17_);
+#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp19_ = _tmp18_;
+#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ app_window_error_message (_tmp19_, NULL);
+#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_free0 (_tmp19_);
+#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_error_free0 (err);
-#line 5739 "CollectionPage.c"
+#line 5970 "CollectionPage.c"
}
- __finally236:
-#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ __finally247:
+#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photo);
-#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_clear_error (&_inner_error_);
-#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 5752 "CollectionPage.c"
+#line 5983 "CollectionPage.c"
}
-#line 640 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photo);
-#line 5756 "CollectionPage.c"
+#line 5987 "CollectionPage.c"
}
-void collection_page_on_set_background (CollectionPage* self) {
+void
+collection_page_on_set_background (CollectionPage* self)
+{
GeeArrayList* photos = NULL;
GeeArrayList* _tmp0_;
ViewCollection* _tmp1_;
@@ -5769,60 +6002,60 @@ void collection_page_on_set_background (CollectionPage* self) {
GeeArrayList* _tmp6_;
gint _tmp7_;
gint _tmp8_;
-#line 658 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala"
photos = _tmp0_;
-#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp2_ = _tmp1_;
-#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp3_ = view_collection_get_selected_sources (_tmp2_);
-#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp5_ = photos;
-#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala"
media_source_collection_filter_media (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), NULL);
-#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (_tmp4_);
-#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_data_collection_unref0 (_tmp2_);
-#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp6_ = photos;
-#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp7_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp8_ = _tmp7_;
-#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (_tmp8_ == 1) {
-#line 5803 "CollectionPage.c"
+#line 6036 "CollectionPage.c"
SetBackgroundPhotoDialog* dialog = NULL;
SetBackgroundPhotoDialog* _tmp9_;
SetBackgroundPhotoDialog* _tmp10_;
gboolean _tmp11_ = FALSE;
gboolean _tmp12_ = FALSE;
gboolean _tmp13_;
-#line 665 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp9_ = set_background_photo_dialog_new ();
-#line 665 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_object_ref_sink (_tmp9_);
-#line 665 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
dialog = _tmp9_;
-#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp10_ = dialog;
-#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp13_ = set_background_photo_dialog_execute (_tmp10_, &_tmp11_, &_tmp12_);
-#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala"
desktop = _tmp11_;
-#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala"
screensaver = _tmp12_;
-#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (_tmp13_) {
-#line 5826 "CollectionPage.c"
+#line 6059 "CollectionPage.c"
AppWindow* _tmp14_;
AppWindow* _tmp15_;
GeeArrayList* _tmp16_;
@@ -5832,54 +6065,54 @@ void collection_page_on_set_background (CollectionPage* self) {
gboolean _tmp20_;
AppWindow* _tmp21_;
AppWindow* _tmp22_;
-#line 667 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp14_ = app_window_get_instance ();
-#line 667 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp15_ = _tmp14_;
-#line 667 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala"
page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PAGE_WINDOW, PageWindow));
-#line 667 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (_tmp15_);
-#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp16_ = photos;
-#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp17_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0);
-#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp18_ = (LibraryPhoto*) _tmp17_;
-#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp19_ = desktop;
-#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp20_ = screensaver;
-#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala"
desktop_integration_set_background (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PHOTO, Photo), _tmp19_, _tmp20_);
-#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (_tmp18_);
-#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp21_ = app_window_get_instance ();
-#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp22_ = _tmp21_;
-#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala"
page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_PAGE_WINDOW, PageWindow));
-#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (_tmp22_);
-#line 5866 "CollectionPage.c"
+#line 6099 "CollectionPage.c"
}
-#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (dialog);
-#line 5870 "CollectionPage.c"
+#line 6103 "CollectionPage.c"
} else {
GeeArrayList* _tmp23_;
gint _tmp24_;
gint _tmp25_;
-#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp23_ = photos;
-#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp24_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp25_ = _tmp24_;
-#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (_tmp25_ > 1) {
-#line 5883 "CollectionPage.c"
+#line 6116 "CollectionPage.c"
SetBackgroundSlideshowDialog* dialog = NULL;
SetBackgroundSlideshowDialog* _tmp26_;
gint delay = 0;
@@ -5888,25 +6121,25 @@ void collection_page_on_set_background (CollectionPage* self) {
gboolean _tmp29_ = FALSE;
gboolean _tmp30_ = FALSE;
gboolean _tmp31_;
-#line 672 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 667 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp26_ = set_background_slideshow_dialog_new ();
-#line 672 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 667 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_object_ref_sink (_tmp26_);
-#line 672 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 667 "/home/jens/Source/shotwell/src/CollectionPage.vala"
dialog = _tmp26_;
-#line 674 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp27_ = dialog;
-#line 674 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp31_ = set_background_slideshow_dialog_execute (_tmp27_, &_tmp28_, &_tmp29_, &_tmp30_);
-#line 674 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
delay = _tmp28_;
-#line 674 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
desktop = _tmp29_;
-#line 674 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
screensaver = _tmp30_;
-#line 674 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (_tmp31_) {
-#line 5910 "CollectionPage.c"
+#line 6143 "CollectionPage.c"
AppWindow* _tmp32_;
AppWindow* _tmp33_;
GeeArrayList* _tmp34_;
@@ -5915,284 +6148,283 @@ void collection_page_on_set_background (CollectionPage* self) {
gboolean _tmp37_;
AppWindow* _tmp38_;
AppWindow* _tmp39_;
-#line 675 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp32_ = app_window_get_instance ();
-#line 675 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp33_ = _tmp32_;
-#line 675 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala"
page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_PAGE_WINDOW, PageWindow));
-#line 675 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (_tmp33_);
-#line 676 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp34_ = photos;
-#line 676 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp35_ = delay;
-#line 676 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp36_ = desktop;
-#line 676 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp37_ = screensaver;
-#line 676 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
desktop_integration_set_background_slideshow (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection), (gdouble) _tmp35_, COLLECTION_PAGE_DESKTOP_SLIDESHOW_TRANSITION_SEC, _tmp36_, _tmp37_);
-#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 673 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp38_ = app_window_get_instance ();
-#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 673 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp39_ = _tmp38_;
-#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 673 "/home/jens/Source/shotwell/src/CollectionPage.vala"
page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_PAGE_WINDOW, PageWindow));
-#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 673 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (_tmp39_);
-#line 5945 "CollectionPage.c"
+#line 6178 "CollectionPage.c"
}
-#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (dialog);
-#line 5949 "CollectionPage.c"
+#line 6182 "CollectionPage.c"
}
}
-#line 658 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photos);
-#line 5954 "CollectionPage.c"
+#line 6187 "CollectionPage.c"
}
-static void collection_page_on_slideshow (CollectionPage* self) {
+static void
+collection_page_on_slideshow (CollectionPage* self)
+{
ViewCollection* _tmp0_;
ViewCollection* _tmp1_;
- gint _tmp2_;
- gboolean _tmp3_;
- GeeList* _tmp4_ = NULL;
+ gboolean _tmp2_;
+ GeeList* _tmp3_ = NULL;
+ ViewCollection* _tmp4_;
ViewCollection* _tmp5_;
- ViewCollection* _tmp6_;
- gint _tmp7_;
- gboolean _tmp8_;
+ gboolean _tmp6_;
GeeList* sources = NULL;
+ GeeList* _tmp13_;
+ gboolean _tmp14_ = FALSE;
GeeList* _tmp15_;
- gboolean _tmp16_ = FALSE;
- GeeList* _tmp17_;
Thumbnail* thumbnail = NULL;
- ViewCollection* _tmp21_;
- ViewCollection* _tmp22_;
- GeeList* _tmp23_;
- gpointer _tmp24_;
- DataSource* _tmp25_;
- DataView* _tmp26_;
- Thumbnail* _tmp27_;
- Thumbnail* _tmp28_;
+ ViewCollection* _tmp19_;
+ ViewCollection* _tmp20_;
+ GeeList* _tmp21_;
+ gpointer _tmp22_;
+ DataSource* _tmp23_;
+ DataView* _tmp24_;
+ Thumbnail* _tmp25_;
+ Thumbnail* _tmp26_;
LibraryPhoto* photo = NULL;
- Thumbnail* _tmp29_;
- MediaSource* _tmp30_;
- LibraryPhoto* _tmp31_;
- LibraryPhoto* _tmp32_;
- AppWindow* _tmp33_;
- AppWindow* _tmp34_;
- LibraryPhotoSourceCollection* _tmp35_;
- ViewCollection* _tmp36_;
- ViewCollection* _tmp37_;
- LibraryPhoto* _tmp38_;
- SlideshowPage* _tmp39_;
- SlideshowPage* _tmp40_;
-#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ Thumbnail* _tmp27_;
+ MediaSource* _tmp28_;
+ LibraryPhoto* _tmp29_;
+ LibraryPhoto* _tmp30_;
+ AppWindow* _tmp31_;
+ AppWindow* _tmp32_;
+ LibraryPhotoSourceCollection* _tmp33_;
+ ViewCollection* _tmp34_;
+ ViewCollection* _tmp35_;
+ LibraryPhoto* _tmp36_;
+ SlideshowPage* _tmp37_;
+ SlideshowPage* _tmp38_;
+#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala"
g_return_if_fail (IS_COLLECTION_PAGE (self));
-#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _tmp0_;
+#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp2_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)) == 0;
+#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp1_);
+#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp2_) {
+#line 680 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ return;
+#line 6241 "CollectionPage.c"
+ }
+#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp5_ = _tmp4_;
+#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp6_ = view_collection_get_selected_count (_tmp5_) > 0;
+#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp5_);
+#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp6_) {
+#line 6253 "CollectionPage.c"
+ ViewCollection* _tmp7_;
+ ViewCollection* _tmp8_;
+ GeeList* _tmp9_;
#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp2_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection));
+ _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp3_ = _tmp2_ == 0;
+ _tmp8_ = _tmp7_;
#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp1_);
+ _tmp9_ = view_collection_get_selected_sources_of_type (_tmp8_, TYPE_LIBRARY_PHOTO);
#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp3_) {
+ _g_object_unref0 (_tmp3_);
+#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = _tmp9_;
+#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp8_);
+#line 6269 "CollectionPage.c"
+ } else {
+ ViewCollection* _tmp10_;
+ ViewCollection* _tmp11_;
+ GeeList* _tmp12_;
+#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp11_ = _tmp10_;
+#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp12_ = view_collection_get_sources_of_type (_tmp11_, TYPE_LIBRARY_PHOTO);
+#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp3_);
#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp3_ = _tmp12_;
+#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp11_);
+#line 6286 "CollectionPage.c"
+ }
+#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp13_ = _g_object_ref0 (_tmp3_);
+#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ sources = _tmp13_;
+#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp15_ = sources;
+#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp15_ == NULL) {
+#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp14_ = TRUE;
+#line 6298 "CollectionPage.c"
+ } else {
+ GeeList* _tmp16_;
+ gint _tmp17_;
+ gint _tmp18_;
+#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp16_ = sources;
+#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp17_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp18_ = _tmp17_;
+#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp14_ = _tmp18_ == 0;
+#line 6311 "CollectionPage.c"
+ }
+#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp14_) {
+#line 687 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (sources);
+#line 687 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp3_);
+#line 687 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 6010 "CollectionPage.c"
+#line 6321 "CollectionPage.c"
}
-#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp6_ = _tmp5_;
-#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = view_collection_get_selected_count (_tmp6_);
-#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = _tmp7_ > 0;
-#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp6_);
-#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp8_) {
-#line 6024 "CollectionPage.c"
- ViewCollection* _tmp9_;
- ViewCollection* _tmp10_;
- GeeList* _tmp11_;
#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+ _tmp19_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp10_ = _tmp9_;
+ _tmp20_ = _tmp19_;
#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp11_ = view_collection_get_selected_sources_of_type (_tmp10_, TYPE_LIBRARY_PHOTO);
+ _tmp21_ = sources;
#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp4_);
+ _tmp22_ = gee_list_get (_tmp21_, 0);
#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp11_;
+ _tmp23_ = (DataSource*) _tmp22_;
#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp10_);
-#line 6040 "CollectionPage.c"
- } else {
- ViewCollection* _tmp12_;
- ViewCollection* _tmp13_;
- GeeList* _tmp14_;
-#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp13_ = _tmp12_;
-#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp14_ = view_collection_get_sources_of_type (_tmp13_, TYPE_LIBRARY_PHOTO);
-#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp4_);
+ _tmp24_ = view_collection_get_view_for_source (_tmp20_, _tmp23_);
+#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp25_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_THUMBNAIL, Thumbnail);
+#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp23_);
+#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp20_);
+#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ thumbnail = _tmp25_;
#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp4_ = _tmp14_;
+ _tmp26_ = thumbnail;
#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp13_);
-#line 6057 "CollectionPage.c"
- }
-#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp15_ = _g_object_ref0 (_tmp4_);
-#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- sources = _tmp15_;
+ if (_tmp26_ == NULL) {
#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp17_ = sources;
-#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp17_ == NULL) {
-#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = TRUE;
-#line 6069 "CollectionPage.c"
- } else {
- GeeList* _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
-#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp18_ = sources;
-#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp19_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection));
+ _g_object_unref0 (thumbnail);
#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp20_ = _tmp19_;
+ _g_object_unref0 (sources);
#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp16_ = _tmp20_ == 0;
-#line 6082 "CollectionPage.c"
- }
+ _g_object_unref0 (_tmp3_);
#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp16_) {
-#line 692 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (sources);
-#line 692 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 692 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 6092 "CollectionPage.c"
+#line 6355 "CollectionPage.c"
}
+#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp27_ = thumbnail;
+#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp28_ = thumbnail_get_media_source (_tmp27_);
+#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp29_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp28_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp28_) : NULL;
+#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ if (_tmp29_ == NULL) {
+#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp28_);
+#line 6367 "CollectionPage.c"
+ }
+#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ photo = _tmp29_;
#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp21_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp22_ = _tmp21_;
-#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp23_ = sources;
-#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp24_ = gee_list_get (_tmp23_, 0);
-#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp25_ = (DataSource*) _tmp24_;
-#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp26_ = view_collection_get_view_for_source (_tmp22_, _tmp25_);
-#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp27_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_THUMBNAIL, Thumbnail);
-#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp25_);
-#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp22_);
+ _tmp30_ = photo;
#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- thumbnail = _tmp27_;
-#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp28_ = thumbnail;
+ if (_tmp30_ == NULL) {
#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp28_ == NULL) {
-#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (thumbnail);
-#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (sources);
-#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- return;
-#line 6126 "CollectionPage.c"
- }
-#line 698 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp29_ = thumbnail;
-#line 698 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp30_ = thumbnail_get_media_source (_tmp29_);
-#line 698 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp31_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp30_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp30_) : NULL;
-#line 698 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp31_ == NULL) {
-#line 698 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp30_);
-#line 6138 "CollectionPage.c"
- }
-#line 698 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- photo = _tmp31_;
-#line 699 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp32_ = photo;
-#line 699 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- if (_tmp32_ == NULL) {
-#line 700 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photo);
-#line 700 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (thumbnail);
-#line 700 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (sources);
-#line 700 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 700 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp3_);
+#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return;
-#line 6156 "CollectionPage.c"
+#line 6385 "CollectionPage.c"
}
-#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp33_ = app_window_get_instance ();
-#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp34_ = _tmp33_;
-#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp35_ = library_photo_global;
-#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp36_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
-#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp37_ = _tmp36_;
-#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp38_ = photo;
-#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp39_ = slideshow_page_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp37_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_PHOTO, Photo));
-#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- g_object_ref_sink (_tmp39_);
-#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp40_ = _tmp39_;
-#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- app_window_go_fullscreen (_tmp34_, G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_PAGE, Page));
-#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp40_);
-#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _data_collection_unref0 (_tmp37_);
-#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp34_);
-#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp31_ = app_window_get_instance ();
+#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp32_ = _tmp31_;
+#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp33_ = library_photo_global;
+#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp34_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp35_ = _tmp34_;
+#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp36_ = photo;
+#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp37_ = slideshow_page_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp35_, G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_PHOTO, Photo));
+#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ g_object_ref_sink (_tmp37_);
+#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _tmp38_ = _tmp37_;
+#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ app_window_go_fullscreen (_tmp32_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_PAGE, Page));
+#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp38_);
+#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _data_collection_unref0 (_tmp35_);
+#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp32_);
+#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (photo);
-#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (thumbnail);
-#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (sources);
-#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _g_object_unref0 (_tmp4_);
-#line 6192 "CollectionPage.c"
+#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ _g_object_unref0 (_tmp3_);
+#line 6421 "CollectionPage.c"
}
-static gboolean collection_page_real_on_ctrl_pressed (Page* base, GdkEventKey* event) {
+static gboolean
+collection_page_real_on_ctrl_pressed (Page* base,
+ GdkEventKey* event)
+{
CollectionPage * self;
gboolean result = FALSE;
GtkToolButton* rotate_button = NULL;
@@ -6200,55 +6432,52 @@ static gboolean collection_page_real_on_ctrl_pressed (Page* base, GdkEventKey* e
GObject* _tmp1_;
GtkToolButton* _tmp2_;
GtkToolButton* _tmp3_;
- GdkEventKey* _tmp7_;
- gboolean _tmp8_;
-#line 706 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 701 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 707 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder;
-#line 707 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = gtk_builder_get_object (_tmp0_, "ToolRotate");
-#line 707 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_tool_button_get_type ()) ? ((GtkToolButton*) _tmp1_) : NULL);
-#line 707 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
rotate_button = _tmp2_;
-#line 708 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 703 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp3_ = rotate_button;
-#line 708 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 703 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (_tmp3_ != NULL) {
-#line 6220 "CollectionPage.c"
+#line 6450 "CollectionPage.c"
GtkToolButton* _tmp4_;
GtkToolButton* _tmp5_;
GtkToolButton* _tmp6_;
-#line 709 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 704 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp4_ = rotate_button;
-#line 709 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GTK_TYPE_ACTIONABLE, GtkActionable), "win.RotateCounterclockwise");
-#line 710 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 704 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_actionable_get_type (), GtkActionable), "win.RotateCounterclockwise");
+#line 705 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp5_ = rotate_button;
-#line 710 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 705 "/home/jens/Source/shotwell/src/CollectionPage.vala"
gtk_tool_button_set_icon_name (_tmp5_, "object-rotate-left");
-#line 711 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 706 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp6_ = rotate_button;
-#line 711 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 706 "/home/jens/Source/shotwell/src/CollectionPage.vala"
gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ROTATE_CCW_TOOLTIP);
-#line 6236 "CollectionPage.c"
+#line 6466 "CollectionPage.c"
}
-#line 714 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = event;
-#line 714 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = PAGE_CLASS (collection_page_parent_class)->on_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp7_);
-#line 714 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = _tmp8_;
-#line 714 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 709 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ result = PAGE_CLASS (collection_page_parent_class)->on_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), event);
+#line 709 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (rotate_button);
-#line 714 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 709 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 6248 "CollectionPage.c"
+#line 6474 "CollectionPage.c"
}
-static gboolean collection_page_real_on_ctrl_released (Page* base, GdkEventKey* event) {
+static gboolean
+collection_page_real_on_ctrl_released (Page* base,
+ GdkEventKey* event)
+{
CollectionPage * self;
gboolean result = FALSE;
GtkToolButton* rotate_button = NULL;
@@ -6256,81 +6485,81 @@ static gboolean collection_page_real_on_ctrl_released (Page* base, GdkEventKey*
GObject* _tmp1_;
GtkToolButton* _tmp2_;
GtkToolButton* _tmp3_;
- GdkEventKey* _tmp7_;
- gboolean _tmp8_;
-#line 717 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 712 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 718 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 713 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder;
-#line 718 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 713 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = gtk_builder_get_object (_tmp0_, "ToolRotate");
-#line 718 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 713 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_tool_button_get_type ()) ? ((GtkToolButton*) _tmp1_) : NULL);
-#line 718 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 713 "/home/jens/Source/shotwell/src/CollectionPage.vala"
rotate_button = _tmp2_;
-#line 719 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 714 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp3_ = rotate_button;
-#line 719 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 714 "/home/jens/Source/shotwell/src/CollectionPage.vala"
if (_tmp3_ != NULL) {
-#line 6276 "CollectionPage.c"
+#line 6503 "CollectionPage.c"
GtkToolButton* _tmp4_;
GtkToolButton* _tmp5_;
GtkToolButton* _tmp6_;
-#line 720 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 715 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp4_ = rotate_button;
-#line 720 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GTK_TYPE_ACTIONABLE, GtkActionable), "win.RotateClockwise");
-#line 721 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 715 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_actionable_get_type (), GtkActionable), "win.RotateClockwise");
+#line 716 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp5_ = rotate_button;
-#line 721 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 716 "/home/jens/Source/shotwell/src/CollectionPage.vala"
gtk_tool_button_set_icon_name (_tmp5_, "object-rotate-right");
-#line 722 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 717 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp6_ = rotate_button;
-#line 722 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 717 "/home/jens/Source/shotwell/src/CollectionPage.vala"
gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ROTATE_CW_TOOLTIP);
-#line 6292 "CollectionPage.c"
+#line 6519 "CollectionPage.c"
}
-#line 725 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp7_ = event;
-#line 725 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- _tmp8_ = PAGE_CLASS (collection_page_parent_class)->on_ctrl_released (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp7_);
-#line 725 "/home/jens/Source/shotwell/src/CollectionPage.vala"
- result = _tmp8_;
-#line 725 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 720 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+ result = PAGE_CLASS (collection_page_parent_class)->on_ctrl_released (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), event);
+#line 720 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_g_object_unref0 (rotate_button);
-#line 725 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 720 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 6304 "CollectionPage.c"
+#line 6527 "CollectionPage.c"
}
-static gpointer _view_filter_ref0 (gpointer self) {
-#line 729 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+static gpointer
+_view_filter_ref0 (gpointer self)
+{
+#line 724 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return self ? view_filter_ref (self) : NULL;
-#line 6311 "CollectionPage.c"
+#line 6536 "CollectionPage.c"
}
-static SearchViewFilter* collection_page_real_get_search_view_filter (CheckerboardPage* base) {
+static SearchViewFilter*
+collection_page_real_get_search_view_filter (CheckerboardPage* base)
+{
CollectionPage * self;
SearchViewFilter* result = NULL;
CollectionPageCollectionSearchViewFilter* _tmp0_;
SearchViewFilter* _tmp1_;
-#line 728 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 723 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
-#line 729 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 724 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp0_ = self->priv->search_filter;
-#line 729 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 724 "/home/jens/Source/shotwell/src/CollectionPage.vala"
_tmp1_ = _view_filter_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
-#line 729 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 724 "/home/jens/Source/shotwell/src/CollectionPage.vala"
result = _tmp1_;
-#line 729 "/home/jens/Source/shotwell/src/CollectionPage.vala"
+#line 724 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 6330 "CollectionPage.c"
+#line 6557 "CollectionPage.c"
}
-static guint collection_page_collection_search_view_filter_real_get_criteria (SearchViewFilter* base) {
+static guint
+collection_page_collection_search_view_filter_real_get_criteria (SearchViewFilter* base)
+{
CollectionPageCollectionSearchViewFilter * self;
guint result = 0U;
#line 23 "/home/jens/Source/shotwell/src/CollectionPage.vala"
@@ -6339,41 +6568,51 @@ static guint collection_page_collection_search_view_filter_real_get_criteria (Se
result = (guint) ((((SEARCH_FILTER_CRITERIA_TEXT | SEARCH_FILTER_CRITERIA_FLAG) | SEARCH_FILTER_CRITERIA_MEDIA) | SEARCH_FILTER_CRITERIA_RATING) | SEARCH_FILTER_CRITERIA_SAVEDSEARCH);
#line 24 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return result;
-#line 6343 "CollectionPage.c"
+#line 6572 "CollectionPage.c"
}
-CollectionPageCollectionSearchViewFilter* collection_page_collection_search_view_filter_construct (GType object_type) {
+CollectionPageCollectionSearchViewFilter*
+collection_page_collection_search_view_filter_construct (GType object_type)
+{
CollectionPageCollectionSearchViewFilter* self = NULL;
#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self = (CollectionPageCollectionSearchViewFilter*) default_search_view_filter_construct (object_type);
#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return self;
-#line 6353 "CollectionPage.c"
+#line 6584 "CollectionPage.c"
}
-CollectionPageCollectionSearchViewFilter* collection_page_collection_search_view_filter_new (void) {
+CollectionPageCollectionSearchViewFilter*
+collection_page_collection_search_view_filter_new (void)
+{
#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala"
return collection_page_collection_search_view_filter_construct (COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER);
-#line 6360 "CollectionPage.c"
+#line 6593 "CollectionPage.c"
}
-static void collection_page_collection_search_view_filter_class_init (CollectionPageCollectionSearchViewFilterClass * klass) {
+static void
+collection_page_collection_search_view_filter_class_init (CollectionPageCollectionSearchViewFilterClass * klass)
+{
#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_collection_search_view_filter_parent_class = g_type_class_peek_parent (klass);
#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala"
((SearchViewFilterClass *) klass)->get_criteria = (guint (*) (SearchViewFilter *)) collection_page_collection_search_view_filter_real_get_criteria;
-#line 6369 "CollectionPage.c"
+#line 6604 "CollectionPage.c"
}
-static void collection_page_collection_search_view_filter_instance_init (CollectionPageCollectionSearchViewFilter * self) {
+static void
+collection_page_collection_search_view_filter_instance_init (CollectionPageCollectionSearchViewFilter * self)
+{
}
-GType collection_page_collection_search_view_filter_get_type (void) {
+GType
+collection_page_collection_search_view_filter_get_type (void)
+{
static volatile gsize collection_page_collection_search_view_filter_type_id__volatile = 0;
if (g_once_init_enter (&collection_page_collection_search_view_filter_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (CollectionPageCollectionSearchViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) collection_page_collection_search_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CollectionPageCollectionSearchViewFilter), 0, (GInstanceInitFunc) collection_page_collection_search_view_filter_instance_init, NULL };
@@ -6385,7 +6624,9 @@ GType collection_page_collection_search_view_filter_get_type (void) {
}
-static void collection_page_class_init (CollectionPageClass * klass) {
+static void
+collection_page_class_init (CollectionPageClass * klass)
+{
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
collection_page_parent_class = g_type_class_peek_parent (klass);
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
@@ -6418,11 +6659,13 @@ static void collection_page_class_init (CollectionPageClass * klass) {
((CheckerboardPageClass *) klass)->get_search_view_filter = (SearchViewFilter* (*) (CheckerboardPage *)) collection_page_real_get_search_view_filter;
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
G_OBJECT_CLASS (klass)->finalize = collection_page_finalize;
-#line 6422 "CollectionPage.c"
+#line 6663 "CollectionPage.c"
}
-static void collection_page_instance_init (CollectionPage * self) {
+static void
+collection_page_instance_init (CollectionPage * self)
+{
CollectionPageCollectionSearchViewFilter* _tmp0_;
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self->priv = COLLECTION_PAGE_GET_PRIVATE (self);
@@ -6432,11 +6675,13 @@ static void collection_page_instance_init (CollectionPage * self) {
_tmp0_ = collection_page_collection_search_view_filter_new ();
#line 30 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self->priv->search_filter = _tmp0_;
-#line 6436 "CollectionPage.c"
+#line 6679 "CollectionPage.c"
}
-static void collection_page_finalize (GObject * obj) {
+static void
+collection_page_finalize (GObject * obj)
+{
CollectionPage * self;
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_COLLECTION_PAGE, CollectionPage);
@@ -6446,11 +6691,13 @@ static void collection_page_finalize (GObject * obj) {
_view_filter_unref0 (self->priv->search_filter);
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
G_OBJECT_CLASS (collection_page_parent_class)->finalize (obj);
-#line 6450 "CollectionPage.c"
+#line 6695 "CollectionPage.c"
}
-GType collection_page_get_type (void) {
+GType
+collection_page_get_type (void)
+{
static volatile gsize collection_page_type_id__volatile = 0;
if (g_once_init_enter (&collection_page_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (CollectionPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) collection_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CollectionPage), 0, (GInstanceInitFunc) collection_page_instance_init, NULL };
@@ -6462,7 +6709,11 @@ GType collection_page_get_type (void) {
}
-static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+static void
+_vala_array_destroy (gpointer array,
+ gint array_length,
+ GDestroyNotify destroy_func)
+{
if ((array != NULL) && (destroy_func != NULL)) {
int i;
for (i = 0; i < array_length; i = i + 1) {
@@ -6474,7 +6725,11 @@ static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNoti
}
-static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+static void
+_vala_array_free (gpointer array,
+ gint array_length,
+ GDestroyNotify destroy_func)
+{
_vala_array_destroy (array, array_length, destroy_func);
g_free (array);
}