summaryrefslogtreecommitdiff
path: root/src/direct/DirectPhotoPage.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-12 15:53:58 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-12 15:53:58 +0100
commit2492891f112caac6076ce49721d9d5d78a152c3a (patch)
tree36dd11a60bd963e6bd44e2e312b6e4b57d1849ea /src/direct/DirectPhotoPage.c
parent3c829c50a8f705402bdc759946d49ae7caebd003 (diff)
New upstream version 0.26.4upstream/0.26.4
Diffstat (limited to 'src/direct/DirectPhotoPage.c')
-rw-r--r--src/direct/DirectPhotoPage.c1720
1 files changed, 840 insertions, 880 deletions
diff --git a/src/direct/DirectPhotoPage.c b/src/direct/DirectPhotoPage.c
index 08a3c07..07f26d9 100644
--- a/src/direct/DirectPhotoPage.c
+++ b/src/direct/DirectPhotoPage.c
@@ -1,4 +1,4 @@
-/* DirectPhotoPage.c generated by valac 0.34.7, the Vala compiler
+/* DirectPhotoPage.c generated by valac 0.36.6, the Vala compiler
* generated from DirectPhotoPage.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -722,8 +722,8 @@ InjectionGroup** page_init_collect_injection_groups (Page* self, int* result_len
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);
-static void _vala_array_add61 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value);
-static void _vala_array_add62 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value);
+static void _vala_array_add61 (InjectionGroup** * array, int* length, int* size, InjectionGroup* value);
+static void _vala_array_add62 (InjectionGroup** * array, int* length, int* size, InjectionGroup* value);
void app_window_error_message (const gchar* message, GtkWindow* parent);
gboolean photo_file_format_is_file_supported (GFile* file);
#define RESOURCES_APP_TITLE "Shotwell"
@@ -797,7 +797,7 @@ gboolean direct_photo_page_check_quit (DirectPhotoPage* self);
static gboolean direct_photo_page_real_confirm_replace_photo (EditingHostPage* base, Photo* old_photo, Photo* new_photo);
void scaling_for_constraint (ScaleConstraint constraint, gint scale, gboolean scale_up, Scaling* result);
void photo_export (Photo* self, GFile* dest_file, Scaling* scaling, JpegQuality quality, PhotoFileFormat export_format, gboolean direct_copy_unmodified, gboolean export_metadata, GError** error);
-gchar* direct_photo_source_collection_fetch (DirectPhotoSourceCollection* self, GFile* file, DirectPhoto** photo, gboolean reimport);
+gchar* direct_photo_source_collection_fetch (DirectPhotoSourceCollection* self, GFile* file, DirectPhoto* * photo, gboolean reimport);
gboolean data_source_equals (DataSource* self, DataSource* source);
GType direct_view_get_type (void) G_GNUC_CONST;
DirectView* direct_view_new (DirectPhoto* source);
@@ -850,7 +850,7 @@ static gboolean __lambda16_ (Block7Data* _data7_);
void editing_host_page_enable_rotate (EditingHostPage* self, gboolean should_enable);
static gboolean ___lambda16__gsource_func (gpointer self);
static DataView* direct_photo_page_real_create_photo_view (EditingHostPage* base, DataSource* source);
-static void direct_photo_page_finalize (GObject* obj);
+static void direct_photo_page_finalize (GObject * obj);
GType direct_fullscreen_photo_page_get_type (void) G_GNUC_CONST;
enum {
DIRECT_FULLSCREEN_PHOTO_PAGE_DUMMY_PROPERTY
@@ -1047,20 +1047,20 @@ static void _direct_photo_page_on_selection_group_altered_view_collection_select
DirectPhotoPage* direct_photo_page_construct (GType object_type, GFile* file) {
DirectPhotoPage * self = NULL;
- DirectPhotoSourceCollection* _tmp0_ = NULL;
- GFile* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- GFile* _tmp4_ = NULL;
- gboolean _tmp5_ = FALSE;
- GFile* _tmp8_ = NULL;
- GFile* _tmp9_ = NULL;
- DirectViewCollection* _tmp10_ = NULL;
- GFile* _tmp11_ = NULL;
- GFile* _tmp12_ = NULL;
- DirectPhotoSourceCollection* _tmp13_ = NULL;
- ViewCollection* _tmp14_ = NULL;
- ViewCollection* _tmp15_ = NULL;
+ DirectPhotoSourceCollection* _tmp0_;
+ GFile* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
+ GFile* _tmp4_;
+ gboolean _tmp5_;
+ GFile* _tmp8_;
+ GFile* _tmp9_;
+ DirectViewCollection* _tmp10_;
+ GFile* _tmp11_;
+ GFile* _tmp12_;
+ DirectPhotoSourceCollection* _tmp13_;
+ ViewCollection* _tmp14_;
+ ViewCollection* _tmp15_;
#line 13 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
#line 14 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1082,8 +1082,8 @@ DirectPhotoPage* direct_photo_page_construct (GType object_type, GFile* file) {
#line 16 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (!_tmp5_) {
#line 1085 "DirectPhotoPage.c"
- Application* _tmp6_ = NULL;
- Application* _tmp7_ = NULL;
+ Application* _tmp6_;
+ Application* _tmp7_;
#line 17 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp6_ = application_get_instance ();
#line 17 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1145,9 +1145,9 @@ DirectPhotoPage* direct_photo_page_new (GFile* file) {
static void direct_photo_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames) {
DirectPhotoPage * self;
- GeeList* _tmp0_ = NULL;
- GeeList* _tmp1_ = NULL;
- GeeList* _tmp2_ = NULL;
+ GeeList* _tmp0_;
+ GeeList* _tmp1_;
+ GeeList* _tmp2_;
#line 35 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
#line 35 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1170,8 +1170,8 @@ static void direct_photo_page_real_init_collect_ui_filenames (Page* base, GeeLis
static void direct_photo_page_real_add_actions (Page* base, GActionMap* map) {
DirectPhotoPage * self;
- GActionMap* _tmp0_ = NULL;
- GActionMap* _tmp1_ = NULL;
+ GActionMap* _tmp0_;
+ GActionMap* _tmp1_;
#line 68 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
#line 68 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1190,7 +1190,7 @@ static void direct_photo_page_real_add_actions (Page* base, GActionMap* map) {
static void direct_photo_page_real_remove_actions (Page* base, GActionMap* map) {
DirectPhotoPage * self;
- GActionMap* _tmp0_ = NULL;
+ GActionMap* _tmp0_;
#line 74 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
#line 74 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1217,9 +1217,9 @@ static void direct_photo_page_real_remove_actions (Page* base, GActionMap* map)
entry = entry_collection[entry_it];
#line 1219 "DirectPhotoPage.c"
{
- GActionMap* _tmp1_ = NULL;
- GActionEntry _tmp2_ = {0};
- const gchar* _tmp3_ = NULL;
+ GActionMap* _tmp1_;
+ GActionEntry _tmp2_;
+ const gchar* _tmp3_;
#line 77 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp1_ = map;
#line 77 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1242,7 +1242,7 @@ static gpointer _injection_group_ref0 (gpointer self) {
}
-static void _vala_array_add61 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) {
+static void _vala_array_add61 (InjectionGroup** * array, int* length, int* size, InjectionGroup* value) {
#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if ((*length) == (*size)) {
#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1259,7 +1259,7 @@ static void _vala_array_add61 (InjectionGroup*** array, int* length, int* size,
}
-static void _vala_array_add62 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) {
+static void _vala_array_add62 (InjectionGroup** * array, int* length, int* size, InjectionGroup* value) {
#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if ((*length) == (*size)) {
#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1280,24 +1280,22 @@ static InjectionGroup** direct_photo_page_real_init_collect_injection_groups (Pa
DirectPhotoPage * self;
InjectionGroup** result = NULL;
InjectionGroup** groups = NULL;
- gint _tmp0_ = 0;
- InjectionGroup** _tmp1_ = NULL;
- gint groups_length1 = 0;
- gint _groups_size_ = 0;
+ gint _tmp0_;
+ InjectionGroup** _tmp1_;
+ gint groups_length1;
+ gint _groups_size_;
InjectionGroup* print_group = NULL;
- InjectionGroup* _tmp2_ = NULL;
- const gchar* _tmp3_ = NULL;
- InjectionGroup** _tmp4_ = NULL;
- gint _tmp4__length1 = 0;
- InjectionGroup* _tmp5_ = NULL;
+ InjectionGroup* _tmp2_;
+ InjectionGroup** _tmp3_;
+ gint _tmp3__length1;
+ InjectionGroup* _tmp4_;
InjectionGroup* bg_group = NULL;
- InjectionGroup* _tmp6_ = NULL;
- const gchar* _tmp7_ = NULL;
- InjectionGroup** _tmp8_ = NULL;
- gint _tmp8__length1 = 0;
- InjectionGroup* _tmp9_ = NULL;
- InjectionGroup** _tmp10_ = NULL;
- gint _tmp10__length1 = 0;
+ InjectionGroup* _tmp5_;
+ InjectionGroup** _tmp6_;
+ gint _tmp6__length1;
+ InjectionGroup* _tmp7_;
+ InjectionGroup** _tmp8_;
+ gint _tmp8__length1;
#line 81 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
#line 82 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1313,62 +1311,58 @@ static InjectionGroup** direct_photo_page_real_init_collect_injection_groups (Pa
#line 84 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
print_group = _tmp2_;
#line 85 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = _ ("_Print");
-#line 85 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- injection_group_add_menu_item (print_group, _tmp3_, "Print", "<Primary>p");
+ injection_group_add_menu_item (print_group, _ ("_Print"), "Print", "<Primary>p");
#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp4_ = groups;
+ _tmp3_ = groups;
#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp4__length1 = groups_length1;
+ _tmp3__length1 = groups_length1;
#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp5_ = _injection_group_ref0 (print_group);
+ _tmp4_ = _injection_group_ref0 (print_group);
#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _vala_array_add61 (&groups, &groups_length1, &_groups_size_, _tmp5_);
+ _vala_array_add61 (&groups, &groups_length1, &_groups_size_, _tmp4_);
#line 89 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6_ = injection_group_new ("SetBackgroundPlaceholder");
+ _tmp5_ = injection_group_new ("SetBackgroundPlaceholder");
#line 89 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- bg_group = _tmp6_;
-#line 90 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp7_ = _ ("Set as _Desktop Background");
+ bg_group = _tmp5_;
#line 90 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- injection_group_add_menu_item (bg_group, _tmp7_, "SetBackground", "<Primary>b");
+ injection_group_add_menu_item (bg_group, _ ("Set as _Desktop Background"), "SetBackground", "<Primary>b");
#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = groups;
+ _tmp6_ = groups;
#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8__length1 = groups_length1;
+ _tmp6__length1 = groups_length1;
#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp9_ = _injection_group_ref0 (bg_group);
+ _tmp7_ = _injection_group_ref0 (bg_group);
#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _vala_array_add62 (&groups, &groups_length1, &_groups_size_, _tmp9_);
+ _vala_array_add62 (&groups, &groups_length1, &_groups_size_, _tmp7_);
#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp10_ = groups;
+ _tmp8_ = groups;
#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp10__length1 = groups_length1;
+ _tmp8__length1 = groups_length1;
#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (result_length1) {
#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- *result_length1 = _tmp10__length1;
-#line 1352 "DirectPhotoPage.c"
+ *result_length1 = _tmp8__length1;
+#line 1346 "DirectPhotoPage.c"
}
#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- result = _tmp10_;
+ result = _tmp8_;
#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_injection_group_unref0 (bg_group);
#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_injection_group_unref0 (print_group);
#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 1362 "DirectPhotoPage.c"
+#line 1356 "DirectPhotoPage.c"
}
static gboolean direct_photo_page_check_editable_file (GFile* file) {
gboolean result = FALSE;
- GFile* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
- gboolean _tmp3_ = FALSE;
- gboolean _tmp4_ = FALSE;
+ GFile* _tmp0_;
+ gchar* _tmp1_;
+ gchar* _tmp2_;
+ gboolean _tmp3_;
+ gboolean _tmp4_;
#line 97 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_return_val_if_fail (G_IS_FILE (file), FALSE);
#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1385,119 +1379,110 @@ static gboolean direct_photo_page_check_editable_file (GFile* file) {
_g_free0 (_tmp2_);
#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp4_) {
-#line 1389 "DirectPhotoPage.c"
- const gchar* _tmp5_ = NULL;
- GFile* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
- gchar* _tmp8_ = NULL;
- gchar* _tmp9_ = NULL;
- gchar* _tmp10_ = NULL;
+#line 1383 "DirectPhotoPage.c"
+ GFile* _tmp5_;
+ gchar* _tmp6_;
+ gchar* _tmp7_;
+ gchar* _tmp8_;
+ gchar* _tmp9_;
#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp5_ = _ ("%s does not exist.");
+ _tmp5_ = file;
#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6_ = file;
+ _tmp6_ = g_file_get_path (_tmp5_);
#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp7_ = g_file_get_path (_tmp6_);
-#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = _tmp7_;
+ _tmp7_ = _tmp6_;
#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp9_ = g_strdup_printf (_tmp5_, _tmp8_);
+ _tmp8_ = g_strdup_printf (_ ("%s does not exist."), _tmp7_);
#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp10_ = _tmp9_;
+ _tmp9_ = _tmp8_;
#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- app_window_error_message (_tmp10_, NULL);
+ app_window_error_message (_tmp9_, NULL);
#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp10_);
+ _g_free0 (_tmp9_);
#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp8_);
-#line 1414 "DirectPhotoPage.c"
+ _g_free0 (_tmp7_);
+#line 1405 "DirectPhotoPage.c"
} else {
- GFile* _tmp11_ = NULL;
- gchar* _tmp12_ = NULL;
- gchar* _tmp13_ = NULL;
- gboolean _tmp14_ = FALSE;
- gboolean _tmp15_ = FALSE;
+ GFile* _tmp10_;
+ gchar* _tmp11_;
+ gchar* _tmp12_;
+ gboolean _tmp13_;
+ gboolean _tmp14_;
#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp11_ = file;
+ _tmp10_ = file;
#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp12_ = g_file_get_path (_tmp11_);
+ _tmp11_ = g_file_get_path (_tmp10_);
#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp13_ = _tmp12_;
+ _tmp12_ = _tmp11_;
#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp14_ = g_file_test (_tmp13_, G_FILE_TEST_IS_REGULAR);
+ _tmp13_ = g_file_test (_tmp12_, G_FILE_TEST_IS_REGULAR);
#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp15_ = !_tmp14_;
+ _tmp14_ = !_tmp13_;
#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp13_);
+ _g_free0 (_tmp12_);
#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp15_) {
-#line 1435 "DirectPhotoPage.c"
- const gchar* _tmp16_ = NULL;
- GFile* _tmp17_ = NULL;
- gchar* _tmp18_ = NULL;
- gchar* _tmp19_ = NULL;
- gchar* _tmp20_ = NULL;
- gchar* _tmp21_ = NULL;
-#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp16_ = _ ("%s is not a file.");
-#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp17_ = file;
+ if (_tmp14_) {
+#line 1426 "DirectPhotoPage.c"
+ GFile* _tmp15_;
+ gchar* _tmp16_;
+ gchar* _tmp17_;
+ gchar* _tmp18_;
+ gchar* _tmp19_;
#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp18_ = g_file_get_path (_tmp17_);
+ _tmp15_ = file;
#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp19_ = _tmp18_;
+ _tmp16_ = g_file_get_path (_tmp15_);
#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp20_ = g_strdup_printf (_tmp16_, _tmp19_);
+ _tmp17_ = _tmp16_;
#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp21_ = _tmp20_;
+ _tmp18_ = g_strdup_printf (_ ("%s is not a file."), _tmp17_);
#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- app_window_error_message (_tmp21_, NULL);
+ _tmp19_ = _tmp18_;
#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp21_);
+ app_window_error_message (_tmp19_, NULL);
#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_free0 (_tmp19_);
-#line 1460 "DirectPhotoPage.c"
+#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
+ _g_free0 (_tmp17_);
+#line 1448 "DirectPhotoPage.c"
} else {
- GFile* _tmp22_ = NULL;
- gboolean _tmp23_ = FALSE;
+ GFile* _tmp20_;
+ gboolean _tmp21_;
#line 102 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp22_ = file;
+ _tmp20_ = file;
#line 102 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp23_ = photo_file_format_is_file_supported (_tmp22_);
+ _tmp21_ = photo_file_format_is_file_supported (_tmp20_);
#line 102 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (!_tmp23_) {
-#line 1470 "DirectPhotoPage.c"
- const gchar* _tmp24_ = NULL;
- GFile* _tmp25_ = NULL;
- gchar* _tmp26_ = NULL;
- gchar* _tmp27_ = NULL;
- gchar* _tmp28_ = NULL;
- gchar* _tmp29_ = NULL;
+ if (!_tmp21_) {
+#line 1458 "DirectPhotoPage.c"
+ GFile* _tmp22_;
+ gchar* _tmp23_;
+ gchar* _tmp24_;
+ gchar* _tmp25_;
+ gchar* _tmp26_;
#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp24_ = _ ("%s does not support the file format of\n%s.");
+ _tmp22_ = file;
#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp25_ = file;
+ _tmp23_ = g_file_get_path (_tmp22_);
#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp26_ = g_file_get_path (_tmp25_);
+ _tmp24_ = _tmp23_;
#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp27_ = _tmp26_;
+ _tmp25_ = g_strdup_printf (_ ("%s does not support the file format of\n%s."), RESOURCES_APP_TITLE, _tmp24_);
#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp28_ = g_strdup_printf (_tmp24_, RESOURCES_APP_TITLE, _tmp27_);
+ _tmp26_ = _tmp25_;
#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp29_ = _tmp28_;
-#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- app_window_error_message (_tmp29_, NULL);
+ app_window_error_message (_tmp26_, NULL);
#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp29_);
+ _g_free0 (_tmp26_);
#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp27_);
-#line 1495 "DirectPhotoPage.c"
+ _g_free0 (_tmp24_);
+#line 1480 "DirectPhotoPage.c"
} else {
#line 106 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
result = TRUE;
#line 106 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 1501 "DirectPhotoPage.c"
+#line 1486 "DirectPhotoPage.c"
}
}
}
@@ -1505,24 +1490,24 @@ static gboolean direct_photo_page_check_editable_file (GFile* file) {
result = FALSE;
#line 108 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 1509 "DirectPhotoPage.c"
+#line 1494 "DirectPhotoPage.c"
}
static void direct_photo_page_real_realize (GtkWidget* base) {
DirectPhotoPage * self;
DirectPhoto* photo = NULL;
- DirectPhotoSourceCollection* _tmp0_ = NULL;
- GFile* _tmp1_ = NULL;
- DirectPhoto* _tmp2_ = NULL;
- DirectPhoto* _tmp3_ = NULL;
+ DirectPhotoSourceCollection* _tmp0_;
+ GFile* _tmp1_;
+ DirectPhoto* _tmp2_;
+ DirectPhoto* _tmp3_;
#line 111 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
#line 112 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (GTK_WIDGET_CLASS (direct_photo_page_parent_class)->realize != NULL) {
#line 113 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
GTK_WIDGET_CLASS (direct_photo_page_parent_class)->realize (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), gtk_widget_get_type (), GtkWidget));
-#line 1526 "DirectPhotoPage.c"
+#line 1511 "DirectPhotoPage.c"
}
#line 115 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp0_ = direct_photo_global;
@@ -1536,42 +1521,39 @@ static void direct_photo_page_real_realize (GtkWidget* base) {
_tmp3_ = photo;
#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp3_ != NULL) {
-#line 1540 "DirectPhotoPage.c"
- DirectViewCollection* _tmp4_ = NULL;
- DirectPhoto* _tmp5_ = NULL;
+#line 1525 "DirectPhotoPage.c"
+ DirectViewCollection* _tmp4_;
+ DirectPhoto* _tmp5_;
#line 118 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp4_ = self->priv->view_controller;
#line 118 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp5_ = photo;
#line 118 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
editing_host_page_display_mirror_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_VIEW_COLLECTION, ViewCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PHOTO, Photo));
-#line 1549 "DirectPhotoPage.c"
+#line 1534 "DirectPhotoPage.c"
} else {
- const gchar* _tmp6_ = NULL;
- GFile* _tmp7_ = NULL;
- gchar* _tmp8_ = NULL;
- gchar* _tmp9_ = NULL;
- gchar* _tmp10_ = NULL;
- gchar* _tmp11_ = NULL;
-#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6_ = _ ("Unable open photo %s. Sorry.");
+ GFile* _tmp6_;
+ gchar* _tmp7_;
+ gchar* _tmp8_;
+ gchar* _tmp9_;
+ gchar* _tmp10_;
#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp7_ = self->priv->initial_file;
+ _tmp6_ = self->priv->initial_file;
#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = g_file_get_path (_tmp7_);
+ _tmp7_ = g_file_get_path (_tmp6_);
#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp9_ = _tmp8_;
+ _tmp8_ = _tmp7_;
#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp10_ = g_strdup_printf (_tmp6_, _tmp9_);
+ _tmp9_ = g_strdup_printf (_ ("Unable open photo %s. Sorry."), _tmp8_);
#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp11_ = _tmp10_;
+ _tmp10_ = _tmp9_;
#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- app_window_panic (_tmp11_);
+ app_window_panic (_tmp10_);
#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp11_);
+ _g_free0 (_tmp10_);
#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp9_);
-#line 1575 "DirectPhotoPage.c"
+ _g_free0 (_tmp8_);
+#line 1557 "DirectPhotoPage.c"
}
#line 123 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (self->priv->initial_file);
@@ -1579,27 +1561,27 @@ static void direct_photo_page_real_realize (GtkWidget* base) {
self->priv->initial_file = NULL;
#line 111 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (photo);
-#line 1583 "DirectPhotoPage.c"
+#line 1565 "DirectPhotoPage.c"
}
static void _direct_photo_page_on_dphoto_can_rotate_changed_direct_photo_can_rotate_changed (DirectPhoto* _sender, gboolean b, gpointer self) {
#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
direct_photo_page_on_dphoto_can_rotate_changed ((DirectPhotoPage*) self, b);
-#line 1590 "DirectPhotoPage.c"
+#line 1572 "DirectPhotoPage.c"
}
static void direct_photo_page_real_photo_changing (EditingHostPage* base, Photo* new_photo) {
DirectPhotoPage * self;
- Photo* _tmp0_ = NULL;
- Photo* _tmp1_ = NULL;
- gboolean _tmp2_ = FALSE;
- Photo* _tmp8_ = NULL;
+ Photo* _tmp0_;
+ Photo* _tmp1_;
+ gboolean _tmp2_;
+ Photo* _tmp8_;
DirectPhoto* tmp = NULL;
- Photo* _tmp9_ = NULL;
- DirectPhoto* _tmp10_ = NULL;
- DirectPhoto* _tmp11_ = NULL;
+ Photo* _tmp9_;
+ DirectPhoto* _tmp10_;
+ DirectPhoto* _tmp11_;
#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1614,11 +1596,11 @@ static void direct_photo_page_real_photo_changing (EditingHostPage* base, Photo*
_g_object_unref0 (_tmp1_);
#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp2_) {
-#line 1618 "DirectPhotoPage.c"
+#line 1600 "DirectPhotoPage.c"
DirectPhoto* tmp = NULL;
- Photo* _tmp3_ = NULL;
- DirectPhoto* _tmp4_ = NULL;
- DirectPhoto* _tmp5_ = NULL;
+ Photo* _tmp3_;
+ DirectPhoto* _tmp4_;
+ DirectPhoto* _tmp5_;
#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp3_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1627,7 +1609,7 @@ static void direct_photo_page_real_photo_changing (EditingHostPage* base, Photo*
if (_tmp4_ == NULL) {
#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (_tmp3_);
-#line 1631 "DirectPhotoPage.c"
+#line 1613 "DirectPhotoPage.c"
}
#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
tmp = _tmp4_;
@@ -1635,20 +1617,20 @@ static void direct_photo_page_real_photo_changing (EditingHostPage* base, Photo*
_tmp5_ = tmp;
#line 130 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp5_ != NULL) {
-#line 1639 "DirectPhotoPage.c"
- DirectPhoto* _tmp6_ = NULL;
- guint _tmp7_ = 0U;
+#line 1621 "DirectPhotoPage.c"
+ DirectPhoto* _tmp6_;
+ guint _tmp7_;
#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp6_ = tmp;
#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_signal_parse_name ("can-rotate-changed", TYPE_DIRECT_PHOTO, &_tmp7_, NULL, FALSE);
#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _direct_photo_page_on_dphoto_can_rotate_changed_direct_photo_can_rotate_changed, self);
-#line 1648 "DirectPhotoPage.c"
+#line 1630 "DirectPhotoPage.c"
}
#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (tmp);
-#line 1652 "DirectPhotoPage.c"
+#line 1634 "DirectPhotoPage.c"
}
#line 135 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp8_ = new_photo;
@@ -1664,26 +1646,26 @@ static void direct_photo_page_real_photo_changing (EditingHostPage* base, Photo*
_tmp11_ = tmp;
#line 139 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp11_ != NULL) {
-#line 1668 "DirectPhotoPage.c"
- DirectPhoto* _tmp12_ = NULL;
+#line 1650 "DirectPhotoPage.c"
+ DirectPhoto* _tmp12_;
#line 140 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp12_ = tmp;
#line 140 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_signal_connect_object (_tmp12_, "can-rotate-changed", (GCallback) _direct_photo_page_on_dphoto_can_rotate_changed_direct_photo_can_rotate_changed, self, 0);
-#line 1674 "DirectPhotoPage.c"
+#line 1656 "DirectPhotoPage.c"
}
#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (tmp);
-#line 1678 "DirectPhotoPage.c"
+#line 1660 "DirectPhotoPage.c"
}
GFile* direct_photo_page_get_current_file (DirectPhotoPage* self) {
GFile* result = NULL;
- Photo* _tmp0_ = NULL;
- Photo* _tmp1_ = NULL;
- GFile* _tmp2_ = NULL;
- GFile* _tmp3_ = NULL;
+ Photo* _tmp0_;
+ Photo* _tmp1_;
+ GFile* _tmp2_;
+ GFile* _tmp3_;
#line 144 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_return_val_if_fail (IS_DIRECT_PHOTO_PAGE (self), NULL);
#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1700,16 +1682,16 @@ GFile* direct_photo_page_get_current_file (DirectPhotoPage* self) {
result = _tmp3_;
#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 1704 "DirectPhotoPage.c"
+#line 1686 "DirectPhotoPage.c"
}
static gboolean direct_photo_page_real_on_context_buttonpress (Page* base, GdkEventButton* event) {
DirectPhotoPage * self;
gboolean result = FALSE;
- GtkMenu* _tmp0_ = NULL;
- GtkMenu* _tmp1_ = NULL;
- GdkEventButton* _tmp2_ = NULL;
+ GtkMenu* _tmp0_;
+ GtkMenu* _tmp1_;
+ GdkEventButton* _tmp2_;
#line 148 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
#line 148 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1728,29 +1710,29 @@ static gboolean direct_photo_page_real_on_context_buttonpress (Page* base, GdkEv
result = TRUE;
#line 151 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 1732 "DirectPhotoPage.c"
+#line 1714 "DirectPhotoPage.c"
}
static GtkMenu* direct_photo_page_get_context_menu (DirectPhotoPage* self) {
GtkMenu* result = NULL;
- GtkMenu* _tmp0_ = NULL;
- GtkMenu* _tmp7_ = NULL;
- GtkMenu* _tmp8_ = NULL;
+ GtkMenu* _tmp0_;
+ GtkMenu* _tmp7_;
+ GtkMenu* _tmp8_;
#line 156 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_return_val_if_fail (IS_DIRECT_PHOTO_PAGE (self), NULL);
#line 157 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp0_ = self->priv->context_menu;
#line 157 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp0_ == NULL) {
-#line 1747 "DirectPhotoPage.c"
+#line 1729 "DirectPhotoPage.c"
GMenuModel* model = NULL;
- GtkBuilder* _tmp1_ = NULL;
- GObject* _tmp2_ = NULL;
- GMenuModel* _tmp3_ = NULL;
- GMenuModel* _tmp4_ = NULL;
- GtkMenu* _tmp5_ = NULL;
- GtkMenu* _tmp6_ = NULL;
+ GtkBuilder* _tmp1_;
+ GObject* _tmp2_;
+ GMenuModel* _tmp3_;
+ GMenuModel* _tmp4_;
+ GtkMenu* _tmp5_;
+ GtkMenu* _tmp6_;
#line 158 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder;
#line 158 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1775,7 +1757,7 @@ static GtkMenu* direct_photo_page_get_context_menu (DirectPhotoPage* self) {
gtk_menu_attach_to_widget (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), NULL);
#line 157 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (model);
-#line 1779 "DirectPhotoPage.c"
+#line 1761 "DirectPhotoPage.c"
}
#line 164 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp7_ = self->priv->context_menu;
@@ -1785,17 +1767,17 @@ static GtkMenu* direct_photo_page_get_context_menu (DirectPhotoPage* self) {
result = _tmp8_;
#line 164 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 1789 "DirectPhotoPage.c"
+#line 1771 "DirectPhotoPage.c"
}
static void direct_photo_page_update_zoom_menu_item_sensitivity (DirectPhotoPage* self) {
gboolean _tmp0_ = FALSE;
ZoomState _tmp1_ = {0};
- gboolean _tmp2_ = FALSE;
+ gboolean _tmp2_;
gboolean _tmp4_ = FALSE;
ZoomState _tmp5_ = {0};
- gboolean _tmp6_ = FALSE;
+ gboolean _tmp6_;
#line 167 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self));
#line 168 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1804,17 +1786,17 @@ static void direct_photo_page_update_zoom_menu_item_sensitivity (DirectPhotoPage
_tmp2_ = zoom_state_is_max (&_tmp1_);
#line 168 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (!_tmp2_) {
-#line 1808 "DirectPhotoPage.c"
- gboolean _tmp3_ = FALSE;
+#line 1790 "DirectPhotoPage.c"
+ gboolean _tmp3_;
#line 168 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp3_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 168 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp0_ = !_tmp3_;
-#line 1814 "DirectPhotoPage.c"
+#line 1796 "DirectPhotoPage.c"
} else {
#line 168 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp0_ = FALSE;
-#line 1818 "DirectPhotoPage.c"
+#line 1800 "DirectPhotoPage.c"
}
#line 168 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", _tmp0_);
@@ -1824,21 +1806,21 @@ static void direct_photo_page_update_zoom_menu_item_sensitivity (DirectPhotoPage
_tmp6_ = zoom_state_is_default (&_tmp5_);
#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (!_tmp6_) {
-#line 1828 "DirectPhotoPage.c"
- gboolean _tmp7_ = FALSE;
+#line 1810 "DirectPhotoPage.c"
+ gboolean _tmp7_;
#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp7_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp4_ = !_tmp7_;
-#line 1834 "DirectPhotoPage.c"
+#line 1816 "DirectPhotoPage.c"
} else {
#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp4_ = FALSE;
-#line 1838 "DirectPhotoPage.c"
+#line 1820 "DirectPhotoPage.c"
}
#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", _tmp4_);
-#line 1842 "DirectPhotoPage.c"
+#line 1824 "DirectPhotoPage.c"
}
@@ -1850,7 +1832,7 @@ static void direct_photo_page_real_on_increase_size (EditingHostPage* base) {
EDITING_HOST_PAGE_CLASS (direct_photo_page_parent_class)->on_increase_size (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
direct_photo_page_update_zoom_menu_item_sensitivity (self);
-#line 1854 "DirectPhotoPage.c"
+#line 1836 "DirectPhotoPage.c"
}
@@ -1862,20 +1844,20 @@ static void direct_photo_page_real_on_decrease_size (EditingHostPage* base) {
EDITING_HOST_PAGE_CLASS (direct_photo_page_parent_class)->on_decrease_size (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 181 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
direct_photo_page_update_zoom_menu_item_sensitivity (self);
-#line 1866 "DirectPhotoPage.c"
+#line 1848 "DirectPhotoPage.c"
}
static void direct_photo_page_on_photos_altered (DirectPhotoPage* self, GeeMap* map) {
gboolean contains = FALSE;
- gboolean _tmp0_ = FALSE;
+ gboolean _tmp0_;
gboolean _tmp14_ = FALSE;
- gboolean _tmp15_ = FALSE;
+ gboolean _tmp15_;
gboolean sensitive = FALSE;
- gboolean _tmp17_ = FALSE;
+ gboolean _tmp17_;
gboolean _tmp19_ = FALSE;
- gboolean _tmp20_ = FALSE;
- gboolean _tmp25_ = FALSE;
+ gboolean _tmp20_;
+ gboolean _tmp25_;
#line 184 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self));
#line 184 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1886,22 +1868,22 @@ static void direct_photo_page_on_photos_altered (DirectPhotoPage* self, GeeMap*
_tmp0_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp0_) {
-#line 1890 "DirectPhotoPage.c"
+#line 1872 "DirectPhotoPage.c"
Photo* photo = NULL;
- Photo* _tmp1_ = NULL;
+ Photo* _tmp1_;
#line 187 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp1_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 187 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
photo = _tmp1_;
-#line 1897 "DirectPhotoPage.c"
+#line 1879 "DirectPhotoPage.c"
{
GeeIterator* _object_it = NULL;
- GeeMap* _tmp2_ = NULL;
- GeeSet* _tmp3_ = NULL;
- GeeSet* _tmp4_ = NULL;
- GeeSet* _tmp5_ = NULL;
- GeeIterator* _tmp6_ = NULL;
- GeeIterator* _tmp7_ = NULL;
+ GeeMap* _tmp2_;
+ GeeSet* _tmp3_;
+ GeeSet* _tmp4_;
+ GeeSet* _tmp5_;
+ GeeIterator* _tmp6_;
+ GeeIterator* _tmp7_;
#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp2_ = map;
#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1920,14 +1902,14 @@ static void direct_photo_page_on_photos_altered (DirectPhotoPage* self, GeeMap*
_object_it = _tmp7_;
#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
while (TRUE) {
-#line 1924 "DirectPhotoPage.c"
- GeeIterator* _tmp8_ = NULL;
- gboolean _tmp9_ = FALSE;
+#line 1906 "DirectPhotoPage.c"
+ GeeIterator* _tmp8_;
+ gboolean _tmp9_;
DataObject* object = NULL;
- GeeIterator* _tmp10_ = NULL;
- gpointer _tmp11_ = NULL;
- DataObject* _tmp12_ = NULL;
- Photo* _tmp13_ = NULL;
+ GeeIterator* _tmp10_;
+ gpointer _tmp11_;
+ DataObject* _tmp12_;
+ Photo* _tmp13_;
#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp8_ = _object_it;
#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -1936,7 +1918,7 @@ static void direct_photo_page_on_photos_altered (DirectPhotoPage* self, GeeMap*
if (!_tmp9_) {
#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
break;
-#line 1940 "DirectPhotoPage.c"
+#line 1922 "DirectPhotoPage.c"
}
#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp10_ = _object_it;
@@ -1956,35 +1938,35 @@ static void direct_photo_page_on_photos_altered (DirectPhotoPage* self, GeeMap*
_g_object_unref0 (object);
#line 192 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
break;
-#line 1960 "DirectPhotoPage.c"
+#line 1942 "DirectPhotoPage.c"
}
#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (object);
-#line 1964 "DirectPhotoPage.c"
+#line 1946 "DirectPhotoPage.c"
}
#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (_object_it);
-#line 1968 "DirectPhotoPage.c"
+#line 1950 "DirectPhotoPage.c"
}
#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (photo);
-#line 1972 "DirectPhotoPage.c"
+#line 1954 "DirectPhotoPage.c"
}
#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp15_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp15_) {
-#line 1978 "DirectPhotoPage.c"
- gboolean _tmp16_ = FALSE;
+#line 1960 "DirectPhotoPage.c"
+ gboolean _tmp16_;
#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp16_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp14_ = !_tmp16_;
-#line 1984 "DirectPhotoPage.c"
+#line 1966 "DirectPhotoPage.c"
} else {
#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp14_ = FALSE;
-#line 1988 "DirectPhotoPage.c"
+#line 1970 "DirectPhotoPage.c"
}
#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
sensitive = _tmp14_;
@@ -1992,23 +1974,23 @@ static void direct_photo_page_on_photos_altered (DirectPhotoPage* self, GeeMap*
_tmp17_ = sensitive;
#line 198 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp17_) {
-#line 1996 "DirectPhotoPage.c"
- gboolean _tmp18_ = FALSE;
+#line 1978 "DirectPhotoPage.c"
+ gboolean _tmp18_;
#line 199 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp18_ = contains;
#line 199 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
sensitive = _tmp18_;
-#line 2002 "DirectPhotoPage.c"
+#line 1984 "DirectPhotoPage.c"
}
#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp20_ = sensitive;
#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp20_) {
-#line 2008 "DirectPhotoPage.c"
- Photo* _tmp21_ = NULL;
- Photo* _tmp22_ = NULL;
- PhotoFileFormat _tmp23_ = 0;
- gboolean _tmp24_ = FALSE;
+#line 1990 "DirectPhotoPage.c"
+ Photo* _tmp21_;
+ Photo* _tmp22_;
+ PhotoFileFormat _tmp23_;
+ gboolean _tmp24_;
#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp21_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -2021,11 +2003,11 @@ static void direct_photo_page_on_photos_altered (DirectPhotoPage* self, GeeMap*
_tmp19_ = _tmp24_;
#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (_tmp22_);
-#line 2025 "DirectPhotoPage.c"
+#line 2007 "DirectPhotoPage.c"
} else {
#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp19_ = FALSE;
-#line 2029 "DirectPhotoPage.c"
+#line 2011 "DirectPhotoPage.c"
}
#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Save", _tmp19_);
@@ -2033,13 +2015,13 @@ static void direct_photo_page_on_photos_altered (DirectPhotoPage* self, GeeMap*
_tmp25_ = sensitive;
#line 202 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp25_);
-#line 2037 "DirectPhotoPage.c"
+#line 2019 "DirectPhotoPage.c"
}
static void direct_photo_page_on_selection_group_altered (DirectPhotoPage* self) {
- CommandManager* _tmp0_ = NULL;
- CommandManager* _tmp1_ = NULL;
+ CommandManager* _tmp0_;
+ CommandManager* _tmp1_;
#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self));
#line 212 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -2050,7 +2032,7 @@ static void direct_photo_page_on_selection_group_altered (DirectPhotoPage* self)
command_manager_reset (_tmp1_);
#line 212 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_command_manager_unref0 (_tmp1_);
-#line 2054 "DirectPhotoPage.c"
+#line 2036 "DirectPhotoPage.c"
}
@@ -2058,11 +2040,11 @@ static gboolean direct_photo_page_real_on_double_click (EditingHostPage* base, G
DirectPhotoPage * self;
gboolean result = FALSE;
FullscreenWindow* fs = NULL;
- GtkWindow* _tmp0_ = NULL;
- FullscreenWindow* _tmp1_ = NULL;
- FullscreenWindow* _tmp2_ = NULL;
- GdkEventButton* _tmp4_ = NULL;
- gboolean _tmp5_ = FALSE;
+ GtkWindow* _tmp0_;
+ FullscreenWindow* _tmp1_;
+ FullscreenWindow* _tmp2_;
+ GdkEventButton* _tmp4_;
+ gboolean _tmp5_;
#line 215 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
#line 215 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -2075,7 +2057,7 @@ static gboolean direct_photo_page_real_on_double_click (EditingHostPage* base, G
if (_tmp1_ == NULL) {
#line 216 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (_tmp0_);
-#line 2079 "DirectPhotoPage.c"
+#line 2061 "DirectPhotoPage.c"
}
#line 216 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
fs = _tmp1_;
@@ -2083,8 +2065,8 @@ static gboolean direct_photo_page_real_on_double_click (EditingHostPage* base, G
_tmp2_ = fs;
#line 217 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp2_ != NULL) {
-#line 2087 "DirectPhotoPage.c"
- FullscreenWindow* _tmp3_ = NULL;
+#line 2069 "DirectPhotoPage.c"
+ FullscreenWindow* _tmp3_;
#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp3_ = fs;
#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -2095,7 +2077,7 @@ static gboolean direct_photo_page_real_on_double_click (EditingHostPage* base, G
_g_object_unref0 (fs);
#line 220 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 2099 "DirectPhotoPage.c"
+#line 2081 "DirectPhotoPage.c"
}
#line 223 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp4_ = event;
@@ -2107,42 +2089,42 @@ static gboolean direct_photo_page_real_on_double_click (EditingHostPage* base, G
_g_object_unref0 (fs);
#line 223 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 2111 "DirectPhotoPage.c"
+#line 2093 "DirectPhotoPage.c"
}
static void direct_photo_page_real_update_ui (EditingHostPage* base, gboolean missing) {
DirectPhotoPage * self;
gboolean sensitivity = FALSE;
- gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_ = FALSE;
- gboolean _tmp4_ = FALSE;
- gboolean _tmp5_ = FALSE;
- gboolean _tmp6_ = FALSE;
- gboolean _tmp7_ = FALSE;
- gboolean _tmp8_ = FALSE;
- gboolean _tmp9_ = FALSE;
- gboolean _tmp10_ = FALSE;
- gboolean _tmp11_ = FALSE;
- gboolean _tmp12_ = FALSE;
- gboolean _tmp13_ = FALSE;
- gboolean _tmp14_ = FALSE;
- gboolean _tmp15_ = FALSE;
- gboolean _tmp16_ = FALSE;
- gboolean _tmp17_ = FALSE;
- gboolean _tmp18_ = FALSE;
- gboolean _tmp19_ = FALSE;
- gboolean _tmp20_ = FALSE;
- gboolean _tmp21_ = FALSE;
- gboolean _tmp22_ = FALSE;
- gboolean _tmp23_ = FALSE;
- gboolean _tmp24_ = FALSE;
- gboolean _tmp25_ = FALSE;
+ gboolean _tmp0_;
+ gboolean _tmp1_;
+ gboolean _tmp2_;
+ gboolean _tmp3_;
+ gboolean _tmp4_;
+ gboolean _tmp5_;
+ gboolean _tmp6_;
+ gboolean _tmp7_;
+ gboolean _tmp8_;
+ gboolean _tmp9_;
+ gboolean _tmp10_;
+ gboolean _tmp11_;
+ gboolean _tmp12_;
+ gboolean _tmp13_;
+ gboolean _tmp14_;
+ gboolean _tmp15_;
+ gboolean _tmp16_;
+ gboolean _tmp17_;
+ gboolean _tmp18_;
+ gboolean _tmp19_;
+ gboolean _tmp20_;
+ gboolean _tmp21_;
+ gboolean _tmp22_;
+ gboolean _tmp23_;
+ gboolean _tmp24_;
+ gboolean _tmp25_;
gboolean _tmp26_ = FALSE;
- gboolean _tmp27_ = FALSE;
- gboolean _tmp29_ = FALSE;
+ gboolean _tmp27_;
+ gboolean _tmp29_;
#line 226 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
#line 227 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -2253,17 +2235,17 @@ static void direct_photo_page_real_update_ui (EditingHostPage* base, gboolean mi
_tmp27_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 258 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp27_) {
-#line 2257 "DirectPhotoPage.c"
- gboolean _tmp28_ = FALSE;
+#line 2239 "DirectPhotoPage.c"
+ gboolean _tmp28_;
#line 258 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp28_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 258 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp26_ = !_tmp28_;
-#line 2263 "DirectPhotoPage.c"
+#line 2245 "DirectPhotoPage.c"
} else {
#line 258 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp26_ = FALSE;
-#line 2267 "DirectPhotoPage.c"
+#line 2249 "DirectPhotoPage.c"
}
#line 258 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", _tmp26_);
@@ -2271,41 +2253,41 @@ static void direct_photo_page_real_update_ui (EditingHostPage* base, gboolean mi
_tmp29_ = missing;
#line 260 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
EDITING_HOST_PAGE_CLASS (direct_photo_page_parent_class)->update_ui (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _tmp29_);
-#line 2275 "DirectPhotoPage.c"
+#line 2257 "DirectPhotoPage.c"
}
static void direct_photo_page_real_update_actions (Page* base, gint selected_count, gint count) {
DirectPhotoPage * self;
gboolean multiple = FALSE;
- ViewCollection* _tmp0_ = NULL;
- ViewCollection* _tmp1_ = NULL;
- gint _tmp2_ = 0;
- gboolean _tmp3_ = FALSE;
+ ViewCollection* _tmp0_;
+ ViewCollection* _tmp1_;
+ gint _tmp2_;
+ gboolean _tmp3_;
gboolean _tmp4_ = FALSE;
- gboolean _tmp5_ = FALSE;
+ gboolean _tmp5_;
gboolean revert_possible = FALSE;
gboolean _tmp12_ = FALSE;
- gboolean _tmp13_ = FALSE;
+ gboolean _tmp13_;
gboolean rotate_possible = FALSE;
gboolean _tmp17_ = FALSE;
- gboolean _tmp18_ = FALSE;
+ gboolean _tmp18_;
gboolean enhance_possible = FALSE;
- gboolean _tmp22_ = FALSE;
- gboolean _tmp23_ = FALSE;
- gboolean _tmp24_ = FALSE;
- gboolean _tmp25_ = FALSE;
- gboolean _tmp26_ = FALSE;
- gboolean _tmp27_ = FALSE;
- gboolean _tmp28_ = FALSE;
- gboolean _tmp29_ = FALSE;
- gboolean _tmp30_ = FALSE;
- gboolean _tmp31_ = FALSE;
- Photo* _tmp40_ = NULL;
- Photo* _tmp41_ = NULL;
- gboolean _tmp42_ = FALSE;
- gint _tmp46_ = 0;
- gint _tmp47_ = 0;
+ gboolean _tmp22_;
+ gboolean _tmp23_;
+ gboolean _tmp24_;
+ gboolean _tmp25_;
+ gboolean _tmp26_;
+ gboolean _tmp27_;
+ gboolean _tmp28_;
+ gboolean _tmp29_;
+ gboolean _tmp30_;
+ gboolean _tmp31_;
+ Photo* _tmp40_;
+ Photo* _tmp41_;
+ gboolean _tmp42_;
+ gint _tmp46_;
+ gint _tmp47_;
#line 263 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -2324,12 +2306,12 @@ static void direct_photo_page_real_update_actions (Page* base, gint selected_cou
_tmp5_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp5_) {
-#line 2328 "DirectPhotoPage.c"
+#line 2310 "DirectPhotoPage.c"
gboolean _tmp6_ = FALSE;
- Photo* _tmp7_ = NULL;
- Photo* _tmp8_ = NULL;
- gboolean _tmp9_ = FALSE;
- gboolean _tmp10_ = FALSE;
+ Photo* _tmp7_;
+ Photo* _tmp8_;
+ gboolean _tmp9_;
+ gboolean _tmp10_;
#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp7_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -2342,25 +2324,25 @@ static void direct_photo_page_real_update_actions (Page* base, gint selected_cou
_g_object_unref0 (_tmp8_);
#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp10_) {
-#line 2346 "DirectPhotoPage.c"
- gboolean _tmp11_ = FALSE;
+#line 2328 "DirectPhotoPage.c"
+ gboolean _tmp11_;
#line 266 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp11_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 266 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp6_ = !_tmp11_;
-#line 2352 "DirectPhotoPage.c"
+#line 2334 "DirectPhotoPage.c"
} else {
#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp6_ = FALSE;
-#line 2356 "DirectPhotoPage.c"
+#line 2338 "DirectPhotoPage.c"
}
#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp4_ = _tmp6_;
-#line 2360 "DirectPhotoPage.c"
+#line 2342 "DirectPhotoPage.c"
} else {
#line 266 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp4_ = FALSE;
-#line 2364 "DirectPhotoPage.c"
+#line 2346 "DirectPhotoPage.c"
}
#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
revert_possible = _tmp4_;
@@ -2368,10 +2350,10 @@ static void direct_photo_page_real_update_actions (Page* base, gint selected_cou
_tmp13_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp13_) {
-#line 2372 "DirectPhotoPage.c"
- Photo* _tmp14_ = NULL;
- Photo* _tmp15_ = NULL;
- gboolean _tmp16_ = FALSE;
+#line 2354 "DirectPhotoPage.c"
+ Photo* _tmp14_;
+ Photo* _tmp15_;
+ gboolean _tmp16_;
#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp14_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -2382,11 +2364,11 @@ static void direct_photo_page_real_update_actions (Page* base, gint selected_cou
_tmp12_ = _tmp16_;
#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (_tmp15_);
-#line 2386 "DirectPhotoPage.c"
+#line 2368 "DirectPhotoPage.c"
} else {
#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp12_ = FALSE;
-#line 2390 "DirectPhotoPage.c"
+#line 2372 "DirectPhotoPage.c"
}
#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
rotate_possible = _tmp12_;
@@ -2394,10 +2376,10 @@ static void direct_photo_page_real_update_actions (Page* base, gint selected_cou
_tmp18_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp18_) {
-#line 2398 "DirectPhotoPage.c"
- Photo* _tmp19_ = NULL;
- Photo* _tmp20_ = NULL;
- gboolean _tmp21_ = FALSE;
+#line 2380 "DirectPhotoPage.c"
+ Photo* _tmp19_;
+ Photo* _tmp20_;
+ gboolean _tmp21_;
#line 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp19_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -2408,11 +2390,11 @@ static void direct_photo_page_real_update_actions (Page* base, gint selected_cou
_tmp17_ = _tmp21_;
#line 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (_tmp20_);
-#line 2412 "DirectPhotoPage.c"
+#line 2394 "DirectPhotoPage.c"
} else {
#line 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp17_ = FALSE;
-#line 2416 "DirectPhotoPage.c"
+#line 2398 "DirectPhotoPage.c"
}
#line 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
enhance_possible = _tmp17_;
@@ -2456,15 +2438,15 @@ static void direct_photo_page_real_update_actions (Page* base, gint selected_cou
_tmp31_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 281 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp31_) {
-#line 2460 "DirectPhotoPage.c"
- Photo* _tmp32_ = NULL;
- Photo* _tmp33_ = NULL;
+#line 2442 "DirectPhotoPage.c"
+ Photo* _tmp32_;
+ Photo* _tmp33_;
Scaling _tmp34_ = {0};
- gboolean _tmp35_ = FALSE;
- Photo* _tmp36_ = NULL;
- Photo* _tmp37_ = NULL;
+ gboolean _tmp35_;
+ Photo* _tmp36_;
+ Photo* _tmp37_;
Scaling _tmp38_ = {0};
- gboolean _tmp39_ = FALSE;
+ gboolean _tmp39_;
#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp32_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -2489,7 +2471,7 @@ static void direct_photo_page_real_update_actions (Page* base, gint selected_cou
page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RedEye", _tmp39_);
#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (_tmp37_);
-#line 2493 "DirectPhotoPage.c"
+#line 2475 "DirectPhotoPage.c"
}
#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp40_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
@@ -2501,10 +2483,10 @@ static void direct_photo_page_real_update_actions (Page* base, gint selected_cou
_g_object_unref0 (_tmp41_);
#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp42_) {
-#line 2505 "DirectPhotoPage.c"
- Photo* _tmp43_ = NULL;
- Photo* _tmp44_ = NULL;
- PhotoFileFormat _tmp45_ = 0;
+#line 2487 "DirectPhotoPage.c"
+ Photo* _tmp43_;
+ Photo* _tmp44_;
+ PhotoFileFormat _tmp45_;
#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp43_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -2515,11 +2497,11 @@ static void direct_photo_page_real_update_actions (Page* base, gint selected_cou
page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", _tmp45_ != PHOTO_FILE_FORMAT_RAW);
#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (_tmp44_);
-#line 2519 "DirectPhotoPage.c"
+#line 2501 "DirectPhotoPage.c"
} else {
#line 292 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", FALSE);
-#line 2523 "DirectPhotoPage.c"
+#line 2505 "DirectPhotoPage.c"
}
#line 295 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp46_ = selected_count;
@@ -2527,38 +2509,36 @@ static void direct_photo_page_real_update_actions (Page* base, gint selected_cou
_tmp47_ = count;
#line 295 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
PAGE_CLASS (direct_photo_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), _tmp46_, _tmp47_);
-#line 2531 "DirectPhotoPage.c"
+#line 2513 "DirectPhotoPage.c"
}
static gboolean direct_photo_page_check_ok_to_close_photo (DirectPhotoPage* self, Photo* photo) {
gboolean result = FALSE;
- Photo* _tmp0_ = NULL;
- Photo* _tmp1_ = NULL;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_ = FALSE;
+ Photo* _tmp0_;
+ Photo* _tmp1_;
+ gboolean _tmp2_;
+ gboolean _tmp3_;
gboolean is_writeable = FALSE;
- Photo* _tmp5_ = NULL;
- Photo* _tmp6_ = NULL;
- PhotoFileFormat _tmp7_ = 0;
- gboolean _tmp8_ = FALSE;
- gboolean _tmp9_ = FALSE;
+ Photo* _tmp5_;
+ Photo* _tmp6_;
+ PhotoFileFormat _tmp7_;
+ gboolean _tmp8_;
+ gboolean _tmp9_;
const gchar* _tmp10_ = NULL;
- gboolean _tmp11_ = FALSE;
+ gboolean _tmp11_;
gchar* save_option = NULL;
- gchar* _tmp14_ = NULL;
+ gchar* _tmp12_;
GtkResponseType response = 0;
- const gchar* _tmp15_ = NULL;
- Photo* _tmp16_ = NULL;
- gchar* _tmp17_ = NULL;
- gchar* _tmp18_ = NULL;
- gchar* _tmp19_ = NULL;
- gchar* _tmp20_ = NULL;
- const gchar* _tmp21_ = NULL;
- const gchar* _tmp22_ = NULL;
- GtkResponseType _tmp23_ = 0;
- GtkResponseType _tmp24_ = 0;
- GtkResponseType _tmp25_ = 0;
+ Photo* _tmp13_;
+ gchar* _tmp14_;
+ gchar* _tmp15_;
+ gchar* _tmp16_;
+ gchar* _tmp17_;
+ const gchar* _tmp18_;
+ GtkResponseType _tmp19_;
+ GtkResponseType _tmp20_;
+ GtkResponseType _tmp21_;
#line 298 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_return_val_if_fail (IS_DIRECT_PHOTO_PAGE (self), FALSE);
#line 298 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -2571,7 +2551,7 @@ static gboolean direct_photo_page_check_ok_to_close_photo (DirectPhotoPage* self
result = TRUE;
#line 302 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 2575 "DirectPhotoPage.c"
+#line 2555 "DirectPhotoPage.c"
}
#line 304 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp1_ = photo;
@@ -2583,14 +2563,14 @@ static gboolean direct_photo_page_check_ok_to_close_photo (DirectPhotoPage* self
result = TRUE;
#line 305 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 2587 "DirectPhotoPage.c"
+#line 2567 "DirectPhotoPage.c"
}
#line 307 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp3_ = self->priv->drop_if_dirty;
#line 307 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp3_) {
-#line 2593 "DirectPhotoPage.c"
- Photo* _tmp4_ = NULL;
+#line 2573 "DirectPhotoPage.c"
+ Photo* _tmp4_;
#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp4_ = photo;
#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -2599,7 +2579,7 @@ static gboolean direct_photo_page_check_ok_to_close_photo (DirectPhotoPage* self
result = TRUE;
#line 312 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 2603 "DirectPhotoPage.c"
+#line 2583 "DirectPhotoPage.c"
}
#line 315 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp5_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
@@ -2619,146 +2599,135 @@ static gboolean direct_photo_page_check_ok_to_close_photo (DirectPhotoPage* self
_tmp11_ = is_writeable;
#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp11_) {
-#line 2623 "DirectPhotoPage.c"
- const gchar* _tmp12_ = NULL;
#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp12_ = _ ("_Save");
-#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp10_ = _tmp12_;
-#line 2629 "DirectPhotoPage.c"
+ _tmp10_ = _ ("_Save");
+#line 2605 "DirectPhotoPage.c"
} else {
- const gchar* _tmp13_ = NULL;
-#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp13_ = _ ("_Save a Copy");
#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp10_ = _tmp13_;
-#line 2636 "DirectPhotoPage.c"
+ _tmp10_ = _ ("_Save a Copy");
+#line 2609 "DirectPhotoPage.c"
}
#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp14_ = g_strdup (_tmp10_);
+ _tmp12_ = g_strdup (_tmp10_);
#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- save_option = _tmp14_;
+ save_option = _tmp12_;
#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp15_ = _ ("Lose changes to %s?");
+ _tmp13_ = photo;
#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp16_ = photo;
+ _tmp14_ = media_source_get_basename (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MEDIA_SOURCE, MediaSource));
#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp17_ = media_source_get_basename (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp18_ = _tmp17_;
-#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp19_ = g_strdup_printf (_tmp15_, _tmp18_);
+ _tmp15_ = _tmp14_;
#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp20_ = _tmp19_;
+ _tmp16_ = g_strdup_printf (_ ("Lose changes to %s?"), _tmp15_);
#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp21_ = save_option;
+ _tmp17_ = _tmp16_;
#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp22_ = _ ("Close _without Saving");
+ _tmp18_ = save_option;
#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp23_ = app_window_negate_affirm_cancel_question (_tmp20_, _tmp21_, _tmp22_, NULL, NULL);
+ _tmp19_ = app_window_negate_affirm_cancel_question (_tmp17_, _tmp18_, _ ("Close _without Saving"), NULL, NULL);
#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp24_ = _tmp23_;
+ _tmp20_ = _tmp19_;
#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp20_);
+ _g_free0 (_tmp17_);
#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp18_);
+ _g_free0 (_tmp15_);
#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- response = _tmp24_;
+ response = _tmp20_;
#line 322 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp25_ = response;
+ _tmp21_ = response;
#line 322 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp25_ == GTK_RESPONSE_YES) {
-#line 2672 "DirectPhotoPage.c"
- Photo* _tmp26_ = NULL;
+ if (_tmp21_ == GTK_RESPONSE_YES) {
+#line 2641 "DirectPhotoPage.c"
+ Photo* _tmp22_;
#line 323 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp26_ = photo;
+ _tmp22_ = photo;
#line 323 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- photo_remove_all_transformations (_tmp26_);
-#line 2678 "DirectPhotoPage.c"
+ photo_remove_all_transformations (_tmp22_);
+#line 2647 "DirectPhotoPage.c"
} else {
- GtkResponseType _tmp27_ = 0;
+ GtkResponseType _tmp23_;
#line 324 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp27_ = response;
+ _tmp23_ = response;
#line 324 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp27_ == GTK_RESPONSE_NO) {
-#line 2685 "DirectPhotoPage.c"
- gboolean _tmp28_ = FALSE;
+ if (_tmp23_ == GTK_RESPONSE_NO) {
+#line 2654 "DirectPhotoPage.c"
+ gboolean _tmp24_;
#line 325 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp28_ = is_writeable;
+ _tmp24_ = is_writeable;
#line 325 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp28_) {
-#line 2691 "DirectPhotoPage.c"
- Photo* _tmp29_ = NULL;
- GFile* _tmp30_ = NULL;
- GFile* _tmp31_ = NULL;
- Photo* _tmp32_ = NULL;
- Photo* _tmp33_ = NULL;
- PhotoFileFormat _tmp34_ = 0;
+ if (_tmp24_) {
+#line 2660 "DirectPhotoPage.c"
+ Photo* _tmp25_;
+ GFile* _tmp26_;
+ GFile* _tmp27_;
+ Photo* _tmp28_;
+ Photo* _tmp29_;
+ PhotoFileFormat _tmp30_;
#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp29_ = photo;
+ _tmp25_ = photo;
#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp30_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_MEDIA_SOURCE, MediaSource));
+ _tmp26_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_MEDIA_SOURCE, MediaSource));
#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp31_ = _tmp30_;
+ _tmp27_ = _tmp26_;
#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp32_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
+ _tmp28_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp33_ = _tmp32_;
+ _tmp29_ = _tmp28_;
#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp34_ = photo_get_file_format (_tmp33_);
+ _tmp30_ = photo_get_file_format (_tmp29_);
#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- direct_photo_page_save (self, _tmp31_, 0, SCALE_CONSTRAINT_ORIGINAL, JPEG_QUALITY_HIGH, _tmp34_, FALSE, TRUE);
+ direct_photo_page_save (self, _tmp27_, 0, SCALE_CONSTRAINT_ORIGINAL, JPEG_QUALITY_HIGH, _tmp30_, FALSE, TRUE);
#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp33_);
+ _g_object_unref0 (_tmp29_);
#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp31_);
-#line 2716 "DirectPhotoPage.c"
+ _g_object_unref0 (_tmp27_);
+#line 2685 "DirectPhotoPage.c"
} else {
#line 329 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
direct_photo_page_on_save_as (self);
-#line 2720 "DirectPhotoPage.c"
+#line 2689 "DirectPhotoPage.c"
}
} else {
- gboolean _tmp35_ = FALSE;
- gboolean _tmp36_ = FALSE;
- GtkResponseType _tmp37_ = 0;
+ gboolean _tmp31_ = FALSE;
+ gboolean _tmp32_ = FALSE;
+ GtkResponseType _tmp33_;
#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp37_ = response;
+ _tmp33_ = response;
#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp37_ == GTK_RESPONSE_CANCEL) {
+ if (_tmp33_ == GTK_RESPONSE_CANCEL) {
#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp36_ = TRUE;
-#line 2732 "DirectPhotoPage.c"
+ _tmp32_ = TRUE;
+#line 2701 "DirectPhotoPage.c"
} else {
- GtkResponseType _tmp38_ = 0;
+ GtkResponseType _tmp34_;
#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp38_ = response;
+ _tmp34_ = response;
#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp36_ = _tmp38_ == GTK_RESPONSE_DELETE_EVENT;
-#line 2739 "DirectPhotoPage.c"
+ _tmp32_ = _tmp34_ == GTK_RESPONSE_DELETE_EVENT;
+#line 2708 "DirectPhotoPage.c"
}
#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp36_) {
+ if (_tmp32_) {
#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp35_ = TRUE;
-#line 2745 "DirectPhotoPage.c"
+ _tmp31_ = TRUE;
+#line 2714 "DirectPhotoPage.c"
} else {
- GtkResponseType _tmp39_ = 0;
+ GtkResponseType _tmp35_;
#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp39_ = response;
+ _tmp35_ = response;
#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp35_ = _tmp39_ == GTK_RESPONSE_CLOSE;
-#line 2752 "DirectPhotoPage.c"
+ _tmp31_ = _tmp35_ == GTK_RESPONSE_CLOSE;
+#line 2721 "DirectPhotoPage.c"
}
#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp35_) {
+ if (_tmp31_) {
#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
result = FALSE;
#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_free0 (save_option);
#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 2762 "DirectPhotoPage.c"
+#line 2731 "DirectPhotoPage.c"
}
}
}
@@ -2768,16 +2737,16 @@ static gboolean direct_photo_page_check_ok_to_close_photo (DirectPhotoPage* self
_g_free0 (save_option);
#line 335 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 2772 "DirectPhotoPage.c"
+#line 2741 "DirectPhotoPage.c"
}
gboolean direct_photo_page_check_quit (DirectPhotoPage* self) {
gboolean result = FALSE;
- Photo* _tmp0_ = NULL;
- Photo* _tmp1_ = NULL;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_ = FALSE;
+ Photo* _tmp0_;
+ Photo* _tmp1_;
+ gboolean _tmp2_;
+ gboolean _tmp3_;
#line 338 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_return_val_if_fail (IS_DIRECT_PHOTO_PAGE (self), FALSE);
#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -2794,7 +2763,7 @@ gboolean direct_photo_page_check_quit (DirectPhotoPage* self) {
result = _tmp3_;
#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 2798 "DirectPhotoPage.c"
+#line 2767 "DirectPhotoPage.c"
}
@@ -2802,7 +2771,7 @@ static gboolean direct_photo_page_real_confirm_replace_photo (EditingHostPage* b
DirectPhotoPage * self;
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
- Photo* _tmp1_ = NULL;
+ Photo* _tmp1_;
#line 342 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
#line 342 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -2813,49 +2782,49 @@ static gboolean direct_photo_page_real_confirm_replace_photo (EditingHostPage* b
_tmp1_ = old_photo;
#line 343 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp1_ != NULL) {
-#line 2817 "DirectPhotoPage.c"
- Photo* _tmp2_ = NULL;
- gboolean _tmp3_ = FALSE;
+#line 2786 "DirectPhotoPage.c"
+ Photo* _tmp2_;
+ gboolean _tmp3_;
#line 343 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp2_ = old_photo;
#line 343 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp3_ = direct_photo_page_check_ok_to_close_photo (self, _tmp2_);
#line 343 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp0_ = _tmp3_;
-#line 2826 "DirectPhotoPage.c"
+#line 2795 "DirectPhotoPage.c"
} else {
#line 343 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp0_ = TRUE;
-#line 2830 "DirectPhotoPage.c"
+#line 2799 "DirectPhotoPage.c"
}
#line 343 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
result = _tmp0_;
#line 343 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 2836 "DirectPhotoPage.c"
+#line 2805 "DirectPhotoPage.c"
}
static void direct_photo_page_save (DirectPhotoPage* self, GFile* dest, gint scale, ScaleConstraint constraint, JpegQuality quality, PhotoFileFormat format, gboolean copy_unmodified, gboolean save_metadata) {
Scaling scaling = {0};
- ScaleConstraint _tmp0_ = 0;
- gint _tmp1_ = 0;
+ ScaleConstraint _tmp0_;
+ gint _tmp1_;
Scaling _tmp2_ = {0};
DirectPhoto* photo = NULL;
- DirectPhotoSourceCollection* _tmp19_ = NULL;
- GFile* _tmp20_ = NULL;
- DirectPhoto* _tmp21_ = NULL;
- gchar* _tmp22_ = NULL;
- gchar* _tmp23_ = NULL;
- Photo* _tmp24_ = NULL;
- Photo* _tmp25_ = NULL;
- DirectPhoto* _tmp26_ = NULL;
- gboolean _tmp27_ = FALSE;
- gboolean _tmp28_ = FALSE;
- DirectPhotoSourceCollection* _tmp33_ = NULL;
- DirectPhoto* _tmp34_ = NULL;
- DirectViewCollection* _tmp35_ = NULL;
- DirectPhoto* _tmp36_ = NULL;
+ DirectPhotoSourceCollection* _tmp18_;
+ GFile* _tmp19_;
+ DirectPhoto* _tmp20_ = NULL;
+ gchar* _tmp21_;
+ gchar* _tmp22_;
+ Photo* _tmp23_;
+ Photo* _tmp24_;
+ DirectPhoto* _tmp25_;
+ gboolean _tmp26_;
+ gboolean _tmp27_;
+ DirectPhotoSourceCollection* _tmp32_;
+ DirectPhoto* _tmp33_;
+ DirectViewCollection* _tmp34_;
+ DirectPhoto* _tmp35_;
GError * _inner_error_ = NULL;
#line 346 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self));
@@ -2869,16 +2838,16 @@ static void direct_photo_page_save (DirectPhotoPage* self, GFile* dest, gint sca
scaling_for_constraint (_tmp0_, _tmp1_, FALSE, &_tmp2_);
#line 348 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
scaling = _tmp2_;
-#line 2873 "DirectPhotoPage.c"
+#line 2842 "DirectPhotoPage.c"
{
- Photo* _tmp3_ = NULL;
- Photo* _tmp4_ = NULL;
- GFile* _tmp5_ = NULL;
- Scaling _tmp6_ = {0};
- JpegQuality _tmp7_ = 0;
- PhotoFileFormat _tmp8_ = 0;
- gboolean _tmp9_ = FALSE;
- gboolean _tmp10_ = FALSE;
+ Photo* _tmp3_;
+ Photo* _tmp4_;
+ GFile* _tmp5_;
+ Scaling _tmp6_;
+ JpegQuality _tmp7_;
+ PhotoFileFormat _tmp8_;
+ gboolean _tmp9_;
+ gboolean _tmp10_;
#line 351 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp3_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 351 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -2901,7 +2870,7 @@ static void direct_photo_page_save (DirectPhotoPage* self, GFile* dest, gint sca
_g_object_unref0 (_tmp4_);
#line 351 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2905 "DirectPhotoPage.c"
+#line 2874 "DirectPhotoPage.c"
goto __catch48_g_error;
}
}
@@ -2909,45 +2878,42 @@ static void direct_photo_page_save (DirectPhotoPage* self, GFile* dest, gint sca
__catch48_g_error:
{
GError* err = NULL;
- const gchar* _tmp11_ = NULL;
- GFile* _tmp12_ = NULL;
- gchar* _tmp13_ = NULL;
- gchar* _tmp14_ = NULL;
- GError* _tmp15_ = NULL;
- const gchar* _tmp16_ = NULL;
- gchar* _tmp17_ = NULL;
- gchar* _tmp18_ = NULL;
+ GFile* _tmp11_;
+ gchar* _tmp12_;
+ gchar* _tmp13_;
+ GError* _tmp14_;
+ const gchar* _tmp15_;
+ gchar* _tmp16_;
+ gchar* _tmp17_;
#line 350 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
err = _inner_error_;
#line 350 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_inner_error_ = NULL;
#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp11_ = _ ("Error while saving to %s: %s");
-#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp12_ = dest;
+ _tmp11_ = dest;
#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp13_ = g_file_get_path (_tmp12_);
+ _tmp12_ = g_file_get_path (_tmp11_);
#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp14_ = _tmp13_;
+ _tmp13_ = _tmp12_;
#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp15_ = err;
+ _tmp14_ = err;
#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp16_ = _tmp15_->message;
+ _tmp15_ = _tmp14_->message;
#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp17_ = g_strdup_printf (_tmp11_, _tmp14_, _tmp16_);
+ _tmp16_ = g_strdup_printf (_ ("Error while saving to %s: %s"), _tmp13_, _tmp15_);
#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp18_ = _tmp17_;
+ _tmp17_ = _tmp16_;
#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- app_window_error_message (_tmp18_, NULL);
+ app_window_error_message (_tmp17_, NULL);
#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp18_);
+ _g_free0 (_tmp17_);
#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp14_);
+ _g_free0 (_tmp13_);
#line 356 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_error_free0 (err);
#line 356 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return;
-#line 2951 "DirectPhotoPage.c"
+#line 2917 "DirectPhotoPage.c"
}
__finally48:
#line 350 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -2958,90 +2924,90 @@ static void direct_photo_page_save (DirectPhotoPage* self, GFile* dest, gint sca
g_clear_error (&_inner_error_);
#line 350 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return;
-#line 2962 "DirectPhotoPage.c"
+#line 2928 "DirectPhotoPage.c"
}
#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp19_ = direct_photo_global;
+ _tmp18_ = direct_photo_global;
#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp20_ = dest;
+ _tmp19_ = dest;
#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp22_ = direct_photo_source_collection_fetch (_tmp19_, _tmp20_, &_tmp21_, TRUE);
+ _tmp21_ = direct_photo_source_collection_fetch (_tmp18_, _tmp19_, &_tmp20_, TRUE);
#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (photo);
#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- photo = _tmp21_;
+ photo = _tmp20_;
#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp23_ = _tmp22_;
+ _tmp22_ = _tmp21_;
#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp23_);
+ _g_free0 (_tmp22_);
#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp24_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
+ _tmp23_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp25_ = _tmp24_;
+ _tmp24_ = _tmp23_;
#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp26_ = photo;
+ _tmp25_ = photo;
#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp27_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_DATA_SOURCE, DataSource));
+ _tmp26_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_SOURCE, DataSource));
#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp28_ = !_tmp27_;
+ _tmp27_ = !_tmp26_;
#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp25_);
+ _g_object_unref0 (_tmp24_);
#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp28_) {
-#line 2992 "DirectPhotoPage.c"
+ if (_tmp27_) {
+#line 2958 "DirectPhotoPage.c"
DirectView* tmp_view = NULL;
- DirectPhoto* _tmp29_ = NULL;
- DirectView* _tmp30_ = NULL;
- DirectViewCollection* _tmp31_ = NULL;
- DirectView* _tmp32_ = NULL;
+ DirectPhoto* _tmp28_;
+ DirectView* _tmp29_;
+ DirectViewCollection* _tmp30_;
+ DirectView* _tmp31_;
#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp29_ = photo;
+ _tmp28_ = photo;
#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp30_ = direct_view_new (_tmp29_);
+ _tmp29_ = direct_view_new (_tmp28_);
#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- tmp_view = _tmp30_;
+ tmp_view = _tmp29_;
#line 365 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp31_ = self->priv->view_controller;
+ _tmp30_ = self->priv->view_controller;
#line 365 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp32_ = tmp_view;
+ _tmp31_ = tmp_view;
#line 365 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_DATA_OBJECT, DataObject));
+ data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_DATA_OBJECT, DataObject));
#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (tmp_view);
-#line 3012 "DirectPhotoPage.c"
+#line 2978 "DirectPhotoPage.c"
}
#line 368 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp33_ = direct_photo_global;
+ _tmp32_ = direct_photo_global;
#line 368 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp34_ = photo;
+ _tmp33_ = photo;
#line 368 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- direct_photo_source_collection_reimport_photo (_tmp33_, _tmp34_);
+ direct_photo_source_collection_reimport_photo (_tmp32_, _tmp33_);
#line 369 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp35_ = self->priv->view_controller;
+ _tmp34_ = self->priv->view_controller;
#line 369 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp36_ = photo;
+ _tmp35_ = photo;
#line 369 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- editing_host_page_display_mirror_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_VIEW_COLLECTION, ViewCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_PHOTO, Photo));
+ editing_host_page_display_mirror_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_VIEW_COLLECTION, ViewCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_PHOTO, Photo));
#line 346 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (photo);
-#line 3028 "DirectPhotoPage.c"
+#line 2994 "DirectPhotoPage.c"
}
static void direct_photo_page_on_save (DirectPhotoPage* self) {
gboolean _tmp0_ = FALSE;
gboolean _tmp1_ = FALSE;
- Photo* _tmp2_ = NULL;
- Photo* _tmp3_ = NULL;
- gboolean _tmp4_ = FALSE;
- gboolean _tmp5_ = FALSE;
- Photo* _tmp11_ = NULL;
- Photo* _tmp12_ = NULL;
- GFile* _tmp13_ = NULL;
- GFile* _tmp14_ = NULL;
- Photo* _tmp15_ = NULL;
- Photo* _tmp16_ = NULL;
- PhotoFileFormat _tmp17_ = 0;
+ Photo* _tmp2_;
+ Photo* _tmp3_;
+ gboolean _tmp4_;
+ gboolean _tmp5_;
+ Photo* _tmp11_;
+ Photo* _tmp12_;
+ GFile* _tmp13_;
+ GFile* _tmp14_;
+ Photo* _tmp15_;
+ Photo* _tmp16_;
+ PhotoFileFormat _tmp17_;
#line 372 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self));
#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -3058,12 +3024,12 @@ static void direct_photo_page_on_save (DirectPhotoPage* self) {
if (_tmp5_) {
#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp1_ = TRUE;
-#line 3062 "DirectPhotoPage.c"
+#line 3028 "DirectPhotoPage.c"
} else {
- Photo* _tmp6_ = NULL;
- Photo* _tmp7_ = NULL;
- PhotoFileFormat _tmp8_ = 0;
- gboolean _tmp9_ = FALSE;
+ Photo* _tmp6_;
+ Photo* _tmp7_;
+ PhotoFileFormat _tmp8_;
+ gboolean _tmp9_;
#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp6_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -3076,26 +3042,26 @@ static void direct_photo_page_on_save (DirectPhotoPage* self) {
_tmp1_ = !_tmp9_;
#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (_tmp7_);
-#line 3080 "DirectPhotoPage.c"
+#line 3046 "DirectPhotoPage.c"
}
#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp1_) {
#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp0_ = TRUE;
-#line 3086 "DirectPhotoPage.c"
+#line 3052 "DirectPhotoPage.c"
} else {
- gboolean _tmp10_ = FALSE;
+ gboolean _tmp10_;
#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp10_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp0_ = _tmp10_;
-#line 3093 "DirectPhotoPage.c"
+#line 3059 "DirectPhotoPage.c"
}
#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp0_) {
#line 375 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return;
-#line 3099 "DirectPhotoPage.c"
+#line 3065 "DirectPhotoPage.c"
}
#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp11_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
@@ -3119,370 +3085,364 @@ static void direct_photo_page_on_save (DirectPhotoPage* self) {
_g_object_unref0 (_tmp14_);
#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (_tmp12_);
-#line 3123 "DirectPhotoPage.c"
+#line 3089 "DirectPhotoPage.c"
}
static void direct_photo_page_on_save_as (DirectPhotoPage* self) {
ExportDialog* export_dialog = NULL;
- const gchar* _tmp0_ = NULL;
- ExportDialog* _tmp1_ = NULL;
+ ExportDialog* _tmp0_;
gint scale = 0;
ScaleConstraint constraint = 0;
ExportFormatParameters export_params = {0};
- ExportFormatParameters _tmp2_ = {0};
- ExportDialog* _tmp3_ = NULL;
- gint _tmp4_ = 0;
- ScaleConstraint _tmp5_ = 0;
- gboolean _tmp6_ = FALSE;
+ ExportFormatParameters _tmp1_ = {0};
+ ExportDialog* _tmp2_;
+ gint _tmp3_ = 0;
+ ScaleConstraint _tmp4_ = 0;
+ gboolean _tmp5_;
gchar* filename = NULL;
- Photo* _tmp7_ = NULL;
- Photo* _tmp8_ = NULL;
- ExportFormatParameters _tmp9_ = {0};
- gchar* _tmp10_ = NULL;
- gchar* _tmp11_ = NULL;
+ Photo* _tmp6_;
+ Photo* _tmp7_;
+ ExportFormatParameters _tmp8_;
+ gchar* _tmp9_;
+ gchar* _tmp10_;
PhotoFileFormat effective_export_format = 0;
- Photo* _tmp12_ = NULL;
- Photo* _tmp13_ = NULL;
- ExportFormatParameters _tmp14_ = {0};
- PhotoFileFormat _tmp15_ = 0;
- PhotoFileFormat _tmp16_ = 0;
+ Photo* _tmp11_;
+ Photo* _tmp12_;
+ ExportFormatParameters _tmp13_;
+ PhotoFileFormat _tmp14_;
+ PhotoFileFormat _tmp15_;
gchar** output_format_extensions = NULL;
- PhotoFileFormat _tmp17_ = 0;
- PhotoFileFormatProperties* _tmp18_ = NULL;
- PhotoFileFormatProperties* _tmp19_ = NULL;
- gint _tmp20_ = 0;
- gchar** _tmp21_ = NULL;
- gchar** _tmp22_ = NULL;
- gint _tmp22__length1 = 0;
- gint output_format_extensions_length1 = 0;
- gint _output_format_extensions_size_ = 0;
+ PhotoFileFormat _tmp16_;
+ PhotoFileFormatProperties* _tmp17_;
+ PhotoFileFormatProperties* _tmp18_;
+ gint _tmp19_;
+ gchar** _tmp20_;
+ gchar** _tmp21_;
+ gint _tmp21__length1;
+ gint output_format_extensions_length1;
+ gint _output_format_extensions_size_;
GtkFileFilter* output_format_filter = NULL;
- GtkFileFilter* _tmp23_ = NULL;
- gchar** _tmp24_ = NULL;
- gint _tmp24__length1 = 0;
+ GtkFileFilter* _tmp22_;
+ gchar** _tmp23_;
+ gint _tmp23__length1;
GtkFileChooserDialog* save_as_dialog = NULL;
- const gchar* _tmp36_ = NULL;
- AppWindow* _tmp37_ = NULL;
- AppWindow* _tmp38_ = NULL;
- GtkFileChooserDialog* _tmp39_ = NULL;
- GtkFileChooserDialog* _tmp40_ = NULL;
- GtkFileChooserDialog* _tmp41_ = NULL;
- GtkFileChooserDialog* _tmp42_ = NULL;
- const gchar* _tmp43_ = NULL;
- GtkFileChooserDialog* _tmp44_ = NULL;
- GFile* _tmp45_ = NULL;
- gchar* _tmp46_ = NULL;
- gchar* _tmp47_ = NULL;
- GtkFileChooserDialog* _tmp48_ = NULL;
- GtkFileFilter* _tmp49_ = NULL;
- GtkFileFilter* _tmp50_ = NULL;
- GtkFileChooserDialog* _tmp51_ = NULL;
- GtkFileChooserDialog* _tmp52_ = NULL;
+ AppWindow* _tmp35_;
+ AppWindow* _tmp36_;
+ GtkFileChooserDialog* _tmp37_;
+ GtkFileChooserDialog* _tmp38_;
+ GtkFileChooserDialog* _tmp39_;
+ GtkFileChooserDialog* _tmp40_;
+ const gchar* _tmp41_;
+ GtkFileChooserDialog* _tmp42_;
+ GFile* _tmp43_;
+ gchar* _tmp44_;
+ gchar* _tmp45_;
+ GtkFileChooserDialog* _tmp46_;
+ GtkFileFilter* _tmp47_;
+ GtkFileFilter* _tmp48_;
+ GtkFileChooserDialog* _tmp49_;
+ GtkFileChooserDialog* _tmp50_;
gint response = 0;
- GtkFileChooserDialog* _tmp53_ = NULL;
- gint _tmp54_ = 0;
- gint _tmp55_ = 0;
- GtkFileChooserDialog* _tmp74_ = NULL;
+ GtkFileChooserDialog* _tmp51_;
+ gint _tmp52_;
+ gint _tmp53_;
+ GtkFileChooserDialog* _tmp72_;
#line 382 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self));
#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp0_ = _ ("Save As");
-#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp1_ = export_dialog_new (_tmp0_);
+ _tmp0_ = export_dialog_new (_ ("Save As"));
#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_object_ref_sink (_tmp1_);
+ g_object_ref_sink (_tmp0_);
#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- export_dialog = _tmp1_;
+ export_dialog = _tmp0_;
#line 387 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- export_format_parameters_last (&_tmp2_);
+ export_format_parameters_last (&_tmp1_);
#line 387 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- export_params = _tmp2_;
+ export_params = _tmp1_;
#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp3_ = export_dialog;
+ _tmp2_ = export_dialog;
#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp6_ = export_dialog_execute (_tmp3_, &_tmp4_, &_tmp5_, &export_params);
+ _tmp5_ = export_dialog_execute (_tmp2_, &_tmp3_, &_tmp4_, &export_params);
#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- scale = _tmp4_;
+ scale = _tmp3_;
#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- constraint = _tmp5_;
+ constraint = _tmp4_;
#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (!_tmp6_) {
+ if (!_tmp5_) {
#line 389 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (export_dialog);
#line 389 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return;
-#line 3216 "DirectPhotoPage.c"
+#line 3178 "DirectPhotoPage.c"
}
#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp7_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
+ _tmp6_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp8_ = _tmp7_;
+ _tmp7_ = _tmp6_;
#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp9_ = export_params;
+ _tmp8_ = export_params;
#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp10_ = photo_get_export_basename_for_parameters (_tmp8_, &_tmp9_);
+ _tmp9_ = photo_get_export_basename_for_parameters (_tmp7_, &_tmp8_);
#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp11_ = _tmp10_;
+ _tmp10_ = _tmp9_;
#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp8_);
+ _g_object_unref0 (_tmp7_);
#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- filename = _tmp11_;
+ filename = _tmp10_;
#line 392 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp12_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
+ _tmp11_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 392 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp13_ = _tmp12_;
+ _tmp12_ = _tmp11_;
#line 392 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp14_ = export_params;
+ _tmp13_ = export_params;
#line 392 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp15_ = photo_get_export_format_for_parameters (_tmp13_, &_tmp14_);
+ _tmp14_ = photo_get_export_format_for_parameters (_tmp12_, &_tmp13_);
#line 392 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp16_ = _tmp15_;
+ _tmp15_ = _tmp14_;
#line 392 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp13_);
+ _g_object_unref0 (_tmp12_);
#line 392 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- effective_export_format = _tmp16_;
+ effective_export_format = _tmp15_;
#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp17_ = effective_export_format;
+ _tmp16_ = effective_export_format;
#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp18_ = photo_file_format_get_properties (_tmp17_);
+ _tmp17_ = photo_file_format_get_properties (_tmp16_);
#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp19_ = _tmp18_;
+ _tmp18_ = _tmp17_;
#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp21_ = photo_file_format_properties_get_known_extensions (_tmp19_, &_tmp20_);
+ _tmp20_ = photo_file_format_properties_get_known_extensions (_tmp18_, &_tmp19_);
#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp22_ = _tmp21_;
+ _tmp21_ = _tmp20_;
#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp22__length1 = _tmp20_;
+ _tmp21__length1 = _tmp19_;
#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _photo_file_format_properties_unref0 (_tmp19_);
+ _photo_file_format_properties_unref0 (_tmp18_);
#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- output_format_extensions = _tmp22_;
+ output_format_extensions = _tmp21_;
#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- output_format_extensions_length1 = _tmp22__length1;
+ output_format_extensions_length1 = _tmp21__length1;
#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_output_format_extensions_size_ = output_format_extensions_length1;
#line 397 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp23_ = gtk_file_filter_new ();
+ _tmp22_ = gtk_file_filter_new ();
#line 397 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_object_ref_sink (_tmp23_);
+ g_object_ref_sink (_tmp22_);
#line 397 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- output_format_filter = _tmp23_;
+ output_format_filter = _tmp22_;
#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp24_ = output_format_extensions;
+ _tmp23_ = output_format_extensions;
#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp24__length1 = output_format_extensions_length1;
-#line 3276 "DirectPhotoPage.c"
+ _tmp23__length1 = output_format_extensions_length1;
+#line 3238 "DirectPhotoPage.c"
{
gchar** extension_collection = NULL;
gint extension_collection_length1 = 0;
gint _extension_collection_size_ = 0;
gint extension_it = 0;
#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- extension_collection = _tmp24_;
+ extension_collection = _tmp23_;
#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- extension_collection_length1 = _tmp24__length1;
+ extension_collection_length1 = _tmp23__length1;
#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- for (extension_it = 0; extension_it < _tmp24__length1; extension_it = extension_it + 1) {
-#line 3288 "DirectPhotoPage.c"
- gchar* _tmp25_ = NULL;
+ for (extension_it = 0; extension_it < _tmp23__length1; extension_it = extension_it + 1) {
+#line 3250 "DirectPhotoPage.c"
+ gchar* _tmp24_;
gchar* extension = NULL;
#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp25_ = g_strdup (extension_collection[extension_it]);
+ _tmp24_ = g_strdup (extension_collection[extension_it]);
#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- extension = _tmp25_;
-#line 3295 "DirectPhotoPage.c"
+ extension = _tmp24_;
+#line 3257 "DirectPhotoPage.c"
{
gchar* uppercase_extension = NULL;
- const gchar* _tmp26_ = NULL;
- gchar* _tmp27_ = NULL;
- GtkFileFilter* _tmp28_ = NULL;
- const gchar* _tmp29_ = NULL;
- gchar* _tmp30_ = NULL;
- gchar* _tmp31_ = NULL;
- GtkFileFilter* _tmp32_ = NULL;
- const gchar* _tmp33_ = NULL;
- gchar* _tmp34_ = NULL;
- gchar* _tmp35_ = NULL;
+ const gchar* _tmp25_;
+ gchar* _tmp26_;
+ GtkFileFilter* _tmp27_;
+ const gchar* _tmp28_;
+ gchar* _tmp29_;
+ gchar* _tmp30_;
+ GtkFileFilter* _tmp31_;
+ const gchar* _tmp32_;
+ gchar* _tmp33_;
+ gchar* _tmp34_;
#line 399 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp26_ = extension;
+ _tmp25_ = extension;
#line 399 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp27_ = g_utf8_strup (_tmp26_, (gssize) -1);
+ _tmp26_ = g_utf8_strup (_tmp25_, (gssize) -1);
#line 399 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- uppercase_extension = _tmp27_;
+ uppercase_extension = _tmp26_;
#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp28_ = output_format_filter;
+ _tmp27_ = output_format_filter;
#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp29_ = extension;
+ _tmp28_ = extension;
#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp30_ = g_strconcat ("*.", _tmp29_, NULL);
+ _tmp29_ = g_strconcat ("*.", _tmp28_, NULL);
#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp31_ = _tmp30_;
+ _tmp30_ = _tmp29_;
#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_file_filter_add_pattern (_tmp28_, _tmp31_);
+ gtk_file_filter_add_pattern (_tmp27_, _tmp30_);
#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp31_);
+ _g_free0 (_tmp30_);
#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp32_ = output_format_filter;
+ _tmp31_ = output_format_filter;
#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp33_ = uppercase_extension;
+ _tmp32_ = uppercase_extension;
#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp34_ = g_strconcat ("*.", _tmp33_, NULL);
+ _tmp33_ = g_strconcat ("*.", _tmp32_, NULL);
#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp35_ = _tmp34_;
+ _tmp34_ = _tmp33_;
#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_file_filter_add_pattern (_tmp32_, _tmp35_);
+ gtk_file_filter_add_pattern (_tmp31_, _tmp34_);
#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp35_);
+ _g_free0 (_tmp34_);
#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_free0 (uppercase_extension);
#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_free0 (extension);
-#line 3342 "DirectPhotoPage.c"
+#line 3304 "DirectPhotoPage.c"
}
}
}
#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp36_ = _ ("Save As");
-#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp37_ = app_window_get_instance ();
+ _tmp35_ = app_window_get_instance ();
#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp38_ = _tmp37_;
+ _tmp36_ = _tmp35_;
#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp39_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new (_tmp36_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_window_get_type (), GtkWindow), GTK_FILE_CHOOSER_ACTION_SAVE, RESOURCES_CANCEL_LABEL, GTK_RESPONSE_CANCEL, RESOURCES_OK_LABEL, GTK_RESPONSE_OK, NULL);
+ _tmp37_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new (_ ("Save As"), G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_window_get_type (), GtkWindow), GTK_FILE_CHOOSER_ACTION_SAVE, RESOURCES_CANCEL_LABEL, GTK_RESPONSE_CANCEL, RESOURCES_OK_LABEL, GTK_RESPONSE_OK, NULL);
#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- g_object_ref_sink (_tmp39_);
+ g_object_ref_sink (_tmp37_);
#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp40_ = _tmp39_;
+ _tmp38_ = _tmp37_;
#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp38_);
+ _g_object_unref0 (_tmp36_);
#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- save_as_dialog = _tmp40_;
+ save_as_dialog = _tmp38_;
#line 407 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp41_ = save_as_dialog;
+ _tmp39_ = save_as_dialog;
#line 407 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_file_chooser_set_select_multiple (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser), FALSE);
+ gtk_file_chooser_set_select_multiple (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser), FALSE);
#line 408 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp42_ = save_as_dialog;
+ _tmp40_ = save_as_dialog;
#line 408 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp43_ = filename;
+ _tmp41_ = filename;
#line 408 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_file_chooser_set_current_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser), _tmp43_);
+ gtk_file_chooser_set_current_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser), _tmp41_);
#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp44_ = save_as_dialog;
+ _tmp42_ = save_as_dialog;
#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp45_ = self->priv->current_save_dir;
+ _tmp43_ = self->priv->current_save_dir;
#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp46_ = g_file_get_path (_tmp45_);
+ _tmp44_ = g_file_get_path (_tmp43_);
#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp47_ = _tmp46_;
+ _tmp45_ = _tmp44_;
#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_file_chooser_set_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser), _tmp47_);
+ gtk_file_chooser_set_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser), _tmp45_);
#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp47_);
+ _g_free0 (_tmp45_);
#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp48_ = save_as_dialog;
+ _tmp46_ = save_as_dialog;
#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp49_ = output_format_filter;
+ _tmp47_ = output_format_filter;
#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp50_ = _g_object_ref0 (_tmp49_);
+ _tmp48_ = _g_object_ref0 (_tmp47_);
#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_file_chooser_add_filter (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser), _tmp50_);
+ gtk_file_chooser_add_filter (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser), _tmp48_);
#line 411 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp51_ = save_as_dialog;
+ _tmp49_ = save_as_dialog;
#line 411 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_file_chooser_set_do_overwrite_confirmation (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser), TRUE);
+ gtk_file_chooser_set_do_overwrite_confirmation (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser), TRUE);
#line 412 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp52_ = save_as_dialog;
+ _tmp50_ = save_as_dialog;
#line 412 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_file_chooser_set_local_only (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser), FALSE);
+ gtk_file_chooser_set_local_only (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser), FALSE);
#line 414 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp53_ = save_as_dialog;
+ _tmp51_ = save_as_dialog;
#line 414 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp54_ = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_dialog_get_type (), GtkDialog));
+ _tmp52_ = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, gtk_dialog_get_type (), GtkDialog));
#line 414 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- response = _tmp54_;
+ response = _tmp52_;
#line 415 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp55_ = response;
+ _tmp53_ = response;
#line 415 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- if (_tmp55_ == ((gint) GTK_RESPONSE_OK)) {
-#line 3410 "DirectPhotoPage.c"
- GtkFileChooserDialog* _tmp56_ = NULL;
- gchar* _tmp57_ = NULL;
- gchar* _tmp58_ = NULL;
- GFile* _tmp59_ = NULL;
- GFile* _tmp60_ = NULL;
- gint _tmp61_ = 0;
- ScaleConstraint _tmp62_ = 0;
- ExportFormatParameters _tmp63_ = {0};
- JpegQuality _tmp64_ = 0;
- PhotoFileFormat _tmp65_ = 0;
- ExportFormatParameters _tmp66_ = {0};
- ExportFormatMode _tmp67_ = 0;
- ExportFormatParameters _tmp68_ = {0};
- gboolean _tmp69_ = FALSE;
- GtkFileChooserDialog* _tmp70_ = NULL;
- gchar* _tmp71_ = NULL;
- gchar* _tmp72_ = NULL;
- GFile* _tmp73_ = NULL;
+ if (_tmp53_ == ((gint) GTK_RESPONSE_OK)) {
+#line 3370 "DirectPhotoPage.c"
+ GtkFileChooserDialog* _tmp54_;
+ gchar* _tmp55_;
+ gchar* _tmp56_;
+ GFile* _tmp57_;
+ GFile* _tmp58_;
+ gint _tmp59_;
+ ScaleConstraint _tmp60_;
+ ExportFormatParameters _tmp61_;
+ JpegQuality _tmp62_;
+ PhotoFileFormat _tmp63_;
+ ExportFormatParameters _tmp64_;
+ ExportFormatMode _tmp65_;
+ ExportFormatParameters _tmp66_;
+ gboolean _tmp67_;
+ GtkFileChooserDialog* _tmp68_;
+ gchar* _tmp69_;
+ gchar* _tmp70_;
+ GFile* _tmp71_;
#line 418 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self->priv->drop_if_dirty = TRUE;
#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp56_ = save_as_dialog;
+ _tmp54_ = save_as_dialog;
#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp57_ = gtk_file_chooser_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser));
+ _tmp55_ = gtk_file_chooser_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser));
#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp58_ = _tmp57_;
+ _tmp56_ = _tmp55_;
#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp59_ = g_file_new_for_uri (_tmp58_);
+ _tmp57_ = g_file_new_for_uri (_tmp56_);
#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp60_ = _tmp59_;
+ _tmp58_ = _tmp57_;
#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp61_ = scale;
+ _tmp59_ = scale;
#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp62_ = constraint;
+ _tmp60_ = constraint;
#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp63_ = export_params;
+ _tmp61_ = export_params;
#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp64_ = _tmp63_.quality;
+ _tmp62_ = _tmp61_.quality;
#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp65_ = effective_export_format;
+ _tmp63_ = effective_export_format;
#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp66_ = export_params;
+ _tmp64_ = export_params;
#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp67_ = _tmp66_.mode;
+ _tmp65_ = _tmp64_.mode;
#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp68_ = export_params;
+ _tmp66_ = export_params;
#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp69_ = _tmp68_.export_metadata;
+ _tmp67_ = _tmp66_.export_metadata;
#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- direct_photo_page_save (self, _tmp60_, _tmp61_, _tmp62_, _tmp64_, _tmp65_, _tmp67_ == EXPORT_FORMAT_MODE_UNMODIFIED, _tmp69_);
+ direct_photo_page_save (self, _tmp58_, _tmp59_, _tmp60_, _tmp62_, _tmp63_, _tmp65_ == EXPORT_FORMAT_MODE_UNMODIFIED, _tmp67_);
#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_object_unref0 (_tmp60_);
+ _g_object_unref0 (_tmp58_);
#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp58_);
+ _g_free0 (_tmp56_);
#line 422 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self->priv->drop_if_dirty = FALSE;
#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp70_ = save_as_dialog;
+ _tmp68_ = save_as_dialog;
#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp71_ = gtk_file_chooser_get_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser));
+ _tmp69_ = gtk_file_chooser_get_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser));
#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp72_ = _tmp71_;
+ _tmp70_ = _tmp69_;
#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp73_ = g_file_new_for_path (_tmp72_);
+ _tmp71_ = g_file_new_for_path (_tmp70_);
#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (self->priv->current_save_dir);
#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- self->priv->current_save_dir = _tmp73_;
+ self->priv->current_save_dir = _tmp71_;
#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _g_free0 (_tmp72_);
-#line 3481 "DirectPhotoPage.c"
+ _g_free0 (_tmp70_);
+#line 3441 "DirectPhotoPage.c"
}
#line 427 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- _tmp74_ = save_as_dialog;
+ _tmp72_ = save_as_dialog;
#line 427 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, gtk_widget_get_type (), GtkWidget));
+ gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, gtk_widget_get_type (), GtkWidget));
#line 382 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (save_as_dialog);
#line 382 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -3493,23 +3453,23 @@ static void direct_photo_page_on_save_as (DirectPhotoPage* self) {
_g_free0 (filename);
#line 382 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_g_object_unref0 (export_dialog);
-#line 3497 "DirectPhotoPage.c"
+#line 3457 "DirectPhotoPage.c"
}
static void direct_photo_page_on_send_to (DirectPhotoPage* self) {
- gboolean _tmp0_ = FALSE;
+ gboolean _tmp0_;
#line 430 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self));
#line 431 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp0_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 431 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp0_) {
-#line 3509 "DirectPhotoPage.c"
- ViewCollection* _tmp1_ = NULL;
- ViewCollection* _tmp2_ = NULL;
- GeeList* _tmp3_ = NULL;
- GeeCollection* _tmp4_ = NULL;
+#line 3469 "DirectPhotoPage.c"
+ ViewCollection* _tmp1_;
+ ViewCollection* _tmp2_;
+ GeeList* _tmp3_;
+ GeeCollection* _tmp4_;
#line 432 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 432 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -3524,7 +3484,7 @@ static void direct_photo_page_on_send_to (DirectPhotoPage* self) {
_g_object_unref0 (_tmp4_);
#line 432 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_data_collection_unref0 (_tmp2_);
-#line 3528 "DirectPhotoPage.c"
+#line 3488 "DirectPhotoPage.c"
}
}
@@ -3533,18 +3493,18 @@ static gboolean direct_photo_page_real_on_app_key_pressed (Page* base, GdkEventK
DirectPhotoPage * self;
gboolean result = FALSE;
gboolean handled = FALSE;
- GdkEventKey* _tmp0_ = NULL;
- guint _tmp1_ = 0U;
- const gchar* _tmp2_ = NULL;
- const gchar* _tmp3_ = NULL;
+ GdkEventKey* _tmp0_;
+ guint _tmp1_;
+ const gchar* _tmp2_;
+ const gchar* _tmp3_;
GQuark _tmp5_ = 0U;
#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
static GQuark _tmp4_label0 = 0;
#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
static GQuark _tmp4_label1 = 0;
-#line 3546 "DirectPhotoPage.c"
+#line 3506 "DirectPhotoPage.c"
gboolean _tmp6_ = FALSE;
- gboolean _tmp7_ = FALSE;
+ gboolean _tmp7_;
#line 435 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
#line 435 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -3565,40 +3525,40 @@ static gboolean direct_photo_page_real_on_app_key_pressed (Page* base, GdkEventK
if (_tmp5_ == ((0 != _tmp4_label0) ? _tmp4_label0 : (_tmp4_label0 = g_quark_from_static_string ("bracketright")))) {
#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
switch (0) {
-#line 3569 "DirectPhotoPage.c"
+#line 3529 "DirectPhotoPage.c"
default:
{
#line 440 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise");
#line 441 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
break;
-#line 3576 "DirectPhotoPage.c"
+#line 3536 "DirectPhotoPage.c"
}
}
} else if (_tmp5_ == ((0 != _tmp4_label1) ? _tmp4_label1 : (_tmp4_label1 = g_quark_from_static_string ("bracketleft")))) {
#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
switch (0) {
-#line 3582 "DirectPhotoPage.c"
+#line 3542 "DirectPhotoPage.c"
default:
{
#line 444 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise");
#line 445 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
break;
-#line 3589 "DirectPhotoPage.c"
+#line 3549 "DirectPhotoPage.c"
}
}
} else {
#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
switch (0) {
-#line 3595 "DirectPhotoPage.c"
+#line 3555 "DirectPhotoPage.c"
default:
{
#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
handled = FALSE;
#line 449 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
break;
-#line 3602 "DirectPhotoPage.c"
+#line 3562 "DirectPhotoPage.c"
}
}
}
@@ -3608,31 +3568,31 @@ static gboolean direct_photo_page_real_on_app_key_pressed (Page* base, GdkEventK
if (_tmp7_) {
#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp6_ = TRUE;
-#line 3612 "DirectPhotoPage.c"
+#line 3572 "DirectPhotoPage.c"
} else {
- GdkEventKey* _tmp8_ = NULL;
- gboolean _tmp9_ = FALSE;
+ GdkEventKey* _tmp8_;
+ gboolean _tmp9_;
#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp8_ = event;
#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp9_ = PAGE_CLASS (direct_photo_page_parent_class)->on_app_key_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), _tmp8_);
#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp6_ = _tmp9_;
-#line 3622 "DirectPhotoPage.c"
+#line 3582 "DirectPhotoPage.c"
}
#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
result = _tmp6_;
#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 3628 "DirectPhotoPage.c"
+#line 3588 "DirectPhotoPage.c"
}
static void direct_photo_page_on_print (DirectPhotoPage* self) {
- ViewCollection* _tmp0_ = NULL;
- ViewCollection* _tmp1_ = NULL;
- gint _tmp2_ = 0;
- gboolean _tmp3_ = FALSE;
+ ViewCollection* _tmp0_;
+ ViewCollection* _tmp1_;
+ gint _tmp2_;
+ gboolean _tmp3_;
#line 455 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self));
#line 456 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -3647,13 +3607,13 @@ static void direct_photo_page_on_print (DirectPhotoPage* self) {
_data_collection_unref0 (_tmp1_);
#line 456 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (_tmp3_) {
-#line 3651 "DirectPhotoPage.c"
- PrintManager* _tmp4_ = NULL;
- PrintManager* _tmp5_ = NULL;
- ViewCollection* _tmp6_ = NULL;
- ViewCollection* _tmp7_ = NULL;
- GeeList* _tmp8_ = NULL;
- GeeCollection* _tmp9_ = NULL;
+#line 3611 "DirectPhotoPage.c"
+ PrintManager* _tmp4_;
+ PrintManager* _tmp5_;
+ ViewCollection* _tmp6_;
+ ViewCollection* _tmp7_;
+ GeeList* _tmp8_;
+ GeeCollection* _tmp9_;
#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_tmp4_ = print_manager_get_instance ();
#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -3674,7 +3634,7 @@ static void direct_photo_page_on_print (DirectPhotoPage* self) {
_data_collection_unref0 (_tmp7_);
#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_print_manager_unref0 (_tmp5_);
-#line 3678 "DirectPhotoPage.c"
+#line 3638 "DirectPhotoPage.c"
}
}
@@ -3684,7 +3644,7 @@ static Block7Data* block7_data_ref (Block7Data* _data7_) {
g_atomic_int_inc (&_data7_->_ref_count_);
#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return _data7_;
-#line 3688 "DirectPhotoPage.c"
+#line 3648 "DirectPhotoPage.c"
}
@@ -3693,7 +3653,7 @@ static void block7_data_unref (void * _userdata_) {
_data7_ = (Block7Data*) _userdata_;
#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
if (g_atomic_int_dec_and_test (&_data7_->_ref_count_)) {
-#line 3697 "DirectPhotoPage.c"
+#line 3657 "DirectPhotoPage.c"
DirectPhotoPage* self;
#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self = _data7_->self;
@@ -3701,7 +3661,7 @@ static void block7_data_unref (void * _userdata_) {
_g_object_unref0 (self);
#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_slice_free (Block7Data, _data7_);
-#line 3705 "DirectPhotoPage.c"
+#line 3665 "DirectPhotoPage.c"
}
}
@@ -3709,7 +3669,7 @@ static void block7_data_unref (void * _userdata_) {
static gboolean __lambda16_ (Block7Data* _data7_) {
DirectPhotoPage* self;
gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
+ gboolean _tmp0_;
#line 466 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self = _data7_->self;
#line 467 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -3720,7 +3680,7 @@ static gboolean __lambda16_ (Block7Data* _data7_) {
result = FALSE;
#line 469 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 3724 "DirectPhotoPage.c"
+#line 3684 "DirectPhotoPage.c"
}
@@ -3729,13 +3689,13 @@ static gboolean ___lambda16__gsource_func (gpointer self) {
result = __lambda16_ (self);
#line 466 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 3733 "DirectPhotoPage.c"
+#line 3693 "DirectPhotoPage.c"
}
static void direct_photo_page_on_dphoto_can_rotate_changed (DirectPhotoPage* self, gboolean should_allow_rotation) {
Block7Data* _data7_;
- gboolean _tmp0_ = FALSE;
+ gboolean _tmp0_;
#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self));
#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -3754,15 +3714,15 @@ static void direct_photo_page_on_dphoto_can_rotate_changed (DirectPhotoPage* sel
block7_data_unref (_data7_);
#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
_data7_ = NULL;
-#line 3758 "DirectPhotoPage.c"
+#line 3718 "DirectPhotoPage.c"
}
static DataView* direct_photo_page_real_create_photo_view (EditingHostPage* base, DataSource* source) {
DirectPhotoPage * self;
DataView* result = NULL;
- DataSource* _tmp0_ = NULL;
- DirectView* _tmp1_ = NULL;
+ DataSource* _tmp0_;
+ DirectView* _tmp1_;
#line 473 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
#line 473 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -3775,7 +3735,7 @@ static DataView* direct_photo_page_real_create_photo_view (EditingHostPage* base
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_VIEW, DataView);
#line 474 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return result;
-#line 3779 "DirectPhotoPage.c"
+#line 3739 "DirectPhotoPage.c"
}
@@ -3785,38 +3745,38 @@ static void direct_photo_page_class_init (DirectPhotoPageClass * klass) {
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_type_class_add_private (klass, sizeof (DirectPhotoPagePrivate));
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((PageClass *) klass)->init_collect_ui_filenames = (void (*)(Page*, GeeList*)) direct_photo_page_real_init_collect_ui_filenames;
+ ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) direct_photo_page_real_init_collect_ui_filenames;
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((PageClass *) klass)->add_actions = (void (*)(Page*, GActionMap*)) direct_photo_page_real_add_actions;
+ ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) direct_photo_page_real_add_actions;
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((PageClass *) klass)->remove_actions = (void (*)(Page*, GActionMap*)) direct_photo_page_real_remove_actions;
+ ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) direct_photo_page_real_remove_actions;
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((PageClass *) klass)->init_collect_injection_groups = (InjectionGroup** (*)(Page*, int*)) direct_photo_page_real_init_collect_injection_groups;
+ ((PageClass *) klass)->init_collect_injection_groups = (InjectionGroup** (*) (Page *, int*)) direct_photo_page_real_init_collect_injection_groups;
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((GtkWidgetClass *) klass)->realize = (void (*)(GtkWidget*)) direct_photo_page_real_realize;
+ ((GtkWidgetClass *) klass)->realize = (void (*) (GtkWidget *)) direct_photo_page_real_realize;
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((EditingHostPageClass *) klass)->photo_changing = (void (*)(EditingHostPage*, Photo*)) direct_photo_page_real_photo_changing;
+ ((EditingHostPageClass *) klass)->photo_changing = (void (*) (EditingHostPage *, Photo*)) direct_photo_page_real_photo_changing;
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((PageClass *) klass)->on_context_buttonpress = (gboolean (*)(Page*, GdkEventButton*)) direct_photo_page_real_on_context_buttonpress;
+ ((PageClass *) klass)->on_context_buttonpress = (gboolean (*) (Page *, GdkEventButton*)) direct_photo_page_real_on_context_buttonpress;
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((EditingHostPageClass *) klass)->on_increase_size = (void (*)(EditingHostPage*)) direct_photo_page_real_on_increase_size;
+ ((EditingHostPageClass *) klass)->on_increase_size = (void (*) (EditingHostPage *)) direct_photo_page_real_on_increase_size;
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((EditingHostPageClass *) klass)->on_decrease_size = (void (*)(EditingHostPage*)) direct_photo_page_real_on_decrease_size;
+ ((EditingHostPageClass *) klass)->on_decrease_size = (void (*) (EditingHostPage *)) direct_photo_page_real_on_decrease_size;
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((EditingHostPageClass *) klass)->on_double_click = (gboolean (*)(EditingHostPage*, GdkEventButton*)) direct_photo_page_real_on_double_click;
+ ((EditingHostPageClass *) klass)->on_double_click = (gboolean (*) (EditingHostPage *, GdkEventButton*)) direct_photo_page_real_on_double_click;
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((EditingHostPageClass *) klass)->update_ui = (void (*)(EditingHostPage*, gboolean)) direct_photo_page_real_update_ui;
+ ((EditingHostPageClass *) klass)->update_ui = (void (*) (EditingHostPage *, gboolean)) direct_photo_page_real_update_ui;
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((PageClass *) klass)->update_actions = (void (*)(Page*, gint, gint)) direct_photo_page_real_update_actions;
+ ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) direct_photo_page_real_update_actions;
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((EditingHostPageClass *) klass)->confirm_replace_photo = (gboolean (*)(EditingHostPage*, Photo*, Photo*)) direct_photo_page_real_confirm_replace_photo;
+ ((EditingHostPageClass *) klass)->confirm_replace_photo = (gboolean (*) (EditingHostPage *, Photo*, Photo*)) direct_photo_page_real_confirm_replace_photo;
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((PageClass *) klass)->on_app_key_pressed = (gboolean (*)(Page*, GdkEventKey*)) direct_photo_page_real_on_app_key_pressed;
+ ((PageClass *) klass)->on_app_key_pressed = (gboolean (*) (Page *, GdkEventKey*)) direct_photo_page_real_on_app_key_pressed;
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((EditingHostPageClass *) klass)->create_photo_view = (DataView* (*)(EditingHostPage*, DataSource*)) direct_photo_page_real_create_photo_view;
+ ((EditingHostPageClass *) klass)->create_photo_view = (DataView* (*) (EditingHostPage *, DataSource*)) direct_photo_page_real_create_photo_view;
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
G_OBJECT_CLASS (klass)->finalize = direct_photo_page_finalize;
-#line 3820 "DirectPhotoPage.c"
+#line 3780 "DirectPhotoPage.c"
}
@@ -3827,14 +3787,14 @@ static void direct_photo_page_instance_init (DirectPhotoPage * self) {
self->priv->view_controller = NULL;
#line 11 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self->priv->drop_if_dirty = FALSE;
-#line 3831 "DirectPhotoPage.c"
+#line 3791 "DirectPhotoPage.c"
}
-static void direct_photo_page_finalize (GObject* obj) {
+static void direct_photo_page_finalize (GObject * obj) {
DirectPhotoPage * self;
- DirectPhotoSourceCollection* _tmp0_ = NULL;
- guint _tmp1_ = 0U;
+ DirectPhotoSourceCollection* _tmp0_;
+ guint _tmp1_;
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage);
#line 32 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -3853,7 +3813,7 @@ static void direct_photo_page_finalize (GObject* obj) {
_g_object_unref0 (self->priv->context_menu);
#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
G_OBJECT_CLASS (direct_photo_page_parent_class)->finalize (obj);
-#line 3857 "DirectPhotoPage.c"
+#line 3817 "DirectPhotoPage.c"
}
@@ -3871,7 +3831,7 @@ GType direct_photo_page_get_type (void) {
DirectFullscreenPhotoPage* direct_fullscreen_photo_page_construct (GType object_type, GFile* file) {
DirectFullscreenPhotoPage * self = NULL;
- GFile* _tmp0_ = NULL;
+ GFile* _tmp0_;
#line 479 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
#line 480 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -3880,20 +3840,20 @@ DirectFullscreenPhotoPage* direct_fullscreen_photo_page_construct (GType object_
self = (DirectFullscreenPhotoPage*) direct_photo_page_construct (object_type, _tmp0_);
#line 479 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return self;
-#line 3884 "DirectPhotoPage.c"
+#line 3844 "DirectPhotoPage.c"
}
DirectFullscreenPhotoPage* direct_fullscreen_photo_page_new (GFile* file) {
#line 479 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
return direct_fullscreen_photo_page_construct (TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, file);
-#line 3891 "DirectPhotoPage.c"
+#line 3851 "DirectPhotoPage.c"
}
static void direct_fullscreen_photo_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames) {
DirectFullscreenPhotoPage * self;
- GeeList* _tmp0_ = NULL;
+ GeeList* _tmp0_;
#line 483 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, DirectFullscreenPhotoPage);
#line 483 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
@@ -3902,7 +3862,7 @@ static void direct_fullscreen_photo_page_real_init_collect_ui_filenames (Page* b
_tmp0_ = ui_filenames;
#line 486 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), "direct_context.ui");
-#line 3906 "DirectPhotoPage.c"
+#line 3866 "DirectPhotoPage.c"
}
@@ -3910,8 +3870,8 @@ static void direct_fullscreen_photo_page_class_init (DirectFullscreenPhotoPageCl
#line 478 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
direct_fullscreen_photo_page_parent_class = g_type_class_peek_parent (klass);
#line 478 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala"
- ((PageClass *) klass)->init_collect_ui_filenames = (void (*)(Page*, GeeList*)) direct_fullscreen_photo_page_real_init_collect_ui_filenames;
-#line 3915 "DirectPhotoPage.c"
+ ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) direct_fullscreen_photo_page_real_init_collect_ui_filenames;
+#line 3875 "DirectPhotoPage.c"
}